An agent that works with email needs four things: a way to send, an address to receive at, a way to read what arrives, and a way to test what it builds. Postboi covers all four, and none of them needs a person to sign in first.
Send, with nobody signing in
One command writes POSTBOI_TOKEN to .env, writes the config, installs the package and
links the agent skill. With no token and no person to sign in, it makes a claimable
project: sends run the whole pipeline (message log, webhooks, status) but are sandboxed,
so nothing reaches a real inbox until somebody claims it. The CLI prints a claim URL. Put
that URL in your summary for the person you’re working for, because it’s the one step only
they can take. The details.
Errors come back as one PostboiError with a code to branch on, whichever provider
failed. postboi sync types from to the addresses the account can send from, so a wrong
sender is a type error before it’s a failed send.
Receive, with Tempboi
Tempboi is Postboi’s throwaway inbox service. An agent can make an address at tempboi.email with no account, use it to sign up for something, and wait for the verification mail. The code and the link come back already pulled out:
Or over plain HTTP, with nothing installed:
The wait holds until a matching mail arrives and answers JSON with code, link, text, html and the SPF, DKIM and DMARC results. An inbox lives an hour unless asked for longer
(24 hours at most). The whole API is at tempboi.email/llms.txt.
Test the flow it built
The same inbox is one function in a test, so an agent that builds a sign-up flow can prove it works:
While developing, the dev inbox catches everything the app sends, so nothing reaches a real person, and email testing checks an email for client support, clipping and deliverability before it goes out.
Read replies
Mail sent from Postboi can be answered. Replies to the sending address, and mail to any
address on reply.<your domain>, are kept and can be read over the API or handed to your
code as an email.received webhook:
Reading these docs
Every page is Markdown at https://docs.postboi.app/raw/<slug>, the whole site is one file
at /llms-full.txt, and the package ships a
skill (bunx postboi skill) with all of this in it.