Overview
The Automatic DNS API operates only on existing TenantCore domain resources. You cannot submit an arbitrary domain or Microsoft tenant and ask TenantCore to modify it. The required ownership chain is:404 domain_not_found before any DNS-provider action is attempted.
Automatic DNS is currently supported through TenantCore’s direct Porkbun, Cloudflare, and Namecheap integrations. DNS-provider credentials are connected and managed inside the TenantCore application; this public API does not accept raw registrar credentials.
Idempotency-Key. Live planning/readiness calls perform external DNS/provider reads and therefore use the public API’s expensive rate-limit bucket.
Get stored DNS state
Returns TenantCore’s most recently stored DNS/authentication state for an owned domain.domain_id is the TenantCore domain-row UUID returned by the domain APIs. It is not a domain name.
Build a live DNS plan
Performs a fresh provider-neutral DNS read and compares the domain with TenantCore’s required Microsoft 365 records.- detected authoritative DNS provider
- desired records
- observed records
- create/update/preserve/conflict actions
- whether the DNS read is reliable
- blocking changes that prevent automatic completion
Check automatic-DNS readiness
Checks whether TenantCore can safely apply the current plan through the connected provider.automation object tells you whether:
- the provider is supported for direct API automation
- the account has the required provider connection
- the current changes are safe to apply
- manual action or conflict resolution is required first
Start automatic provisioning
Queues TenantCore’s persistent DNS provisioning workflow for one owned domain.202 Accepted.
409 domain_provisioning_already_active.
Get a provisioning run
run_id must belong to the authenticated TenantCore account. A run from another account is returned as not found.
Possible run states include:
queuedrunningaction_requiredcompletedfailed
List provisioning runs
active_only=true limits the result to queued/running/action-required work. limit may be from 1 to 100.
Retry a provisioning job
After resolving the condition reported by anaction_required or waiting job, queue it for another attempt:
Common errors
See Errors for the common public API error envelope and request IDs.