API reference
Mailbox AI
Operations for mailbox ai.
These endpoints take a mailbox token, not an organization API key — they act as one mailbox holder. See Authentication.
- GETThe mailbox holder's AI consent state
/api/v1/mailbox/ai/consent - GETThe current AI assistant terms
/api/v1/mailbox/ai/terms - POSTLabel a batch of messages
/api/v1/mailbox/ai/classify - POSTDraft or rewrite a message with AI
/api/v1/mailbox/ai/compose - POSTAccept the AI assistant terms
/api/v1/mailbox/ai/consent - DELETEWithdraw AI consent entirely
/api/v1/mailbox/ai/consent - GETThe mailbox holder's consent history
/api/v1/mailbox/ai/consent/history - POSTSummarise a message
/api/v1/mailbox/ai/summarize/{message_id} - DELETEWithdraw the training decision only
/api/v1/mailbox/ai/consent/training - GETDownload one consent document
/api/v1/mailbox/ai/consent/{consent_id}/document - POSTSummarise a whole conversation
/api/v1/mailbox/ai/summarize/thread/{message_id}