Integrating · Published 2026-11-24 · Updated 2026-11-28 · AgentiSend
Inboxes
An address on a domain you have verified for receiving.
POST /inboxes creates an address on a domain you have already verified, with receiving turned on. There is no shared host.
Limits
Agent inboxes are included on every plan. There is no extra charge.
- Free: 3
- Starter: 10
- Pro: 50
- Scale: 200
A yearly plan includes the same number as that plan paid monthly. A lifetime plan includes the same number as the plan it matches.
curl -X POST https://api.agentisend.com/inboxes \
-H "Authorization: Bearer $AGENTISEND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain_id":"00000000-0000-4000-8000-000000000001","local_part":"billing","display_name":"Billing"}'GET /inboxes/{id}/messages lists the mail. q searches the subject, the addresses, the visible text, and attachment names. Labels are POST /inboxes/{id}/labels and POST /inboxes/{id}/messages/{message_id}/labels.
GET /inboxes/{id}/threads/search finds conversations. Every word in q must appear in the subject, the visible text, a sender, a recipient, or an attachment name. Put a phrase in quotes. A minus sign before a word leaves out conversations that contain that word. A search is at most 256 characters and 32 words. You can also pass from and to (addresses separated by commas, up to 20), has_attachment (true or false), start_date and end_date (a date or a time; a date covers that whole day), read, folder, and label. The closest match comes first, then the newest message. The same word rules apply to q on GET /emails/receiving and GET /inboxes/{id}/messages.
GET /inboxes/{id}/threads lists conversations. A conversation holds the mail you received and the replies you sent from that address. The id in the path may be the inbox address. Each conversation has a folder: inbox, sent, archive, spam, or trash. GET /inboxes/{id}/threads/counts returns how many are unread. GET /inboxes/{id}/threads/{thread_id} returns the messages oldest first, including a message that is still held. PATCH changes read, folder, or labels. DELETE moves it to trash. Add permanent=true to remove the conversation now. Trash is cleared after 30 days. The messages themselves stay for your plan's retention window.
When a message has a Message-ID, In-Reply-To, or References header, those headers decide the conversation. When it has none of them, the subject and the participants do.
hold_review: true keeps a review message for a person. A key cannot release it. status: "paused" still stores mail and refuses every send. outgoing_mode: "approve" holds every outgoing message until a person approves it. api_key_id is the key a send from this address spends.
POST /inboxes/{id}/messages/{message_id}/reply answers one message. POST /inboxes/{id}/drafts saves a draft, and POST /inboxes/{id}/drafts/{draft_id}/send sends it.
Events: inbox.created, inbox.updated, inbox.deleted, inbox.message.received, inbox.message.held, inbox.draft.created, inbox.draft.updated, inbox.draft.deleted, inbox.draft.sent, inbox.thread.created, inbox.thread.folder.updated, inbox.thread.labels.updated, inbox.email.sent. Each thread event carries source (api, console, or system) and the conversation.