Every inbox is also an email address: <slug>@ahook.app — the same slug as its ingest URL. Mail to it arrives as an event, like any webhook.
- Create an inbox
One POST to
/api/v1/inboxesreturns the inbox URL and a read token. Every inbox is also an address,<slug>@ahook.app. - Mail arrives as an event
Mail to the address arrives as an
email.receivedevent — sender, subject, text and HTML bodies, and attachment metadata (filename, type, size; the bytes are not stored). Threads are tracked by RFC 5322 headers, so every message in one conversation shares a thread id. Mail to an unknown or expired inbox is rejected. - Send mail out
Paid accounts can send email through AHOOK:
POST /api/v1/sendsends from your inbox address (<slug>@ahook.app) or from an address on one of your verified custom domains. The base plan includes 100 outbound sends per billing period; free accounts cannot send.
Quickstart
curl -X POST https://ahook.app/api/v1/inboxes # -> {"inbox_id": "<inbox_id>", "url": "https://ahook.app/ingest/<slug>", "read_token": "<read_token>", "plan": "<plan>", "expires_at": "<expires_at>"} # email: <slug>@ahook.app — same slug as the URL curl "https://ahook.app/api/v1/inboxes/<inbox_id>/wait?timeout=30000" -H "Authorization: Bearer <read_token>" # mail to <slug>@ahook.app arrives here as an email.received event curl -X POST https://ahook.app/api/v1/send -H "Authorization: Bearer <key>" -d '{"to":"<email>","subject":"<subject>","text":"<text>"}' # -> 202 {"ok": true, "queued": true, "outbox_id": "<outbox_id>", "status": "queued"}
Agent Quickstart
Set up email on AHOOK for my business — an inbox address that receives mail as events, and sending from it. Get yourself an account from https://ahook.app. Read https://ahook.app/llms.txt and follow the steps for agents.