How a browser agent receives an email verification code
Sign up with an address the agent owns, make one call that waits for the email, and read the code from it: no polling loop, and no person fetching codes from their own inbox.
The short answer
A browser agent receives an email verification code by signing up with an email address it owns, then making one API call that waits for the email and returns it. With Zurchin that call holds open until the mail lands. It works with Browser Use, Playwright, Stagehand or any agent that can make an HTTP request or call an MCP tool.
The code is the step agents fail
An agent can fill in a sign-up form. The trouble starts a second later, when the service emails a six-digit code to the address on the form. If that address is yours, a person has to fetch the code. If it is a throwaway, the code arrives, but so will every email that account sends afterwards, the login codes, the password reset and the receipts, at an address nobody is reading.
With Zurchin the agent signs up with an address of its own and keeps it. The first code arrives there, and so does everything after it.
One call that waits for the email
The agent submits the form, then asks for mail newer than that moment, and the answer comes back when the email does. The request holds open for up to 50 seconds (25 by default). If nothing came, it answers with a next_since to wait from, so a second call misses nothing that arrived in between. What comes back is the message, with the Firewall's verdict on it; the model reads the code or the confirmation link from the text, the way it would read any other email.
From an agent it is the same call, as the await_message tool on the MCP server.
Read it carefully
Finding a code in an email is a guess, and a careless guess is a security problem:
- Read the new text, not the quoted history. A code quoted from an earlier email in the thread is the wrong one.
- Check who sent it. Anyone can type
no-reply@github.cominto a From line, so match the sender against the service you signed up to before trusting what the mail says. - Nothing is lost quietly. Mail the Firewall held for a person is not returned, but the wait counts it in
held, so the agent can tell "the code never came" from "the code came and was held". - Every message comes with a Firewall verdict. Zurchin Email's Firewall names hidden text, instructions addressed to an AI and look-alike senders, so your agent can check the email before it acts on the code. A sign-up email is an email from a stranger, and it gets the same check as any other.
Start
Sign up, create an inbox, and point the wait at it. Zurchin Email has the rest.
Where a site supports it, an agent can skip the code and sign in with its own Passport key instead: that is Zurchin Auth.
Questions
How does a browser agent get an email OTP?
It signs up with an address it owns, then waits for the email in one call. Zurchin’s wait returns when the mail lands, and the agent reads the code from the message.
Does it work with Browser Use, Playwright or Stagehand?
Yes. The wait is an HTTP call, so any agent or script can make it, with the TypeScript or Python SDK or without.
What if a forged email sends a fake code?
Check the sender before acting on the code, and read the Firewall's verdict: a look-alike sender or a display name posing as a brand is one of its signals.
How long does the wait last?
Up to 50 seconds, 25 by default. If nothing came, the answer says so, and the next call picks up without missing anything.