Skip to main content
GET
https://agent.usedari.com
/
email-accounts
/
{org_id}
/
accounts
/
{account_id}
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"
}
Searches recent emails in a connected account for verification or 2FA codes. Useful for automating login flows that require email-based verification.

Path Parameters

org_id
string
required
Organization ID
account_id
string
required
UUID of the email account

Query Parameters

last_minutes
integer
default:60
Time window to search for codes (in minutes)
email_sender
string
Filter by email sender address

Headers

X-API-Key
string
required
Organization API key

Response Fields

code
string
Extracted verification code (null if not found)
email_subject
string
Subject of the email containing the code
email_from
string
Sender of the email containing the code
message
string
Status message
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"
}