Overview
A tenant in TenantCore represents a Microsoft 365 tenant that has been connected to your account via admin consent. Each tenant is owned by the user who performed the consent flow. You can only access tenants you connected. TenantCore supports up to 12 domains per connected tenant and up to 3 TenantCore mailboxes per domain, for up to 36 mailboxes per tenant. These are TenantCore product limits for the current outbound infrastructure model.Connect a tenant
Returns the Microsoft admin consent URL for connecting a new tenant. Connecting a Microsoft 365 tenant requires a Global Administrator of that tenant to approve TenantCore’s permissions in an interactive browser session. This is a Microsoft platform requirement for any application requesting tenant-wide permissions — it cannot be automated by TenantCore or bypassed by this or any API.GET /v1/tenants until the tenant appears, then call POST /v1/tenants/{tenant_id}/sync to refresh discovery and Exchange readiness.
Example request
List tenants
Returns all tenants connected to your account, ordered by connection date, most recent first.last_sync_at reflects the last time this data was refreshed. Use POST /v1/tenants/{tenant_id}/sync when you need an immediate refresh.
Get tenant
Returns a single tenant by its Microsoft tenant GUID.
Example request
readiness summarizes stored setup state so orchestration can determine whether ordinary management actions are ready without polling a separate infrastructure-health API.
Errors
Sync tenant
Runs an on-demand synchronization for one connected Microsoft 365 tenant.- Re-checks Exchange readiness and prepares required Exchange configuration where necessary.
- Ensures organization-level authenticated SMTP is enabled when the tenant is ready for that workflow.
- Re-runs tenant discovery so domains, mailboxes, counts, and tenant state reflect Microsoft 365.
This request is synchronous and can take longer than a normal API read because it communicates with Microsoft Graph and Exchange Online. Use a client timeout appropriate for Microsoft provisioning operations.
Example request
bootstrap, smtp_auth, and result objects contain the detailed results returned by TenantCore’s Microsoft 365 synchronization services. Their contents may include additional fields as Microsoft/Exchange state changes.
If Exchange bootstrap is not ready yet, SMTP AUTH is not attempted and the response reports:
Delete tenant
Removes a tenant and all associated records from your TenantCore account. The Microsoft 365 tenant itself is not affected — only your local records are deleted.
Example request