SpecinboxDocs
← Dashboard

API reference

Every /v1 route, the objects they return and the OpenAPI spec.

Base URL https://devapi.temp-mail.lol/v1. Every route is authenticated with Authorization: Bearer <key> (Authentication), returns JSON, and uses the error envelope on any non-2xx. The machine-readable spec is OpenAPI 3.1:

https://devapi.temp-mail.lol/v1/openapi.json

Import it into Postman, Insomnia or an OpenAPI code generator, or hand it to an AI coding tool together with /llms.txt. The spec is served by the API host itself, so it always matches the deployed version.

Routes

MethodPathScopeDoes
GET/v1/meanyThe key's org, mode, scopes and plan
GET/v1/domainsinboxes:readDomains your key can create inboxes on (shared, plus your active custom domains)
POST/v1/inboxesinboxes:writeCreate an inbox; body: expires_in, domain, local_part (all optional)
GET/v1/inboxesinboxes:readList inboxes; ?status=active|expired, ?limit, ?cursor
GET/v1/inboxes/{id}inboxes:readOne inbox
DELETE/v1/inboxes/{id}inboxes:writeDelete an inbox (its mail goes with it)
GET/v1/inboxes/{id}/messagesmessages:readMessage summaries, newest first; ?since=<ISO 8601>, ?limit, ?cursor
GET/v1/messages/{id}messages:readFull message: text, html, date, message_id, in_reply_to, references, attachments list
DELETE/v1/messages/{id}messages:writeDelete a message
GET/v1/messages/{id}/attachments/{index}messages:readDownload one attachment by its index
POST/v1/inboxes/{id}/sendmessages:writeSend from this inbox to other inboxes in your own org (loopback only)
GET/v1/usageusage:readThis month's requests, emails and active inboxes against your plan limits
POST/v1/test/inboxes/{id}/messagesinboxes:writeTest keys only: inject a message (subject, text, html, from)

Objects

ObjectFields
inboxid, object, address, domain, livemode, status, created_at, expires_at
message (summary)id, object, inbox_id, from, to, subject, received_at, size, attachment_count
message (detail)summary fields plus date, text, html, truncated, message_id, in_reply_to, references, loopback, attachments[{index, filename, content_type, size}]
listobject: "list", data[], has_more, next_cursor (see Pagination)
event (webhook)id, object: "event", type, created, livemode, data.inbox{id, address}, data.message{id, from, subject, received_at, size}

Every POST accepts an Idempotency-Key header (Idempotency); every response carries Request-Id and the rate-limit headers from Rate limits & quotas.