Humanless documentation
Updated 2026-12-03 · View as Markdown · llms.txt
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.
How it works
- Create an identity.
POST /v1/identitieswith the channels you need (email,sms,totp). You get back an email address, an E.164 phone number and/or a base32 TOTP secret. - Use it in your app. Type the email or phone number into your sign-up or login form and submit it.
- Wait for the code.
GET /v1/identities/:id/waitlong-polls and returns as soon as the message lands. You get the parsedcode(OTP) and/orurl(magic link). There is no polling interval to tune and nosleep. - Delete the identity when you're done.
DELETE /v1/identities/:idreleases its phone number for your next SMS identity.
Start here
- Quickstart: get an API key and receive your first code in about two minutes with curl.
- REST API reference: every endpoint, parameter, response field and error code.
- MCP server: connect Claude Code, Claude Desktop, Cursor, VS Code or any MCP client to
https://api.usehumanless.com/mcp. - Playwright guide: email OTP, magic link, SMS and TOTP tests with Playwright.
- TypeScript SDK: the zero-dependency
Humanlessclient,waitForCode,waitForLinkandwithIdentity.
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. 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. The whole documentation set is at /llms.txt (index) and /llms-full.txt (everything in one file).