domain_not_ready
The domain exists but at least one of its readiness states is not satisfied, so an inbox cannot be created on it yet.
How to fix it
- Read the domain with GET /projects/
{project_id}/ domains/ {domain_id} and look at which of the four states is not ready. The error does not name it; the resource does. - Publish the DNS records and then call the verify endpoint. Verification is not automatic on a schedule you control.
- Allow for DNS propagation before re-verifying. Records published seconds ago will not be visible to the resolver yet.
- If an inbox is paused after a mid-provisioning change, contact support with the request id rather than retrying. Retrying cannot resolve an ambiguous provisioning outcome.
Which rule fired
A domain is not ready as a single boolean. Four states must all be right before an inbox can hang off it: ownership_status verified, provider_attach_state attached, sending_status ready and receiving_status ready. All four are checked together, and then checked again after the provider inbox has been created, along with the provider domain id and the ownership generation. That second check catches a domain whose readiness changed while provisioning was in flight, and in that case the inbox is left paused for support review rather than being activated or silently deleted.
| In error.message | Means |
|---|---|
Ownership, sending, and receiving must all be verified before creating an inbox. | Creating an inbox on a domain whose ownership, provider attachment, sending or receiving state is not yet ready. |
Domain readiness changed during provisioning. Inbox remains paused for support review. | Readiness, the provider domain id, or the ownership generation changed between the start of provisioning and the commit. The inbox stays paused. |
The platform receiving domain is not ready. | The platform receiving domain itself has no ready, active, unretired record with a provider domain id and provider account id. |
Why it works this way: The ownership generation is re-checked at commit specifically so that a domain removed and re-added during provisioning does not inherit the in-flight inbox. Without it, an inbox could attach to a domain that is nominally the same name but a different ownership record.
Example
{
"error": {
"code": "domain_not_ready",
"message": "Ownership, sending, and receiving must all be verified before creating an inbox.",
"request_id": "req_8Kd2x91",
"retryable": false,
"details": {}
}
} Where it appears
-
POST /projects/{project_id}/ inboxes
Paths are relative to https://api.emailforagents.ai/v1.