OverviewQuickstartREST APIMCP serverPlaywrightTypeScript SDK

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.

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

At a glance

API base URLhttps://api.usehumanless.com
MCP endpointhttps://api.usehumanless.com/mcp (Streamable HTTP, stateless)
AuthAuthorization: Bearer hl_live_...
Channelsemail (OTP + magic links), sms (dedicated US numbers, receive-only), totp
WaitPush-based long-poll, up to 60 s per request, or Server-Sent Events
Identity lifetime1 hour by default (ttl_seconds), up to 24 hours
ErrorsJSON { "error": { "code", "message", "details?" } } with stable codes

Pricing

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).