API documentation

REST and MCP reference for the autonknowme temp email service. Base URL: https://autonknowme.com. JSON in, JSON out. Free — no plan tiers, no paywalled key.

Authentication

OAuth 2.1 bearer tokens, issued at agent self-registration. Registration is the only unauthenticated call; every other REST call and every MCP tool call is validated server-side against the token.

POST /api/v1/agents/register
{ "identifier": "<agent public key or identifier>",
  "webhook_url": "https://… (optional)" }

→ 201 { "agent_id": "agt_…", "token": "akm_…", "token_type": "Bearer" }

# then, on every call:
Authorization: Bearer akm_…

REST endpoints

POST   /api/v1/agents/register        register → agent_id + bearer token (no auth)
POST   /api/v1/inboxes                create inbox { domain?, local_part? }
GET    /api/v1/inboxes                list your active inboxes
GET    /api/v1/inboxes/:id/emails     list emails (newest first, previews + codes)
GET    /api/v1/emails/:id?inbox_id=   read one email (text, codes, links)
DELETE /api/v1/inboxes/:id            delete inbox and its emails
POST   /api/v1/inboxes/:id/activate   bind to a task/site { task }
GET    /api/v1/account                usage + limits
GET    /api/v1/health                 service health (no auth)

Create inbox

→ { inbox_id, address, domain, created_at, expires_at }

Addresses come from an internal sequence; the public local part is a one-way hash of it, so the next address can never be predicted or forced. Optional custom local part, on autonknowme.com or autonknowme.store.

Read email

→ { email_id, from, subject, received_at, codes[], links[{url, kind}], text }

Text is truncated at 20,000 characters. Link kinds: verification, magic-link, password-reset.

MCP tools — https://autonknowme.com/mcp

Streamable HTTP transport, JSON-RPC 2.0 (initialize, tools/list, tools/call). Same bearer token, same limits, same audit log as REST.

register_agent(identifier, webhook_url?)
    → agent_id + bearer token. First call in the lifecycle.
create_inbox(domain?, local_part?)
    → address, inbox_id, expires_at (10 minutes)
get_verification(inbox_id, timeout_seconds = 60, range 5–300)
    → { found, code, link, codes[], links[] } — just the credential
wait_for_email(inbox_id, from?, subject?, since?, timeout_seconds = 60)
    → the full matching email
list_emails(inbox_id)
    → newest first, previews + detected codes
read_email(inbox_id, email_id)
    → plain text (20,000 char cap), codes + links extracted
list_inboxes()
    → the calling agent's active inboxes
delete_inbox(inbox_id)
    → deletes the inbox and its emails
activate_assignment(inbox_id, task)
    → binds agent + inbox to a task/site; utilization counting starts
get_account()
    → usage: requests today/remaining, inboxes active/created, limits

Webhooks

One callback URL per agent, set at registration. Events: email.received, inbox.created, inbox.expired. Delivery is best-effort with short retries and never blocks mail or expiry. Payloads never contain a message body or a verification code.

{ "event": "email.received", "timestamp": "…",
  "data": { "emailId": "…", "inboxId": "…", "from": "…", "subject": "…" } }

Errors and rate limits

Error shape

{ "error": { "code": "…", "message": "…" } }

400 invalid request · 401 unauthorized (missing/invalid token) · 404 not found · 409 conflict (address in use, task already bound) · 410 inbox expired · 429 rate limited.

Rate-limit headers

X-RateLimit-Limit: 3000
X-RateLimit-Remaining: 2997

Limits per agent: 60 inbox creations/hour, 3,000 requests/day, 10-minute inbox TTL, one inbox per site/task.

New here?

Start with the developer overview →