/gmail/v1/users/{userId}/messages/{id}
GET
/gmail/v1/users/{userId}/messages/{id}Gets the specified message.
Request
Path Params
userId
string
required
The user's email address. The special value me
can be used to indicate the authenticated user.
id
string
required
The ID of the message to retrieve. This ID is usually retrieved using messages.list
. The ID is also contained in the result when a message is inserted (messages.insert
) or imported (messages.import
).
Query Params
format
string
optional
The format to return the message in.
metadataHeaders
array[string]
optional
When given and format is METADATA
, only include headers specified.
Request samples
Responses
Successful response(200)
Successful response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: a year ago