News for hackers. Stuff that matters.
Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by throw03172019 on Thursday January 29, 2026 @11:53AM (#46812780)
The 2FA via email case is great. I recently had to build a browser automation workflow that required 2FA. I ended up using Zapier to monitor email inbox and then extract the code and send back to our API. It was a bit slow.
Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by Haakam21 on Thursday January 29, 2026 @11:58AM (#46812862)
Yup plus webhooks are overkill for this. Need to set up a public HTTP server and pass messages to your agents. With websockets you can open connection right from your agent and close it in seconds once the 2FA code is delivered.
Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by ckenst on Thursday January 29, 2026 @12:59PM (#46813828)
Why didn't you just use something like Mailinator? They specialize in this exact thing. Gives you an API to grab links and everything. That's what I use.
Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by trollbridge on Thursday January 29, 2026 @01:55PM (#46814745)
... you had to use Zapier to extract an email from an inbox?
Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by iamacyborg on Thursday January 29, 2026 @03:17PM (#46815977)
Google API scopes for email are pretty restrictive, which is generally a good thing from a security perspective.
Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by trollbridge on Thursday January 29, 2026 @10:05PM (#46820082)
Retrieving e-mail using the Google API is just about trivial. You can generate a code snippet in Grok or what have you in about 30 seconds to do it.

Alternatively you can set up IMAP access.

Obviously you have to be able to configure proper OAuth2 keys to do this, but again, that's another 30 seconds spent in Grok/GPT/Claude/whatever.

Re:Launch HN: AgentMail (YC S25) – An API that gives agents ... by iamacyborg on Friday January 30, 2026 @03:22AM (#46821867)
Most gmail scopes are restricted which means you’ll need to pass a CASA assessment to have proper production access to them.