# Temporary email API for testing

Humanless is a temporary email API for testing your own apps: `POST /v1/identities` creates an inbox, `GET /v1/identities/:id/wait` holds the request open until an email arrives and returns the OTP code or magic link already parsed, and `DELETE` removes it. Identities last an hour by default (up to 24 hours) and cost $0.06 each plus $0.75 per 1,000 emails received, from prepaid credits (top-ups from $10), or come with a plan from $17/month that includes 10 active identities and 10,000 emails a month. There's a TypeScript SDK (`npm i -D humanless`), a Python package (`pip install humanless`) and an MCP server for agents. It receives email only; SMS comes later as an add-on. You can try it without an account using a free demo sandbox key.

```bash curl
ID=$(curl -s -X POST https://api.usehumanless.com/v1/identities \
  -H "Authorization: Bearer $HUMANLESS_API_KEY" -H "Content-Type: application/json" \
  -d '{"channels":["email"]}' | jq -r .identity_id)
# ...your test submits the form...
curl "https://api.usehumanless.com/v1/identities/$ID/wait?channel=email&timeout=60" \
  -H "Authorization: Bearer $HUMANLESS_API_KEY"
```

## Other options

- **Mail.tm**: free public API for throwaway inboxes. Good for trying things out; shared domains and rate limits make it shaky in CI.
- **Mailosaur, MailSlurp, Mailinator (private domains), testmail.app**: paid hosted APIs with broader features, such as sending and long-lived inboxes.
- **Self-hosted**: Mailpit, or restmail.net run on your own server.

> **Use policy:** Only for apps you own or are authorized to test. See the [Terms](/terms).

More: [Humanless vs Mailosaur vs MailSlurp vs Mailtrap](/compare/mailosaur-alternative) · [All answers](/answers/)

Last updated 2026-12-04

Canonical: https://usehumanless.com/answers/temporary-email-api-for-testing

---
More: https://usehumanless.com/llms.txt
