Each inbox can use its own API key. If you have an Organization key, enter it in any row to auto-discover all other inboxes.
Automate email generation & real-time OTP extraction for your bots & automation scripts
Never embed your AgentMail API Key in client-side public code. Keep it inside your backend scripts, bot environments, or Cloudflare Worker variables.
Use /api/otp/wait instead of hammering queries in a while loop. It holds the socket open for up to 30s and returns OTP instantly upon email arrival.
Generates a new disposable email address attached to your chosen mailbox. No registration required on mail servers; ready to receive incoming OTPs instantly.
| Header | Value | Requirement | Description |
|---|---|---|---|
| Accept | application/json | OPTIONAL | Ensures JSON response format |
| Content-Type | application/json | OPTIONAL | Required only when passing body via POST |
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| base | string | OPTIONAL | Base mailbox address to link alias to. Defaults to active mailbox (lakofusion@...). |
| prefix | string | OPTIONAL | Custom alias tag (e.g. bot123). Defaults to random reg_xxxxx. |
curl 'https://fusionblogcommunity.com/api/otp/new?base=lakofusion@fusionblogcommunity.com'
{
"status": "success",
"email": "lakofusion+reg_2sscu@fusionblogcommunity.com",
"type": "alias",
"base_inbox": "lakofusion@fusionblogcommunity.com",
"created_at": "2026-10-25T09:40:00Z"
}
Long-polls for up to 30 seconds. The exact second your verification email arrives, the server extracts the 4–8 digit OTP code and returns it directly in JSON format.
| Header | Value | Requirement | Description |
|---|---|---|---|
| Authorization | Bearer <API_KEY> | REQUIRED* | Authenticates inbox access. *Alternatively pass as ?key= in query URL. |
| Accept | application/json | OPTIONAL | Ensures JSON response format |
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| string | REQUIRED | The exact disposable email address to monitor for incoming mail. | |
| key | string | REQUIRED* | Your mailbox API key (authenticates ownership so strangers cannot read your OTP). |
| timeout | number | OPTIONAL | Max wait seconds (default: 30, min: 5, max: 60). |
| interval | number | OPTIONAL | Polling check interval in seconds (default: 2). |
curl 'https://fusionblogcommunity.com/api/otp/wait?email=YOUR_EMAIL&timeout=30&key=YOUR_KEY'
{
"status": "success",
"found": true,
"email": "lakofusion+reg_sample@...",
"otp": "94025",
"subject": "Your verification code is 94025",
"from": "Meta <notification@email.meta.com>",
"timestamp": "2026-10-25T06:57:58Z"
}
Performs an immediate single check without long-polling. Returns {"found": false} immediately if no email has arrived yet. Ideal if you manage your own retry loop.
From: ...