Skip to main content
GET
Inboxes - List Messages
Lists messages in one inbox, newest first. Returns count, limit, next_page_token and messages; page with next_page_token. Each message carries message_id, thread_id, labels, timestamp, from, to, cc, bcc, subject and a preview; full bodies come from get_agentmail_inbox_message. To search rather than page, use get_agentmail_inbox_messages_search; to group by conversation, get_agentmail_inbox_threads.

Example

First time? Point any MCP client at https://mcp.aisa.one/mcp — Claude Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client opens a browser, you click Allow once, and there is no key to paste. Your agent then reaches every endpoint through a few meta tools: search, list_categories, get_details and batch_quote are free, batch_use is billed per call. Setup per client is in Connect via MCP; the live tool list and what each call costs are on aisa.one/mcp.
Set this endpoint up in your agent → Currently disabled.

Request contract

  • Method and path: GET /apis/v1/agentmail/inboxes/{inbox_id}/messages
  • Availability: disabled
This endpoint is disabled and cannot be called. Its historical request and schema details are retained for reference; pricing is not published.
  • Request URL template: https://api.aisa.one/apis/v1/agentmail/inboxes/{inbox_id}/messages
  • inbox_id: path; required
  • after: query; optional
  • ascending: query; optional
  • before: query; optional
  • from: query; optional
  • include_blocked: query; optional
  • include_spam: query; optional
  • include_trash: query; optional
  • include_unauthenticated: query; optional
  • labels: query; optional
  • limit: query; optional
  • page_token: query; optional
  • subject: query; optional
  • to: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Historical archive: disabled, cannot be called, and no price is published.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

inbox_id
string
required

The ID of the inbox.

Query Parameters

after
string<date-time>

Timestamp after which to filter by.

ascending
boolean

Sort in ascending temporal order.

before
string<date-time>

Timestamp before which to filter by.

from
string[]

Filter to messages whose sender contains this value (substring match). Repeatable; all values must match.

include_blocked
boolean

Include blocked in results.

include_spam
boolean

Include spam in results.

include_trash
boolean

Include trash in results.

include_unauthenticated
boolean

Include unauthenticated in results.

labels
string[]

Labels to filter by.

limit
integer

Limit of number of items returned.

page_token
string

Page token for pagination.

subject
string[]

Filter to messages whose subject contains this value (substring match). Repeatable; all values must match.

to
string[]

Filter to messages whose recipients (to, cc, or bcc) contain this value (substring match). Repeatable; all values must match.

Response

Response with status 200

count
integer
required

Number of items returned.

messages
MessageItem · object[]
required

Ordered by timestamp descending.

limit
integer

Limit of number of items returned.

next_page_token
string

Page token for pagination.