/gmail/v1/users/{userId}/drafts
POST
/gmail/v1/users/{userId}/drafts
users
DRAFT
label.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gmail.googleapis.com//gmail/v1/users//drafts' \
--header 'Content-Type: text/plain' \
--data-raw ''
Response Response Example
{
"id": "string",
"message": {
"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.Responses
Modified at 2023-08-15 05:40:23