Email OTPs, magic links, SMS codes and TOTP for browser agents and end-to-end tests. One call returns the code the moment it lands. No sleep loops, no shared inboxes, no human in the loop.
import { Humanless } from "./humanless"; // 1 file, 0 deps const hl = new Humanless({ apiKey: process.env.HUMANLESS_API_KEY }); // 1. a fresh identity: real inbox + real phone const me = await hl.createIdentity({ channels: ["email", "sms"] }); await page.fill("#email", me.email); await page.fill("#phone", me.phone); await page.click("text=Send code"); // 2. blocks until the code arrives. no polling. const { code } = await hl.waitForCode({ identityId: me.identity_id, channel: "sms" }); await page.fill("#otp", code); // ✓ verified
Sign-up, login, password reset, 2FA. Humanless gives every run its own identity and hands the code back the instant it arrives.
Unlimited throwaway inboxes. Codes and magic links are parsed out of the message for you.
Dedicated US numbers that belong to your account only. Never shared, never recycled to strangers.
Store an authenticator secret, get the current 6-digit code. Perfect for 2FA-protected test accounts.
Long-poll returns in milliseconds after delivery. Push-based under the hood, so flaky waits disappear.
# create curl -X POST https://api.usehumanless.com/v1/identities \ -H "Authorization: Bearer $HUMANLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"channels":["email","sms"]}' # wait (returns as soon as it arrives) curl https://api.usehumanless.com/v1/identities/$ID/wait \ -H "Authorization: Bearer $HUMANLESS_API_KEY" { "type": "otp", "code": "482913", "channel": "email" }
const me = await hl.createIdentity({ channels: ["email"] }); await page.fill("#email", me.email); await page.click("text=Continue"); const msg = await hl.waitForMessage({ identityId: me.identity_id }); if (msg.url) await page.goto(msg.url); // magic link else await page.fill("#otp", msg.code); await hl.deleteIdentity(me.identity_id);
import os, requests H = {"Authorization": f"Bearer {os.environ['HUMANLESS_API_KEY']}"} API = "https://api.usehumanless.com/v1" me = requests.post(f"{API}/identities", headers=H, json={"channels": ["email"]}).json() # ... submit me["email"] in your app ... msg = requests.get(f"{API}/identities/{me['identity_id']}/wait", headers=H).json() print(msg["code"])
// claude_desktop_config.json / .cursor/mcp.json { "mcpServers": { "humanless": { "url": "https://api.usehumanless.com/mcp", "headers": { "Authorization": "Bearer hl_live_…" } } } } tools: create_verification_identity wait_for_verification_code get_totp_code delete_verification_identity
Humanless ships an MCP server, so Claude, Cursor and your own agents can sign up, log in and pass 2FA on their own. They get a fresh identity per task and the code back the moment it arrives.
Prices in USD. Extra numbers $5/month each. Unlimited email is subject to fair use.
Testing and automating your own applications: end-to-end tests, QA, and AI agents running sign-up, login and 2FA flows on products you own or are authorized to test. Numbers are receive-only; Humanless never sends SMS.
No. Each number is dedicated to one account. When an account gives a number up, it is quarantined before it can ever be reassigned, so late messages never reach someone else.
The wait call is push-based: it returns as soon as the message reaches us, usually within seconds. There's no polling interval to tune.
Yes. Point a subdomain you own at Humanless and every address on it becomes a test inbox for your account.
Identities expire automatically and their messages are deleted with them. You can also delete an identity yourself at any time.
Free API key in under a minute. No card required.
Get your API key →