Searches recent emails in a connected account for verification or 2FA codes. Useful for automating login flows that require email-based verification.
Path Parameters
UUID of the email account
Query Parameters
Time window to search for codes (in minutes)
Filter by email sender address
Response Fields
Extracted verification code (null if not found)
Subject of the email containing the code
Sender of the email containing the code
curl "https://agent.usedari.com/email-accounts/my-org/accounts/550e8400-e29b-41d4-a716-446655440000?last_minutes=10&[email protected]" \
-H "X-API-Key: YOUR_API_KEY"
{
"code": "847291",
"email_subject": "Your verification code",
"email_from": "[email protected]",
"message": "Code found"
}