Private by design. No sign-up, no personal data.
See plans
TempifyTempify

REST reference, checked November 25, 2026

Temporary Email API: the Tempify REST reference

By Waqar Habib Khan | Published 2026-11-25 | Every endpoint below was read from the live routes and probed on November 25, 2026

Quick answer

What is the Tempify temporary email API?

The Tempify temporary email API is a REST API at tempify.org/api/v1 that creates disposable inboxes, lists their messages, extracts verification codes, and long-polls for new mail. Every call sends an x-api-key header. API access is paid: Premium ($4.99 a month) includes 1,000 calls a month and Business ($49 a month) includes 50,000, while the Free plan returns HTTP 402 on every call.
  • Four inbox endpoints: create, list messages, extract OTP codes, and wait for mail.
  • One risk endpoint that scores an address for disposable-mail risk, with 1,000 free checks a month per key.
  • Machine-readable spec at /openapi.json and a Postman collection, both linked below.

The honest limits first: the API is not free

The temporary inbox on the website is free with no signup. The API is a paid developer feature, and this page says so up front because older pages on this site described it as free. That was wrong, and it is corrected here. If you are on the Free plan, every API call returns 402 with the message The Free plan does not include API access. You can still create a key on the Free plan, but the key cannot call anything until the account is upgraded.

PlanPriceAPI calls a monthAPI keysInbox retention
Free$00 (every call returns 402)1 (cannot call)48 hours
Premium$4.99 a month ($49 a year)1,00057 days
Developer$19 a month ($190 a year) (coming soon)10,000514 days
Business$49 a month ($490 a year)50,0002530 days

Developer is listed as coming soon because its payment price does not exist in the billing system yet: the pricing page shows it as coming soon instead of a buy button that would fail. Prices are from the live pricing page and the plan limits in the codebase, checked November 25, 2026. The allowance is shared across every key on the account, so creating extra keys cannot multiply the quota. Calls beyond the allowance are metered at $5 per additional 1,000 calls, up to 5 times the plan allowance, and automated overage charging is not wired up yet, so overage is recorded and shown in the dashboard but nothing is charged automatically. The allowance resets on the 1st of the next month (UTC).

Quick start

1. Upgrade and create a key. Upgrade to Premium or Business from the pricing page, then open the dashboard and create a key in the API Keys section.

2. Create an inbox. One POST gives you an address that lives for the retention of your plan. Inboxes created through the API are QA inboxes: they appear in the dashboard QA section.

3. Wait, then read the code. Use the wait endpoint instead of polling in a loop: one long-poll holds the request until mail arrives, and counts as one API call however long it holds.

curl: create an inbox

curl -X POST https://tempify.org/api/v1/inbox \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

HTTP 201 Created
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 2026-12-01T00:00:00.000Z

{
  "inbox": {
    "id": "3f8a2c1e-0000-4000-8000-000000000000",
    "address": "qa-signup-4821@tempify.org",
    "expires_at": "2026-12-02T10:00:00.000Z",
    "created_at": "2026-11-25T10:00:00.000Z"
  }
}

Endpoints

Base URL: https://tempify.org/api/v1. Every endpoint below takes the x-api-key header. There is no unauthenticated endpoint and no Bearer token scheme: a request without the header returns 401 Missing x-api-key header, and a wrong key returns 401 Invalid API key. Both were probed live on November 25, 2026.

POST /api/v1/inbox: create a temporary inbox

Creates a QA inbox owned by the key's user and returns 201 with the address, its id, and its expiry. The address is random unless you request one: the local part must be 3 to 40 characters of lowercase letters, digits, dot, underscore, or hyphen. Pass domain with a verified custom domain to create the inbox on that domain instead of tempify.org. The address can also be sent as a full address in the address field.

curl: create with a requested address

curl -X POST https://tempify.org/api/v1/inbox \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address": "qa-signup-4821@tempify.org"}'

GET /api/v1/inbox/{address}: list messages

Returns the inbox and its messages, newest first, up to 100. Each message carries id, sender, subject, body_text, body_html, received_at, and is_read. Only inboxes owned by the key's user are visible: any other address returns 404, and a malformed address returns 400.

curl: list messages

curl https://tempify.org/api/v1/inbox/qa-signup-4821@tempify.org \
  -H "x-api-key: YOUR_API_KEY"

GET /api/v1/inbox/{address}/otp: extract codes and links

Reads the latest message and extracts verification codes and links server-side, so the test does not have to parse email bodies itself. The otp field holds the most likely one-time code, codes holds every code found, and verification_links holds links that look like verification, confirmation, or reset links. When the inbox has no messages yet it still returns 200 with message: null and empty lists.

curl: extract the code

curl https://tempify.org/api/v1/inbox/qa-signup-4821@tempify.org/otp \
  -H "x-api-key: YOUR_API_KEY"

Response

HTTP 200 OK

{
  "inbox": {
    "id": "3f8a2c1e-0000-4000-8000-000000000000",
    "address": "qa-signup-4821@tempify.org",
    "expires_at": "2026-12-02T10:00:00.000Z"
  },
  "message": {
    "id": 42,
    "sender": "noreply@example.com",
    "subject": "Your verification code",
    "received_at": "2026-11-25T10:01:00.000Z"
  },
  "otp": "482913",
  "codes": ["482913"],
  "links": [],
  "verification_links": []
}

GET /api/v1/inbox/{address}/wait: long-poll for new mail

Holds the request until a new message arrives or the timeout elapses. The timeout query parameter is seconds to hold: default 30, maximum 55. The since parameter is an ISO timestamp, and only messages received after it are returned; without it, only messages arriving after the call starts count. On timeout the response is 200 with timed_out: true and an empty message list. There is no WebSocket yet: long-poll is the shipped primitive, and the docs say so rather than promising one.

curl: wait up to 30 seconds for mail

curl "https://tempify.org/api/v1/inbox/qa-signup-4821@tempify.org/wait?timeout=30" \
  -H "x-api-key: YOUR_API_KEY"

GET and POST /api/v1/risk: disposable-email risk verdict

Returns a risk verdict for one email address: a score from 0 to 100, a level of low, medium, or high, and reason codes. The response never contains the underlying disposable-domain blocklist and never states whether a specific person owns an address. Send the address as ?email=user@example.com on GET, or as { "email": "user@example.com" } in the JSON body on POST. Metering is separate from inbox calls: 1,000 free checks per calendar month per API key, then 1 PAYG credit per check, and paid credit purchase is not wired up yet. The email is validated before auth, so a malformed address always returns 400, with or without a key.

Examples: Python and Node

The same three-step flow in both languages: create an inbox, wait for the verification mail, read the code. The Python example uses only the standard library. The Node example uses the global fetch available in Node 18 and later. Both were run locally against a stub that mirrors the real endpoint paths and response shapes, and the live endpoints were probed for their auth behaviour on November 25, 2026. A full working Playwright test built on the same calls is on the temp mail for Playwright page.

Python (standard library only)

import json
import urllib.request

BASE = "https://tempify.org/api/v1"
HEADERS = {"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"}

def call(method, path, body=None):
    data = json.dumps(body).encode() if body is not None else None
    req = urllib.request.Request(BASE + path, data=data, headers=HEADERS, method=method)
    with urllib.request.urlopen(req, timeout=60) as resp:
        return json.load(resp)

# 1. Create an inbox (random address)
inbox = call("POST", "/inbox", {})
address = inbox["inbox"]["address"]
print("Inbox:", address)

# 2. Wait for the verification mail (long-poll, one API call)
waited = call("GET", "/inbox/" + address + "/wait?timeout=30")
print("Timed out:", waited["timed_out"], "| Messages:", len(waited["messages"]))

# 3. Read the extracted code
otp = call("GET", "/inbox/" + address + "/otp")
print("Code:", otp["otp"])

Node.js (global fetch, Node 18+)

const BASE = "https://tempify.org/api/v1";
const headers = { "x-api-key": process.env.TEMPIFY_API_KEY, "Content-Type": "application/json" };

async function call(path, options = {}) {
  const res = await fetch(BASE + path, { ...options, headers });
  if (!res.ok) {
    throw new Error("Tempify API " + res.status + ": " + (await res.text()));
  }
  return res.json();
}

// 1. Create an inbox (random address)
const created = await call("/inbox", { method: "POST", body: "{}" });
const address = created.inbox.address;
console.log("Inbox:", address);

// 2. Wait for the verification mail (long-poll, one API call)
const waited = await call("/inbox/" + encodeURIComponent(address) + "/wait?timeout=30");
console.log("Timed out:", waited.timed_out, "| Messages:", waited.messages.length);

// 3. Read the extracted code
const otp = await call("/inbox/" + encodeURIComponent(address) + "/otp");
console.log("Code:", otp.otp);

Rate limit headers and error codes

Every response carries these headers, including rejected calls:

  • X-RateLimit-Limit: the monthly call allowance for the plan.
  • X-RateLimit-Remaining: calls left in the allowance, never below 0.
  • X-RateLimit-Reset: the next reset, the 1st of next month (UTC).
  • X-Overage-Calls and X-Overage-Cost-Cents: metered overage so far, at $5 per 1,000 calls.
StatusMeaningExample error
400Bad requestInvalid address; Invalid domain; Invalid email address
401Bad or missing keyMissing x-api-key header; Invalid API key; This API key has been deactivated
402Plan does not include the callThe Free plan does not include API access
403Domain not verifiedThat domain is not a verified custom domain on this account (code: domain_not_verified)
404Inbox not foundInbox not found (also returned for inboxes owned by another key)
429Allowance exhaustedMonthly API allowance exhausted, including the metered overage allowance
500Server could not complete the callCould not create inbox; Could not load inbox; Could not extract codes; Could not wait for mail

A 429 is a hard stop for the month, not a signal to retry faster: the allowance resets on the 1st of the next month, and hammering the endpoint only burns the overage allowance. A 402 on the inbox endpoints means the account is on the Free plan; a 402 on the risk endpoint means the 1,000 free risk checks for the month are used and no paid credits are available.

OpenAPI spec, Postman collection, and changelog

Changelog

  • November 2026: OTP extraction and long-poll arrive. GET /api/v1/inbox/{address}/otp extracts codes and links server-side, and GET /api/v1/inbox/{address}/wait long-polls for new mail (up to 55 seconds) so tests stop polling on a timer. Inboxes created through the API are flagged as QA inboxes and shown in the dashboard QA section.
  • November 2026: risk API ships. POST and GET /api/v1/risk return a 0 to 100 risk score, a level, and reason codes for one address, with 1,000 free checks a month per key. Paid credit purchase is not wired up yet.
  • November 2026: metering is honest about overage. Calls beyond the monthly allowance are metered at $5 per additional 1,000 calls, capped at 5 times the plan allowance, and the headers report the overage. Automated overage charging is not wired up yet.

Keep going

Temporary email API questions, answered

The questions developers ask before wiring the API into a test suite.

Is the Tempify temporary email API free?

No. The API needs a paid plan: Premium at $4.99 a month includes 1,000 API calls a month, and Business at $49 a month includes 50,000. The Free plan has no API access at all, so calls on a Free plan return HTTP 402 with an upgrade message. The Developer plan at $19 a month with 10,000 calls a month is coming soon and cannot be bought yet. The temporary inbox on the website itself is free with no signup; only the API is paid.

How do I get a Tempify API key?

Create a Tempify account, upgrade to Premium or Business from the pricing page, then open the dashboard and create a key in the API Keys section. Premium allows up to 5 keys and Business up to 25. Send the key in the x-api-key header on every request. There is no separate signup for the API, and keys are per account, not per inbox.

What are the API rate limits?

Limits are monthly call allowances, not per-minute caps: Premium 1,000 calls a month, Developer 10,000 (coming soon), Business 50,000. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers. Calls beyond the allowance are metered at $5 per additional 1,000 calls, up to 5 times the plan allowance, and automated overage charging is not wired up yet. When the allowance including overage is exhausted, calls return 429 until the 1st of the next month (UTC).

How do I read a verification code from a Tempify inbox?

Call GET /api/v1/inbox/{address}/otp with your API key. It reads the latest message and returns the extracted code in the otp field, plus all codes, links, and verification links. When no mail has arrived yet it still returns 200 with message null and empty lists, so your test can tell no mail yet apart from inbox not found (404). For a signup flow, use GET /api/v1/inbox/{address}/wait?timeout=30 first: it holds the request until mail arrives instead of polling on a timer.

Can I use my own domain with the API?

Yes. Pass domain with a custom domain you have added in the dashboard and completed TXT verification for, and POST /api/v1/inbox creates the inbox on that domain instead of tempify.org. If the domain is not verified on your account, the call returns 403 with code domain_not_verified. Inboxes created through the API are QA inboxes and appear in the dashboard QA section.

Does Tempify have an MCP server for AI agents?

Yes, in beta, but it is not deployed live yet. The server is tempify-agent-inbox 0.1.0-beta at POST https://tempify.org/api/mcp, with tools create_inbox, wait_for_email, and verify_email, and no npx package. A live probe on November 25, 2026 returned 404, so the endpoint does not answer yet. AI agents use the same REST API documented on this page until the deploy lands, and an agent skill file is available at tempify.org/tempify-agent-skill.md. The status page at tempify.org/mcp will be updated the day it ships.