Email & PEC

Search captured mail and PEC

Find archived messages across the mailboxes this member may see. Filters on free text (subject, sender, snippet), direction, mailbox, PEC type and a date window. Returns summaries — subject, sender, date, whether it has attachments — never the bodies; use email_get for one message. At most 100 per call.

Examples

  • Any PEC from the Agenzia delle Entrate this month? GET /api/v1/rest/email/messages?query=agenziaentrate&pec_only=true
  • Unread mail with attachments GET /api/v1/rest/email/messages?unread_only=true&has_attachments=true
get/api/v1/rest/email/messages

Request

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

Query parameters

querystring

Free text over subject, sender address and the snippet.

account_idstring uuid

One mailbox. Omit for all you may see.

direction'inbound' | 'outbound'

inbound for received mail, outbound for the archived copies of sent mail.

pec_onlyboolean

Only PEC messages and their receipts (legally significant mail).

unread_onlyboolean
has_attachmentsboolean
fromstring
tostring
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.