create
POST /v1/identities/{id}/emails. InboxCreate is one of two shapes:
client.domains.create({ kind: "system" }) mints the organization’s free system domain — a subdomain of the platform’s shared mail domain, its DNS published for you, and verification started at create. Its id is the domain_id. A fresh system domain usually turns active within about a minute; until then emails.create re-checks it and answers a retryable job_not_ready (409), so retry, or call client.domains.verify(id). An address already taken in the organization is refused name_conflict (409, param: "address"); a domain error names the field you sent (address or domain_id).
list
GET /v1/identities/{id}/emails.
update
PATCH /v1/identities/{id}/emails/{inbox_id}. Turns the wake on or off: with wake: true, each message to the address that passes the guards starts a session for the inbox’s owning agent, billed to your credits; with false, mail is stored only. A new inbox wakes by default; an inbox made before inbound mail woke agents is off until you turn it on.
delete
DELETE /v1/identities/{id}/emails/{inbox_id}.
send
POST /v1/identities/{id}/emails/{inbox_id}/send. EmailSend is { to: string[], subject, text }. Answers 202 with a receipt — { accepted, from, to, sent_at }; the provider’s message id is deliberately absent.
Sending is gated on the domain’s dns_status; a premature send is a retryable job_not_ready.
Each send call is billed per recipient: one email line item at the listed price times the number of to addresses, debited after the message is accepted. A balance below that is refused insufficient_credits (402) before anything is sent.
messages
GET /v1/identities/{id}/messages — everything that arrived for the persona, both channels unless one is named. The same feed as identities.messages.
markRead
POST /v1/identities/{id}/messages/{message_id}/read — read: false puts it back to unread. A message already read keeps the time it was first read.
sent
GET /v1/identities/{id}/sent — what the persona sent, newest first, through the API and through its agent alike.