SLSmartletter API

Agent inbox

Give an AI agent its own email address: incoming mail scored for spam, grouped in threads, read and answered through the API, MCP or a webhook.

Agent inboxes are not offered at the moment. Every route below answers 403 agent_inboxes_unavailable, and the inbox.* MCP tools are not listed. This page stays as the reference for the day they come back.

An inbox is an address for one agent (support, bookings, invoices). Mail sent to it is checked by Amazon SES (spam, virus, SPF, DKIM, DMARC), scored, grouped in threads and kept for your agent. The agent lists the open threads, reads one, answers in the thread and marks it done. Answers leave through the same reliable chain as POST /emails and count in your monthly quota.

curl -X POST https://api.smartletter.ai/inboxes -H "Authorization: Bearer $SMARTLETTER_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"support","display_name":"Lea from Acme","description":"Answers order questions"}'
# → {"object":"inbox","address":"[email protected]", ...}

curl "https://api.smartletter.ai/threads?status=open" -H "Authorization: Bearer $SMARTLETTER_API_KEY"
curl https://api.smartletter.ai/threads/<thread id> -H "Authorization: Bearer $SMARTLETTER_API_KEY"
curl -X POST https://api.smartletter.ai/threads/<thread id>/reply -H "Authorization: Bearer $SMARTLETTER_API_KEY" -H "Content-Type: application/json" \
  -d '{"text":"Your order ships today.","status":"done"}'

Addresses

  • Platform address, no DNS: <name>-<workspace>@in.smartletter.ai. The address is fixed at creation.
  • Your own domain (Pro and up): in the dashboard (Settings > Inboxes), add a subdomain of a verified sending domain, for example inbox.acme.com. Add the MX record (10 inbound-smtp.eu-west-1.amazonaws.com) and the three DKIM CNAME records shown, then verify. Inboxes on it are <name>@inbox.acme.com.
  • Replies come from the inbox address, or from reply_from (an address on a verified sending domain). Reply-To is always the inbox.

What happens to an incoming message

CheckResult
Virus foundquarantine: no body or attachment kept, never shown to agents (API, MCP, webhooks).
Spam score ≥ 5 (0–10, from SES verdicts and SPF / DKIM / DMARC)spam: kept 30 days, hidden from GET /threads unless spam=include or spam=only.
Otherwiseinbox: the thread opens (or re-opens) and inbound.received fires.
Auto-reply, bounce, mailing listauto_submitted: true: kept, but no webhook, and agents cannot answer it (no reply loops).
More than 500 messages an hour for the inbox, or 30 from one senderDropped and counted (dropped_count).

Messages of up to 10 MB are read; larger ones keep their headers (body_truncated: true). HTML is sanitized: no scripts, forms or frames, and remote images are blocked (remote_images counts them) so opening a message never tells the sender. Attachments are listed with name, type and size; GET /messages/{id}/attachments/{attachment_id} returns a download link valid 5 minutes, always served as a file. Raw messages are kept 30 days, attachments 90 days.

Threads

  • A message joins a thread by its In-Reply-To / References headers, else by the same subject (without Re:, Fwd:…) with a shared participant within 30 days.
  • status: open, pending (waiting for the other side — set by a reply), done, archived. A new message re-opens the thread.
  • PATCH /threads/{id}: status, labels / add_labels / remove_labels, assignee_agent (a name), assignee_user_id (a member), spam, unread.

Replies

  • POST /threads/{id}/reply answers the latest inbound message (or message_id), to its Reply-To or sender (reply_all adds the other recipients). In-Reply-To and References keep the answer in the recipient's thread; quote (default true) quotes the message.
  • draft: true saves a draft instead (PATCH /messages/{id}, POST /messages/{id}/send, DELETE /messages/{id}): a person can review it in the dashboard.
  • Agent answers carry Auto-Submitted: auto-replied, so the other side's auto-responders stay quiet. At most 10 answers per thread per hour, never to another Smartletter inbox.

Wake your agent

Create a webhook endpoint with the inbound.received event (see /docs/webhooks): it receives thread_id, message_id, spam_score, sender, subject and snippet, then reads the thread and answers. With the MCP server (/docs/mcp), the tools are inbox.list_threads, inbox.read_thread, inbox.reply, inbox.save_draft, inbox.set_status and inbox.attachment_url.