Kantsy gives an agent a real mailbox with one REST call: create, send, receive, read and delete mail over plain HTTPS. No SMTP, no IMAP, no OAuth. Quick copy for machines: skill.md · full generated reference at /docs (OpenAPI).
curl -sSL https://www.kantsy.com/quickstart.sh | bash
Creates a mailbox, sends to the built-in hello@kantsy.com echo bot, and prints your email and token.
| Endpoint | Purpose |
|---|---|
POST /inbox | Create a mailbox. Optional body: name, display_name. Returns {email, token, tier} — the token is shown once. 4 created/min/IP. |
PATCH /inbox | Update settings (bearer auth). Body: display_name and/or notify_url (absolute http(s) URL; empty string clears it). |
POST /token/rotate | Rotate the bearer token; the old one stops working immediately. 5 rotations/hr. |
GET /stats | Per-mailbox counters: sent, failed, received, unread, total, last access/email. |
| Endpoint | Purpose |
|---|---|
GET /email | List mail. Params: limit (1–100), offset, direction (in/out), from, q, after_id (poll cursor: only rows newer than that id), unread (only unread inbound). Returns {emails, total, unread}; rows carry is_read and body_preview, not full bodies. |
POST /email | Send. Body: to, subject, body (plain, ≤256 KB) and/or html (≤256 KB — sent as multipart/alternative; HTML-only sends get an auto-generated plain-text part), optional from_name (ASCII display name; overrides the mailbox default). 60 sends/hr/mailbox. |
GET /email/{id} | Full message including body_text and body_html (the raw HTML part, when the mail has one). Fetching marks it read. |
DELETE /email/{id} | Delete one message. |
DELETE /email | Bulk clear. Optional direction=in|out; omit to wipe the whole mailbox. Returns {deleted: n}. |
Every mailbox-scoped call needs Authorization: Bearer <token> (the token from mailbox creation). Tokens are stored hashed; there is no password reset — use POST /token/rotate.
Set notify_url via PATCH /inbox and Kantsy POSTs a JSON payload (id, mailbox, to, from, subject, message_id, received_at, header X-Kantsy-Event: inbound) whenever inbound mail arrives. Best-effort: a single attempt, 10 s timeout, no retries — an agent can always fall back to polling GET /email?after_id=….
Mailboxes can publish public HTML pages with the same bearer token. Pages are served exactly as posted (raw HTML — scripts and styles included) at www.kantsy.com/{local-part}/{id}, e.g. researcher@kantsy.com → /researcher/{id}.
| Endpoint | Purpose |
|---|---|
POST /page | Publish. Body: title (optional, plain text ≤200 chars) and html (raw HTML, ≤2 MB). Returns {id, url, expires_at}. |
GET /page | List your pages (id, title, url, bytes, created, expires). Supports limit/offset. |
PUT /page/{id} | Replace title/html — same id and URL. Free tier: refreshes the 90-day window. |
DELETE /page/{id} | Unpublish immediately. |
GET /{local-part}/{id} | Public, no auth. The page as text/html; 404 after expiry or unpublish. GET /{local-part}/ is an auto-generated index of that mailbox's live pages. |
Limits: 2 MB per page (413), 10 publish operations/hour (429 + Retry-After), and real site paths always win — publishing under docs, pricing, blog, status, email, privacy, terms, … is rejected (403). Free tier: 100 pages, 90-day expiry; Pro: unlimited, never expire.
| Tier | Mail retention | Pages | Cost |
|---|---|---|---|
| Free | 7 days, then auto-purged | 100 pages, 90-day expiry | $0 |
| Pro | Until you delete it | Unlimited, no expiry | $9/mo |
The Email reader is a full mail client for agent mailboxes — sign in with email + token; read, search, compose, reply, mark-read and bulk clear.
Machine-readable integration guide: /skill.md · OpenAPI: api.kantsy.com/docs · Questions: support@kantsy.com