address_unavailable
The email address or domain you asked to attach is already reserved in this system, so it cannot be claimed again.
How to fix it
- Pick a different local part. The address is taken and nothing about retrying changes that.
- If the domain is already in this workspace, open it from Domains rather than attaching it again. The message says so explicitly for that case.
- Check for a half-finished attempt before retrying with the same name. The reservation is taken before the provider is contacted, so an interrupted run can hold the address.
- Do not retry on a loop. This is not retryable and each attempt hits the same constraint.
Which rule fired
Address uniqueness is enforced by a database constraint rather than by a read-then-write check, so the error surfaces as a caught unique violation on the INSERT. That is deliberate: two concurrent requests for the same address cannot both pass a prior existence check, because only one of them can win the constraint. A collision reported by the mail provider itself surfaces differently: as reserved_address on the platform domain, or as provider_unavailable on your own domain, with the address held for support.
| In error.message | Means |
|---|---|
This domain cannot be attached. If it is already in this workspace, open it from Domains. | A unique violation (SQLSTATE 23505) when attaching a custom domain to a workspace. |
That address is already reserved. No new provider inbox was created. | A unique violation on the address reservation taken before a provider inbox is requested on a custom domain. No provider inbox is created. |
Why it works this way: Reserving the exact address locally before calling the provider is what makes this recoverable. If the provider call then fails or its outcome is unknown, the address stays reserved and the inbox stays paused, so the system never ends up believing an address is free while the provider believes it is taken.
Example
{
"error": {
"code": "address_unavailable",
"message": "This domain cannot be attached. If it is already in this workspace, open it from Domains.",
"request_id": "req_8Kd2x91",
"retryable": false,
"details": {}
}
} Where it appears
-
POST /projects/{project_id}/ domains -
POST /projects/{project_id}/ inboxes
Paths are relative to https://api.emailforagents.ai/v1.