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.jsonImport 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
| Method | Path | Scope | Does |
|---|---|---|---|
| GET | /v1/me | any | The key's org, mode, scopes and plan |
| GET | /v1/domains | inboxes:read | Domains your key can create inboxes on (shared, plus your active custom domains) |
| POST | /v1/inboxes | inboxes:write | Create an inbox; body: expires_in, domain, local_part (all optional) |
| GET | /v1/inboxes | inboxes:read | List inboxes; ?status=active|expired, ?limit, ?cursor |
| GET | /v1/inboxes/{id} | inboxes:read | One inbox |
| DELETE | /v1/inboxes/{id} | inboxes:write | Delete an inbox (its mail goes with it) |
| GET | /v1/inboxes/{id}/messages | messages:read | Message summaries, newest first; ?since=<ISO 8601>, ?limit, ?cursor |
| GET | /v1/messages/{id} | messages:read | Full message: text, html, date, message_id, in_reply_to, references, attachments list |
| DELETE | /v1/messages/{id} | messages:write | Delete a message |
| GET | /v1/messages/{id}/attachments/{index} | messages:read | Download one attachment by its index |
| POST | /v1/inboxes/{id}/send | messages:write | Send from this inbox to other inboxes in your own org (loopback only) |
| GET | /v1/usage | usage:read | This month's requests, emails and active inboxes against your plan limits |
| POST | /v1/test/inboxes/{id}/messages | inboxes:write | Test keys only: inject a message (subject, text, html, from) |
Objects
| Object | Fields |
|---|---|
| inbox | id, 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}] |
| list | object: "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.