Email Read Verification Code (Microsoft Graph)

PythonUtility
POST api.upapi.io/email-read-verification-code-graph.post

Poll an outlook.com mailbox over Microsoft Graph for a verification code. For accounts whose IMAP switch is off. Returns the code or an error.

emailverificationotpoutlookgraphutility
AuthAPI key
Cost1 unit
Timeout310s
CacheNone

Request schema

FieldTypeDescription
codePattern
Regex pattern for the code (default: 6-digit number)· default: null
pollSeconds
numberSeconds between polls· default: 5
graphClientIdreq
stringMicrosoft public app client_id
senderContainsreq
stringSubstring to match in the From header (e.g. 'tiktok', 'github')
timeoutSeconds
numberMax seconds to poll· default: 120
minEpochSeconds
Ignore messages received before this Unix timestamp· default: null
graphRefreshTokenreq
stringOAuth refresh token (Mail.Read offline_access)
recipientContains
Substring to match in the To header — REQUIRED to tell plus-addresses (base+alias@outlook.com) apart when many accounts share one inbox· default: null

Response schema

FieldTypeDescription
code
· default: null
error
· default: null
successreq
boolean
elapsedMsreq
integer

Try it

Try it

Microsoft public app client_id

Substring to match in the From header (e.g. 'tiktok', 'github')

OAuth refresh token (Mail.Read offline_access)

Regex pattern for the code (default: 6-digit number)

Seconds between polls

Max seconds to poll

Ignore messages received before this Unix timestamp

Substring to match in the To header — REQUIRED to tell plus-addresses (base+alias@outlook.com) apart when many accounts share one inbox

Run this endpoint live

Jump in as a guest — no signup — and run email-read-verification-code-graph.post with your own inputs. Create a free account anytime to get your own API key.

Sign in

Code examples

curl -X POST https://api.upapi.io/email-read-verification-code-graph.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "pollSeconds": 5, "graphClientId": "example", "senderContains": "tiktok", "timeoutSeconds": 120, "graphRefreshToken": "example" }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.