[email protected], served by mx.allternit.com). It belongs to one account and, optionally, one agent. Scope mail.
Create a mailbox
agent_id the mailbox joins the agent’s account (account_id may be left out; if given it must match). local_part is lower-cased to letters, digits and dashes; it defaults to the agent’s name. If the address is taken you get the next free -2, -3… variant, or 409 address_taken after ten tries.
A card on file is required, sandbox included (402 payment_method_required). Live projects also need to be under their spend cap.
Read mail and one-time codes
Every inbound message is kept and sent as themail.received webhook (data.message). Allternit reads each message for verification codes (4 to 8 digits, or letters and digits next to words like “code”) and sign-in links, skipping years, prices, phone numbers and unsubscribe links. They are in codes and links.
To sign an agent up for a service and finish the email check, start the sign-up, then wait for the code:
since limits the search to mail after a time (default: the last 10 minutes). When nothing arrives in time the answer is found: false, not an error. wait_seconds above 60 is 400 invalid_wait.
Send
POST /v1/mailboxes/{id}/send answers 202 with status queued. Your call counts as the approval, so mail is not held for review. pending_approval means Allternit Mail held it and could not release it; it is then reviewed before delivery. Sandbox projects receive mail but don’t send it (400 sandbox_project). One plain recipient address per send.
MCP tools
A project key with themail scope gets these tools on the MCP agents server (https://mcp.allternit.com/mcp): mailbox_create, mailbox_list, mail_list, mail_read and mail_read_otp. They take the same fields as the routes above. A key with mail but not agents sees only these tools.
Identities
A mailbox made as part of an identity can’t be deleted on its own (409 mailbox_in_identity); delete the identity.
Pricing
$2 a mailbox a month on live projects (metermailbox_month), recorded when it is created and once in each later month it exists. Sandbox mailboxes are not charged. A mailbox inside an identity is covered by the identity’s bundle. See Pricing.