List inboxes

by AgentMail

agentmail/list-inboxes

List the email inboxes on the account, newest first.

Billed per
call
Price
$0.002
Provider
AgentMail
Timeout
5 min

Overview

Returns the account's inboxes ordered by when they were created, each with its inbox identifier, email address, timestamps, and any display name or metadata set when it was created. A page size caps how many come back per call, and when more remain the response carries an opaque token to pass on the next request. The order can be flipped to oldest first.

A count and a list of inboxes with their id, address, and timestamps, plus a token when more remain.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
limitintegerNoHow many inboxes to return.
page_tokenstringNoThe token from a previous response, to continue the listing.
ascendingbooleanNoReturn oldest first instead of newest first.

Requests up to 1 MB.

Example

A call that works, with your own key.

curl https://gateway.agentsky.dev/v1/run \
  -H "authorization: Bearer $AGENTSKY_API_KEY" \
  -H "content-type: application/json" \
  -d '{"provider":"agentmail","endpoint":"list-inboxes","input":{"limit":20}}'

Pricing

$0.002 per call on the default plan. Every run carries its price in the response.

Questions

List inboxes — AgentSky