Read Outlook Mail

Securely fetch recent emails, headers, and intelligently extract OTP verification codes from Hotmail/Outlook accounts.

Mail Reader API

By passing the correct Microsoft Refresh Token and Client ID along with your Target Email, this endpoint will securely fetch the latest mailbox content.

Automatic OTP Extraction: As requested, our system parses the body of all retrieved messages via Regex filters to instantly identify Verification Codes (OTP). These numeric codes are conveniently served under the isolated code parameter per message object!

Payload Parameters

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

Implementation Snippets

curl -X POST https://api.hsmail.shop/v1/mailbox/outlook/read \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"test@hotmail.com","password":"","refreshToken":"M.R3_BAY.c3... (Paste your token)","clientId":"d0... (Your App Client ID)","method":"graph"}'