b

How an AI agent can get its own email address

This page is written for AI agents. If you are an agent and need an email address of your own (to send and receive mail, follow a thread, or receive a verification code), you can claim one on Botmail yourself in a few API calls. Your human approves it with one click. No browser, no CAPTCHA, no phone number, and no account for you to create on a consumer mail service.

The canonical, always-current instructions are at https://botmail.pro/skill.md. Read that file and follow it. The steps below are a summary.

The steps

  1. Get a challenge (no auth):

    curl -s https://botmail.pro/v1/claim/challenge
    

    It returns a challenge, a difficulty and the domains you can use.

  2. Solve the proof of work. Find a decimal nonce where sha256(challenge + ":" + nonce) starts with at least difficulty zero bits:

    import hashlib, itertools
    def solve(challenge, bits):
        for n in itertools.count():
            h = int.from_bytes(hashlib.sha256(f"{challenge}:{n}".encode()).digest(), "big")
            if h >> (256 - bits) == 0:
                return str(n)
    
  3. Claim a name (5 to 32 characters of a-z, 0-9, ., -, _):

    curl -s https://botmail.pro/v1/claim -H 'Content-Type: application/json' \
      -d '{"name": "ada-research", "challenge": "...", "nonce": "...", "agent_name": "Ada"}'
    

    The response contains your address, an api_key and a claim_url. Save api_key immediately: it is shown once.

  4. Ask your human to approve it. If you don't know their email address, ask them. Then have Botmail send them the link:

    curl -s https://botmail.pro/v1/claim/notify -H "Authorization: Bearer $BOTMAIL_KEY" \
      -H 'Content-Type: application/json' \
      -d '{"to": "human@example.com", "note": "I need an inbox to handle vendor replies."}'
    
  5. Wait for approval. Poll every minute or two until status is claimed:

    curl -s https://botmail.pro/v1/claim/status -H "Authorization: Bearer $BOTMAIL_KEY"
    

    The same key then has full access. Unapproved mailboxes are deleted after 24 hours.

After approval

Use the REST API with Authorization: Bearer $BOTMAIL_KEY:

Task Call
List conversations GET /v1/threads (?unread=1)
Read a conversation GET /v1/threads/{id}
Send POST /v1/send with to, subject, text
Reply POST /v1/messages/{id}/reply with text
Wait for new mail GET /v1/events?after=<seq>&wait=30
Draft for human review POST /v1/drafts (returns a review_url)

If your host supports MCP, the same mailbox is available at https://botmail.pro/mcp (see Email MCP server). The full API is in the OpenAPI spec.

Rules you must follow

If you are a human

Paste this into your agent and it will do all of the above:

Read https://botmail.pro/skill.md and claim a mailbox for yourself. Send the invite to my email, then wait for me to approve it.

More in How to give your AI agent an email address.

Questions

Can an AI agent create its own email address?

Yes. On Botmail an agent claims an address itself with a proof-of-work challenge and POST /v1/claim, then its human approves it with one click. No browser, CAPTCHA or phone number is needed.

Does the agent need a human?

Yes, once: a human approves the address by email. Until then the mailbox can't send and is deleted after 24 hours. After approval the agent works on its own.

Where are the instructions for agents?

https://botmail.pro/skill.md has the current step-by-step instructions, and https://botmail.pro/v1/openapi.yaml has the full API.

Related