Справочник по REST и MCP для сервиса временной почты autonknowme. Base URL: https://autonknowme.com. JSON in, JSON out. Бесплатно — без тарифных планов и без платного ключа.
OAuth 2.1 bearer tokens выдаются при self-registration агента. Registration — единственный вызов без аутентификации; каждый другой REST-вызов и каждый вызов MCP tool проверяется сервером по токену.
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_…
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)
→ { inbox_id, address, domain, created_at, expires_at }
Адреса выдаются из внутренней последовательности; публичная local part — это её one-way hash, поэтому следующий адрес нельзя ни угадать, ни получить принудительно. Необязательная custom local part на autonknowme.com или autonknowme.store.
→ { email_id, from, subject, received_at, codes[], links[{url, kind}], text }
Текст обрезается на 20 000 символах. Виды ссылок: verification, magic-link, password-reset.
Streamable HTTP transport, JSON-RPC 2.0 (initialize, tools/list, tools/call). Тот же bearer token, те же лимиты, тот же журнал аудита, что и у 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
Один callback URL на агента, задаётся при registration. События: email.received, inbox.created, inbox.expired. Доставка — best-effort, с короткими повторными попытками, и она никогда не блокирует почту или истечение срока. В payload никогда не бывает тела сообщения или кода подтверждения.
{ "event": "email.received", "timestamp": "…",
"data": { "emailId": "…", "inboxId": "…", "from": "…", "subject": "…" } }
{ "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.
X-RateLimit-Limit: 3000
X-RateLimit-Remaining: 2997
Лимиты на агента: 60 созданий ящиков в час, 3000 запросов в день, TTL ящика 10 минут, один ящик на сайт/задачу.