Skip to main content
GET
List Threads
Lists conversation threads across every inbox in the account. Returns count, limit, next_page_token and threads; page with next_page_token. Each thread carries thread_id, inbox_id, labels, timestamp, senders, recipients, subject, preview, message_count and last_message_id. This is the organization-wide view spanning every inbox in the account. Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created; the inbox-scoped twin get_agentmail_inbox_threads is the one to use when a single inbox is meant.

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 →

Request contract

  • Method and path: GET /apis/v1/agentmail/threads
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/agentmail/threads
  • after: query; optional
  • ascending: query; optional
  • before: 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
  • recipients: query; optional
  • senders: query; optional
  • subject: query; optional
  • Runtime facts: 18a04e28941fae19674c11246b677373368b6bd927b7c146220cec1f168f4639
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.012
  • Cost contract: explicit_zero
  • Settlement evidence source: request_snapshot

Authorizations

Authorization
string
header
required

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

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.

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.

recipients
string[]

Filter to threads whose recipients contain this value (substring match). Repeatable; all values must match.

senders
string[]

Filter to threads whose senders contain this value (substring match). Repeatable; all values must match.

subject
string[]

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

Response

Response with status 200

count
integer
required

Number of items returned.

threads
ThreadItem · object[]
required

Ordered by timestamp descending.

limit
integer

Limit of number of items returned.

next_page_token
string

Page token for pagination.