Skip to main content

Microsoft 365 Tenant Checker API

  • Endpoint: GET /check?domain=<domain>
  • Parameter: domain (required). Missing parameter → 400 Bad Request.
  • Typical responses
HTTPfoundmessage
200trueDomain associated with M365; redirect URL returned when available.
200trueDomain replied 200 but without URL / invalid JSON.
404falseDomain is not associated with Microsoft 365.
400nullProtocol error (missing Protocol=Autodiscoverv1) or malformed request.
500nullInternal error / timeout toward Autodiscover.

Example

curl "http://localhost:5000/check?domain=contoso.com"
{
"domain": "contoso.com",
"status": 200,
"found": true,
"message": "Domain is associated with Microsoft 365. Redirect URL: https://outlook.office365.com/autodiscover/autodiscover.xml"
}