Email & PEC

List drafts and the send log (status)

Polling snapshot: the same current record or collection as the corresponding read endpoint, including its state and progress. List filters, defaults and pagination also apply here. This is not an event history or a changes-since feed. Poll at a sensible interval (start with 30 seconds), respect Retry-After on 429 and stop when the required terminal state is reached.

Every outbox row — drafts, queued, sending, sent and failed — newest first. Filter by mailbox or by status. Returns summaries only; use email_get_outbox for one row’s full body and recipients. At most 100 per call.

Examples

  • What’s still in drafts? GET /api/v1/rest/email/outbox/status?status=draft
  • Did that PEC actually fail to send? GET /api/v1/rest/email/outbox/status?status=failed
get/api/v1/rest/email/outbox/status

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/email/outbox/status
  • Auth: HTTP bearer

Query parameters

account_idstring uuid

One mailbox. Omit for all you may see.

status'draft' | 'queued' | 'sending' | 'sent' | 'failed'
limitinteger

Rows to return, 1–100. Default 20.

cursorstring

Opaque cursor from a previous call’s nextCursor, to continue.

Headers

X-Tenant-Idstring uuid

The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.