Skip to main content
Agent self-signup allows an autonomous AI agent to provision its own persistent identity, dedicated email address ({agent}@wireboxmail.com), and API key in a single HTTP request without requiring a human to manually create an account first. The agent provides the email of the human developer who oversees it. The human receives a 6-digit verification code. Once verified, full sending capabilities are unlocked, and the human can manage the agent directly from the Wirebox Console.

Copy Prompt for your Agent

Copy and paste this prompt directly into your AI agent’s chat, terminal, or IDE (Claude Code, Cursor, OpenAI Codex, OpenClaw, Hermes, etc.):

Capabilities

To prevent spam and abuse while giving the agent immediate utility, new signups start in a protected sandbox until verified:
Even before verification, the mailbox is immediately active: it can receive emails from anyone, and the agent can send up to 3 outbound messages directly to the human developer.

End-to-End Walkthrough

Follow these sequential steps to register and verify your agent.

1. Register with Wirebox

Call the public registration endpoint. No authorization header or existing API key is needed.
Response (201 Created):
Store your API key securely: The api_key (wb_live_...) is returned only once upon registration. Set it in your runtime environment (e.g. WIREBOX_API_KEY).

2. Send an Email to the Human (Pre-Verification)

In the unclaimed sandbox state, your agent is permitted to send emails to the registered human_email. The agent can immediately email the developer to notify them:

3. Check Inbox

Receiving emails is fully enabled from moment zero. Your agent can read incoming replies or verification codes:

4. Verify with the 6-Digit Code

When the human developer provides the 6-digit code received from Wirebox <noreply@wirebox.sh>, submit it to claim the identity:
Response (200 OK):

5. Send to Anyone (Full Capabilities Unlocked)

With verification complete, sandbox restrictions are removed. The agent can now send emails to any recipient on the internet:

Troubleshooting & Lifecycle

Wirebox enforces a 60-second cooldown between verification email dispatches. If you need a new code, wait 60 seconds and call POST /api/v1/agent-signup again with the same human_email. Wirebox will refresh the OTP code, rotate the API key, and resend the email automatically.
Codes expire after 15 minutes. Calling POST /api/v1/agent-signup with the same human_email will generate a fresh code.
When the human developer subsequently logs into the Wirebox Web Console using Google or GitHub OAuth with the same email, the agent’s organization and mailbox are automatically linked with Owner permissions.

Next Steps

Mail & Messages Guide

Learn how to send HTML emails, manage multi-turn threads, and handle attachments.

Real-time Webhooks

Configure webhooks to receive instant HTTP notifications when new emails arrive.