How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

AgentMail inboxes > messages API

The inboxes > messages API from AgentMail — 11 operation(s) for inboxes > messages.

AgentMail inboxes > messages API is one of 29 APIs that AgentMail publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include inboxes > messages. The published artifact set on APIs.io includes an OpenAPI specification, an AsyncAPI specification, API documentation, and an API reference.

This API exposes 13 operations across 11 paths, and defines 76 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against 4 base URLs: https://api.agentmail.to, https://x402.api.agentmail.to, https://mpp.api.agentmail.to, https://api.agentmail.eu.

13 operations 11 paths 76 schemas 1 DELETE5 GET1 PATCH6 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://api.agentmail.to
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

AgentMail inboxes > messages API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (Bearer).

Paths & Operations 13

Across 11 paths, the API surfaces 13 operations — 1 DELETE, 5 GET, 1 PATCH, 6 POST. Each is listed below with its method, path, parameters, and response codes.

inboxes > messages 13
GET
/v0/inboxes/{inbox_id}/messages
List Messages
list 15 params → 200404
GET
/v0/inboxes/{inbox_id}/messages/search
Search Messages
search 7 params → 200400404
GET
/v0/inboxes/{inbox_id}/messages/{message_id}
Get Message
get 3 params → 200404
PATCH
/v0/inboxes/{inbox_id}/messages/{message_id}
Update Message
update 3 params body → 200400404
DELETE
/v0/inboxes/{inbox_id}/messages/{message_id}
Delete Message
delete 3 params → 200404
POST
/v0/inboxes/{inbox_id}/messages/batch-get
Batch Get Messages
batch-get 2 params body → 200400
POST
/v0/inboxes/{inbox_id}/messages/batch-update
Batch Update Messages
batch-update 2 params body → 200400
GET
/v0/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id}
Get Attachment
get-attachment 4 params → 200404
GET
/v0/inboxes/{inbox_id}/messages/{message_id}/raw
Get Raw Message
get-raw 3 params → 200404
POST
/v0/inboxes/{inbox_id}/messages/send
Send Message
send 2 params body → 200400403404409
POST
/v0/inboxes/{inbox_id}/messages/{message_id}/reply
Reply To Message
reply 3 params body → 200400403404409
POST
/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all
Reply All Message
reply-all 3 params body → 200400403404409
POST
/v0/inboxes/{inbox_id}/messages/{message_id}/forward
Forward Message
forward 3 params body → 200400403404409

Schemas 76

The contract defines 76 schemas that model the data the API accepts and returns. The most detailed are type_messages_Message (23 properties), type_messages_SearchMessageItem (19 properties), type_messages_MessageItem (18 properties), type_messages_SendMessageRequest (10 properties). Each schema is shown below with its type and property counts.

type__Labels
array
Labels to filter by.
type_messages_MessageSize
integer
Size of message in bytes.
type_messages_UpdateMessageRequest
object
2 properties
type_messages_Addresses
type__Before
string
Timestamp before which to filter by.
type_messages_BatchGetMessagesResponse
object
3 properties 3 required
type_messages_ReplyToMessageRequest
object
10 properties
type_messages_SendMessageBcc
BCC recipient address or addresses.
type_attachments_AttachmentId
string
ID of attachment.
type_attachments_AttachmentSize
integer
Size of attachment in bytes.
type_messages_ReplyAll
boolean
Reply to all recipients of the original message.
type_attachments_Attachment
object
6 properties 2 required
type_messages_MessageHeaders
object
Headers in message.
type_messages_MessageLabels
array
Labels of message.
type_messages_MessageCreatedAt
string
Time at which message was created.
type_messages_SendMessageAttachments
array
Attachments to include in message.
type_messages_MessageItem
object
18 properties 10 required
type_messages_SendMessageCc
CC recipient address or addresses.
type__IncludeUnauthenticated
boolean
Include unauthenticated in results.
type_messages_MessageUpdatedAt
string
Time at which message was last updated.
type_messages_ReplyAllMessageRequest
object
6 properties
type__ErrorFix
string
The concrete next action that resolves the error.
type__Count
integer
Number of items returned.
type_messages_SendMessageTo
Recipient address or addresses.
type__ErrorMessage
string
Error message.
type__ValidationErrorResponse
object
6 properties 2 required
type__IncludeTrash
boolean
Include trash in results.
type_messages_MessageAttachments
array
Attachments in message.
type__IncludeSpam
boolean
Include spam in results.
type_attachments_AttachmentContentId
string
Content ID of attachment.
type__ErrorName
string
Name of error.
type_messages_MessageCc
array
Addresses of CC recipients. In format username@domain.com or Display Name .
type_messages_MessageText
string
Plain text body of message.
type_attachments_SendAttachment
object
6 properties
type_messages_MessageId
string
ID of message.
type__ErrorResponse
object
5 properties 2 required
type_messages_MessageTimestamp
string
Time at which message was sent or drafted.
type_messages_SendMessageReplyTo
Reply-to address or addresses.
type__Ascending
boolean
Sort in ascending temporal order.
type_messages_BatchUpdateMessagesResponse
object
3 properties 3 required
type_messages_MessageSubject
string
Subject of message.
type__PageToken
string
Page token for pagination.
type_messages_MessageTo
array
Addresses of recipients. In format username@domain.com or Display Name .
type_messages_SendMessageResponse
object
2 properties 2 required
type_messages_BatchGetMessagesMessageIds
array
IDs of messages to fetch. Maximum 500 ids per request. Duplicates are rejected with a validation error. IDs not found in the inbox (including cross-inbox or pe…
type_messages_ListMessagesResponse
object
4 properties 2 required
type__IncludeBlocked
boolean
Include blocked in results.
type__Limit
integer
Limit of number of items returned.
type_messages_BatchUpdateMessagesMessageIds
array
IDs of messages to update. Maximum 50 ids per request. Duplicates are rejected with a validation error. IDs not found in the inbox (including cross-inbox or pe…
type__ErrorCode
string
Stable, machine-readable error code in snakecase (for example, notfound or missingpermission). Branch on this rather than the message text.
type_messages_BatchUpdateMessagesRequest
object
3 properties 1 required
type_messages_UpdateMessageResponse
object
2 properties 2 required
type__Query
string
Full-text search query. Matched against the sender, recipients, and subject (substring) and the message body (tokenized full text).
type_messages_UpdateMessageLabels
Label or list of labels.
type_messages_RawMessageResponse
object
S3 presigned URL to download the raw .eml file.
4 properties 4 required
type_messages_SendMessageRequest
object
10 properties
type_messages_SearchMessageHighlights
object
Matched fragments per field on a message search result, with matched terms wrapped in . A field key is present only when the query matched that field, so the p…
4 properties
type_messages_MessageFrom
string
Address of sender. In format username@domain.com or Display Name .
type_messages_MessagePreview
string
Text preview of message.
type_messages_MessageBcc
array
Addresses of BCC recipients. In format username@domain.com or Display Name .
type_attachments_AttachmentResponse
object
8 properties 4 required
type_messages_BatchGetMessagesRequest
object
1 property 1 required
type__After
string
Timestamp after which to filter by.
type_messages_MessageInReplyTo
string
ID of message being replied to.
type_messages_MessageReferences
array
IDs of previous messages in thread.
type_attachments_AttachmentContentDisposition
string
Content disposition of attachment.
type_inboxes_InboxId
string
The ID of the inbox.
type_messages_Message
object
23 properties 10 required
type_messages_SearchMessageItem
object
19 properties 10 required
type_messages_SendMessageHeaders
object
Headers to include in message.
type_attachments_AttachmentContentType
string
Content type of attachment.
type_messages_MessageHtml
string
HTML body of message.
type_messages_SearchMessagesResponse
object
4 properties 2 required
type_attachments_AttachmentFilename
string
Filename of attachment.
type_threads_ThreadId
string
ID of thread.
type__ErrorDocs
string
Link to the error reference entry for this code.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

agentmail-inboxes-messages-api-openapi.yml Raw ↑

Other APIs AgentMail publishes across the network.

AgentMail agent API
AgentMail api-keys API
AgentMail auth API
AgentMail domains API
AgentMail drafts API
AgentMail inboxes > api-keys API
AgentMail inboxes API
AgentMail inboxes > drafts API
AgentMail inboxes > events API
AgentMail inboxes > lists API
AgentMail inboxes > metrics API
AgentMail inboxes > threads API
Where this information came from

This is an independent, third-party profile of AgentMail inboxes > messages API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.