Fetches public information about a Microsoft Entra ID tenant.
const url = 'https://api.tophhie.cloud/entra/tenantinfo?customDomainsOnly=false&skipEmailConfig=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tophhie.cloud/entra/tenantinfo?customDomainsOnly=false&skipEmailConfig=false'Provide either a tenant ID (GUID) or a domain name registered within the tenant. Returns branding, federated domain, email configuration and SharePoint presence details.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The Entra ID tenant GUID.
The Entra ID tenant GUID.
A domain name registered within the Entra ID tenant.
A domain name registered within the Entra ID tenant.
When true, only custom (non-onmicrosoft.com) domains are analysed for email configuration.
When true, only custom (non-onmicrosoft.com) domains are analysed for email configuration.
When true, MX record and email configuration lookups are skipped.
When true, MX record and email configuration lookups are skipped.
Responses
Section titled “Responses”Tenant information retrieved successfully.
object
object
Examplegenerated
{ "tenantId": "example", "federationBrandName": "example", "tenantDisplayName": "example", "defaultDomainName": "example", "bannerLogo": "example", "tenantRegion": "example", "desktopSsoEnabled": true, "verifiedEmailSignUpDisallowed": true, "tenantIsUnmanaged": true, "tenantLeaveUrl": "https://example.com", "tenantUsesExo": true, "mxRecords": [ "example" ], "emailConfiguration": [ { "domain": "example", "mxRecords": [ "example" ], "exoSmtpDaneDnsSecEnabled": true } ], "tenantUsesSpo": true, "spoDomains": [ "example" ], "verifiedDomains": 1, "additionalDomains": [ "example" ]}Bad request — provide exactly one of tenantId or domainName.
object
Example
{ "success": false}Tenant not found.
object
Example
{ "success": false}Internal server error.
object
Example
{ "success": false}
