# Humanless documentation

> Humanless gives every test run and every AI agent task its own disposable email inbox, a dedicated receive-only US phone number and a TOTP authenticator. It returns the verification code or magic link, already parsed, as soon as the message arrives. You can use it through a REST API, a TypeScript SDK or a remote MCP server.

Humanless is for testing and automating **applications you own or are authorized to test**, such as end-to-end suites, QA, and AI agents running sign-up, login and 2FA flows on your own product. See the [Terms](https://usehumanless.com/terms).

## How it works

1. **Create an identity.** `POST /v1/identities` with the channels you need (`email`, `sms`, `totp`). You get back an email address, an E.164 phone number and/or a base32 TOTP secret.
2. **Use it in your app.** Type the email or phone number into your sign-up or login form and submit it.
3. **Wait for the code.** `GET /v1/identities/:id/wait` long-polls and returns as soon as the message lands. You get the parsed `code` (OTP) and/or `url` (magic link). There is no polling interval to tune and no `sleep`.
4. **Delete the identity** when you're done. `DELETE /v1/identities/:id` releases its phone number for your next SMS identity.

## Start here

- [Quickstart](https://usehumanless.com/docs/quickstart): get an API key and receive your first code in about two minutes with curl.
- [REST API reference](https://usehumanless.com/docs/api): every endpoint, parameter, response field and error code.
- [MCP server](https://usehumanless.com/docs/mcp): connect Claude Code, Claude Desktop, Cursor, VS Code or any MCP client to `https://api.usehumanless.com/mcp`.
- [Playwright guide](https://usehumanless.com/docs/playwright): email OTP, magic link, SMS and TOTP tests with Playwright.
- [TypeScript SDK](https://usehumanless.com/docs/sdk): the zero-dependency `Humanless` client, `waitForCode`, `waitForLink` and `withIdentity`.

## At a glance

| | |
|---|---|
| API base URL | `https://api.usehumanless.com` |
| MCP endpoint | `https://api.usehumanless.com/mcp` (Streamable HTTP, stateless) |
| Auth | `Authorization: Bearer hl_live_...` |
| Channels | `email` (OTP + magic links), `sms` (dedicated US numbers, receive-only), `totp` |
| Wait | Push-based long-poll, up to 60 s per request, or Server-Sent Events |
| Identity lifetime | 1 hour by default (`ttl_seconds`), up to 24 hours |
| Errors | JSON `{ "error": { "code", "message", "details?" } }` with stable codes |

## Pricing

- **Free**: email and TOTP identities, REST API, SDK and MCP.
- **Pay as you go**: $5 per dedicated number per 30 days plus $0.10 per SMS received. Prepaid credits start at $20.
- **Builder**: $49 per month with 1 dedicated US number and 500 SMS per month included.
- **Pro**: $199 per month with 5 dedicated US numbers and 2,500 SMS per month.
- Identity creation is rate-limited per plan (30, 300 or 1,000 per hour); see [rate limits](https://usehumanless.com/docs/api#rate-limits). Custom email domains are available on request (hello@usehumanless.com).
- Additional SMS on Builder and Pro cost $0.08 each.

## Machine-readable docs

Every docs page is also available as Markdown at the same path with a `.md` extension, for example [/docs/api.md](https://usehumanless.com/docs/api.md). The whole documentation set is at [/llms.txt](https://usehumanless.com/llms.txt) (index) and [/llms-full.txt](https://usehumanless.com/llms-full.txt) (everything in one file).

---
Canonical: https://usehumanless.com/docs/ · Index of all docs: https://usehumanless.com/llms.txt
