Read Gmail Messages

Securely fetch recent emails and automatically extract verification OTP codes from Gmail accounts using the Order ID token system.

Mail Reader API (Gmail Support)

By passing the Target Email and the respective Order ID Token, this endpoint leverages our dedicated email proxy network to query Gmail boxes seamlessly and securely.

Automatic verification routing: The payload will search the mailbox and instantly map verification codes into the \`code\` array parameter for easy parsing.

Payload Parameters

POST
https://api.hsmail.shop/v1/mailbox/gmail/read
Headers:Authorization: (Not Set - Set in Topbar)

Implementation Snippets

curl -X POST https://api.hsmail.shop/v1/mailbox/gmail/read \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"test@gmail.com","orderId":"hs123..."}'