v34

latestOpenAPI 3.0.1raw.githubusercontent.com2026-07-21119235265.2 KB
InboxesMessages

Get Message

CLI:

agentmail inboxes:messages get --inbox-id <inbox_id> --message-id <message_id>
get/v0/inboxes/{inbox_id}/messages/{message_id}

Path parameters

inbox_idstring required

The ID of the inbox.

message_idstring required

ID of message.

Response

inbox_idstring required

The ID of the inbox.

thread_idstring required

ID of thread.

message_idstring required

ID of message.

labelsstring[] required

Labels of message.

timestampstring date-time required

Time at which message was sent or drafted.

fromstring required

Address of sender. In format username@domain.com or Display Name <username@domain.com>.

reply_tostring[] nullable

Reply-to addresses. In format username@domain.com or Display Name <username@domain.com>.

tostring[] required

Addresses of recipients. In format username@domain.com or Display Name <username@domain.com>.

ccstring[]

Addresses of CC recipients. In format username@domain.com or Display Name <username@domain.com>.

bccstring[]

Addresses of BCC recipients. In format username@domain.com or Display Name <username@domain.com>.

subjectstring

Subject of message.

previewstring

Text preview of message.

textstring

Plain text body of message.

htmlstring

HTML body of message.

extracted_textstring nullable

Extracted new text content.

extracted_htmlstring nullable

Extracted new HTML content.

in_reply_tostring

ID of message being replied to.

referencesstring[]

IDs of previous messages in thread.

headersMessageHeaders

Headers in message.

sizeinteger required

Size of message in bytes.

updated_atstring date-time required

Time at which message was last updated.

created_atstring date-time required

Time at which message was created.