GET {{baseUrl}}/emails/mailboxes/:email/drafts/:draftId?format=full
Retrieves the specified draft. Scopes: Rate Limit Label: Not supported in Gov cluster mail:read
LIGHT
Body
PARAM
Key | Datatype | Required | Description |
format
|
string | The format to return the draft in. |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"id": "<string>",
"message": {
"id": "<string>",
"threadId": "<string>",
"labelIds": [
"<string>",
"<string>"
],
"snippet": "<string>",
"historyId": "<string>",
"internalDate": "<string>",
"payload": {
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"size": "<integer>",
"data": "<string>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
}
]
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
}
]
}
]
},
"sizeEstimate": "<integer>",
"raw": "<string>"
}
} |
ENDPOINTS