Email Read Verification Code (Microsoft Graph)
PythonUtilityPOST api.upapi.io/email-read-verification-code-graph.postPoll 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
| Field | Type | Description |
|---|---|---|
codePattern | Regex pattern for the code (default: 6-digit number)· default: null | |
pollSeconds | number | Seconds between polls· default: 5 |
graphClientIdreq | string | Microsoft public app client_id |
senderContainsreq | string | Substring to match in the From header (e.g. 'tiktok', 'github') |
timeoutSeconds | number | Max seconds to poll· default: 120 |
minEpochSeconds | Ignore messages received before this Unix timestamp· default: null | |
graphRefreshTokenreq | string | OAuth 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
| Field | Type | Description |
|---|---|---|
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.
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.