Skip to contentSkip to navigation

List Agency Inbox Beta

List replies across every client workspace of an Agency account, newest first.

GET /api/v1/agency/inbox

Requires an API key with the read scope.

Only API keys of an Agency workspace can call this endpoint (403 agency_required otherwise). The call always runs in the key's own workspace; X-Workspace-Id is ignored. Any key of the agency workspace can read the inbox.

Replies from every workspace the agency owner holds, newest first, each with the name of its client workspace. Warmup and unrelated mail are left out. The call is read only: nothing is marked read. To open or answer a thread, call the inbox endpoints with the client's id as X-Workspace-Id.

Query Parameters

page integer query default 1

Page number (starts at 1).

pageSize integer query default 25

Items per page, 1 to 100.

workspaceId string query

Only replies from this client workspace (an id from List Agency Clients).

category string query

Only replies in this category: interested, not_interested, out_of_office, bounce, unsubscribe or uncategorized. Any other value returns 422.

unread boolean query

true for unread replies only, false for read only. Leave out for both.

Response

data array
Reply
id string
Reply ID.
workspaceId string
The client workspace the reply belongs to.
workspaceName string
That workspace's name.
fromEmail string
Sender email.
subject string
Subject line.
snippet string
Up to 160 characters of the plain-text body, whitespace collapsed.
category string
Reply category.
isRead boolean
Whether the reply has been read.
campaignName string
Campaign the reply came from, null when it matched none.
receivedAt string
ISO 8601 timestamp.
meta object

Pagination metadata.

Meta object
page integer
Current page number.
pageSize integer
Items per page.
total integer
Total number of matching replies.
totalPages integer
Total number of pages.

Errors

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: read
403agency_required: the key's workspace does not hold an Agency plan
422category is not one of the listed values, or page / pageSize is out of range

Rate Limit

  • 300 requests per minute, shared by every read call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (read).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?