Get a Message
Retrieves a Message resource by its id (this has way more information than a message retrieved with List Messages)
smtppy.getmessage(accountId, mailboxId, id)
Parameters
accountId
(string) (required) - The account identifier.mailboxId
(string) (required) - The mailbox identifier.id
(string) (required) - The message identifier.
Response
{
"id": "string",
"msgid": "string",
"from": {
"name": "string",
"address": "string"
},
"to": [
{
"name": "string",
"address": "string"
}
],
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string",
"isRead": true,
"isFlagged": true,
"verifications": [
"string"
],
"autoDeleteEnabled": true,
"expiresAt": "2025-04-01T00:00:00.000Z",
"text": "string",
"html": [
"string"
],
"hasAttachments": true,
"attachments": [
{
"id": "string",
"filename": "string",
"contentType": "string",
"disposition": "string",
"transferEncoding": "string",
"related": true,
"size": 0,
"downloadUrl": "string"
}
],
"size": 0,
"downloadUrl": "string",
"createdAt": "2025-04-01T00:00:00.000Z",
"updatedAt": "2025-04-01T00:00:00.000Z"
}
Last updated