Skip to main workspace
OPENAPI 3.0 · STATELESS BEARER AUTH · /V1

Stateless Temporary Mailbox REST & SSE API

Zero account registration, zero API key signup, and zero cookie jars. Guests get 5 mailboxes/day per IP, Free Accounts 20/day, and Pro ($1.99/mo or $8.99 lifetime) unlocks unlimited creation, 10,000 permanent inboxes, isolated domains, and 1–20 batch provisioning.

Endpoints Overview

GET /v1/domains

List available receiving domains

POST /v1/mailboxes

Create a single guest mailbox (pass replace_token to retire previous guest inbox)

POST /v1/member/mailboxes/batch Bearer

[Pro Member] Batch-provision 1–20 mailboxes at once with optional permanent retention

PATCH /v1/member/mailboxes/{mailbox_id} Bearer

[Pro Member] Toggle permanent retention (is_permanent: true) or extend TTL

GET /v1/mailboxes/me Bearer

Get current active mailbox metadata and expiration

PATCH /v1/mailboxes/me Bearer

Extend mailbox TTL (1–60 minutes, capped at 2-hour max lifetime)

DELETE /v1/mailboxes/me Bearer

Immediately disable and soft-delete the current mailbox

GET /v1/mailboxes/me/messages Bearer

List parsed messages using keyset cursor pagination

GET /v1/mailboxes/me/messages/{message_id} Bearer

Fetch full message detail (plain text and sanitized HTML)

DELETE /v1/mailboxes/me/messages/{message_id} Bearer

Soft-delete a single message

GET /v1/mailboxes/me/events Bearer

Stream realtime SSE notifications (connected, message.ready, mailbox.expired, mailbox.deleted)

cURL Quickstart

bash
# 1. Provision a mailbox
RESP=$(curl -sS -X POST https://api.inboxflick.com/v1/mailboxes \
  -H "Content-Type: application/json" -d '{}')

TOKEN=$(echo "$RESP" | jq -r '.data.access_token')
ADDR=$(echo "$RESP"  | jq -r '.data.mailbox.address')
echo "Inbox ready: $ADDR"

# 2. Stream live SSE notifications
curl -N https://api.inboxflick.com/v1/mailboxes/me/events \
  -H "Authorization: Bearer $TOKEN"

TypeScript / Node.js Example

typescript
const res = await fetch('https://api.inboxflick.com/v1/mailboxes', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({}),
});
const { data } = await res.json();
// data.mailbox.address & data.access_token

const messagesRes = await fetch('https://api.inboxflick.com/v1/mailboxes/me/messages', {
  headers: { Authorization: `Bearer ${data.access_token}` },
});
const { data: list } = await messagesRes.json();

Rate Limits & Fair-Use Guardrails

  • Guest single-inbox limit: Unauthenticated visitors may hold 1 active mailbox per IP at a time (5/day; pass replace_token to swap). Multi-inbox, 1–20 batching, and permanent retention require a Pro Member JWT on /v1/member/mailboxes*.
  • General endpoint rate: 8 requests/second per IP; bursts above the limit return HTTP 429 with Retry-After.
  • SSE client note: Browser EventSource cannot send custom headers; use fetch + ReadableStream with Authorization: Bearer.

E2E Testing Templates & Competitor Comparisons

Copy-ready OTP verification templates for CI pipelines and side-by-side benchmarks against MailSlurp & Mailosaur.

Unlock Pro Batch & Permanent API ($8.99 lifetime) →