Skip to main content

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 recommends 12 domains per tenant and 3 mailboxes per domain as the optimal cold email structure on Microsoft tenants. Microsoft imposes no hard limit on custom domains per tenant — this structure is the recommended approach for maximizing deliverability and minimizing single-domain risk.

List tenants

Returns all tenants connected to your account, ordered by connection date, most recent first.
Example request
Example response
Response fields

Get tenant

Returns a single tenant by its Microsoft tenant GUID.
Path parameters Example request
Example response
Errors

Sync tenant

Triggers a discovery sync for a connected tenant. This endpoint:
  • Runs Exchange bootstrap (if needed)
  • Ensures SMTP AUTH readiness
  • Discovers domains
  • Syncs mailboxes
  • Updates tenant metadata
This is the first API call you should make after connecting a tenant.
Path parameters Example request
Response Fields

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.
This operation is irreversible. All domains, mailboxes, and sync history for this tenant will be permanently removed from TenantCore. The Microsoft tenant and its mailboxes are not modified.
Path parameters Example request
Example response
Errors

Connecting new tenants

New tenants cannot be connected via the API. Connecting a tenant requires a Microsoft admin consent flow that must be completed through the TenantCore app at app.tenantcore.io. Once connected, tenants are immediately available via the API.
It is highly recommended to connect all your tenants through the app before beginning any automation or scripting. The API assumes tenants are already connected and fully bootstrapped. Automating against tenants that have not completed the consent flow and Exchange setup will result in errors.