EmptyInbox

v1.5.0
io.github.cnohall/emptyinbox Checked 3 days ago Published 1 month ago

Zero-config disposable email inboxes for AI agents: create, read mail, await verify codes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

register_account

Register a new EmptyInbox account and get an API key. Use this only if there is no account configured yet, or if authentication is failing. Prefer reusing an existing key: repeatedly registering from one network reduces the free credits each new account receives. Saves the key locally for future sessions.

ParameterTypeDescription
usernamestringOptional username (3-32 chars, letters/numbers/hyphens/underscores). Omit to have one allocated.

get_quota

Check how many inbox credits remain on this account. When credits are low, the result says how to buy more with Bitcoin.

create_inbox

Create a new disposable email inbox. Returns the email address and when it expires (30 days). Use this before triggering any signup or email verification flow.

keep_inbox

Make an inbox permanent so it never expires, for 30 credits. Use when the address was used to sign up for an account the user will keep (password resets go there). Ask the user first. Also brings back an expired inbox: addresses are never given to anyone else. Free if the inbox is already permanent.

ParameterTypeDescription
inbox *stringInbox email address to keep

list_inboxes

List all email inboxes on this account, with when each expires (null = permanent) and whether it already has.

list_messages

List received email messages, newest first, already parsed: each entry carries the extracted one-time code, the link to open, and a text preview — no HTML parsing needed. Filter by inbox and use limit to keep responses small.

ParameterTypeDescription
inboxstringFilter to a specific inbox email address
limitnumberMax messages to return (default: 10)
sincenumberUnix seconds — only messages received after this

get_message

Get one email message by ID. Returns the parsed message: extracted code, action_url, every link with its anchor text, and the body as plain text. Set format='text' for a flat rendering to read directly, or include_html=true only if the raw HTML is genuinely needed.

ParameterTypeDescription
message_id *stringMessage ID from list_messages
formatstringjson (structured) or text (flat, prompt-ready)
include_htmlbooleanInclude the raw html_body in json output (default: false — it is large and rarely needed)

wait_for_message

Poll an inbox until a new message arrives. Use after triggering an email verification, OTP, or signup confirmation. Returns the parsed message — including the extracted code and the link to open — as soon as it lands, or a timeout result.

ParameterTypeDescription
inbox *stringInbox email address to watch
poll_interval_secondsnumberSeconds between checks (default: 5)
require_codebooleanKeep waiting until a message carries an extracted code or action link
subject_containsstringOnly match messages whose subject contains this text (case-insensitive)
timeout_secondsnumberSeconds to wait before giving up (default: 120)

buy_quota

Buy inbox credits with Bitcoin. Only call this after the user has chosen a bundle or amount. Returns a pay_url to give the user: a page with a QR code, the exact amount and a live payment status, which works with any Bitcoin wallet. Also returns the raw address, amount and BIP21 URI for paying directly. Credits are added as soon as the payment is seen on the network. Call check_payment once the user has paid.

ParameterTypeDescription
bundlestringBundle id from list_bundles (default: starter)
usdintegerSpend a custom whole-dollar amount instead of a bundle, from 1 to 100. Priced at the best bundle rate the amount qualifies for. The network fee the payer adds on top is the same whatever the size of t…

list_bundles

List the inbox credit bundles for sale and their USD prices, paid in Bitcoin. Show these to the user before calling buy_quota.

check_payment

Check whether a Bitcoin payment from buy_quota has landed. Pass wait_seconds (around 120) once the user says they have paid, to wait for the credits in one call. Credit usually arrives within seconds of broadcast, well before confirmation.

ParameterTypeDescription
address *stringPayment address returned by buy_quota
poll_interval_secondsnumberSeconds between checks (default: 5)
wait_secondsnumberSeconds to keep polling for credit (default: 0, check once)

report_issue

Send feedback to the EmptyInbox team: a bug, a failed or abandoned payment, confusing docs, or a missing feature. A human reads every report. Use it when a tool fails in a way retrying will not fix, or when the user decides not to buy and says why. Never include passwords, verification codes, API keys or email contents.

ParameterTypeDescription
message *stringWhat you were trying to do, what happened, and what you expected
categorystring
contactstringEmail for a reply, only if the user wants one
contextobjectSmall extra details, e.g. {"payment_address": "..."}
errorstringThe exact error text, if any
toolstringThe tool or endpoint involved, e.g. buy_quota