/gmail/v1/users/{userId}/messages/{id}
GET
/gmail/v1/users/{userId}/messages/{id}
users
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://gmail.googleapis.com//gmail/v1/users//messages/'
Response Response Example
{
"historyId": "string",
"id": "string",
"internalDate": "string",
"labelIds": [
"string"
],
"payload": {
"body": {
"attachmentId": "string",
"data": "string",
"size": 0
},
"filename": "string",
"headers": [
{
"name": "string",
"value": "string"
}
],
"mimeType": "string",
"partId": "string",
"parts": [
{}
]
},
"raw": "string",
"sizeEstimate": 0,
"snippet": "string",
"threadId": "string"
}
Request
Path Params
userId
stringÂ
required
me
can be used to indicate the authenticated user.id
stringÂ
required
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
metadataHeaders
array[string]
optional
METADATA
, only include headers specified.Responses
Modified at 2023-08-15 05:40:23