Skip to main content
GET
Custom domains let agent mailboxes use an address on a domain you own instead of wireboxmail.com. Domains are scoped to the organization: register once, verify, and any identity can use it. See the Custom Domains guide for the DNS workflow.

Domain Object

string
Unique domain identifier (dom_ prefix).
string
The registered domain name in lowercase ASCII.
string
pending, verified, or failed.
boolean
Whether new identities use this domain when none is specified. The first domain added to an organization becomes the default automatically.
string
Upstream provider handling mail for the domain (telnyx).
string | null
The provider’s identifier for the domain, when registered upstream.
object[]
Required DNS records. Each item has type (MX, TXT, or CNAME), name, value, an optional priority, a per-record status (pending, valid, or failed), and a purpose label.
string | null
ISO 8601 timestamp of the successful verification, if any.
string
ISO 8601 creation timestamp.
string
ISO 8601 update timestamp.

List Domains

Returns every domain registered in the organization, newest first. Each item also includes mailboxes_count — the number of mailboxes bound to that domain.

Create Domain

Registers the domain with the mail provider and returns the DNS records that must be published. The domain starts as pending (or verified if the provider already considers it verified). The first domain in an organization is marked as the default.

Body Parameters

string
required
The bare domain name, lowercase, without protocol or path (e.g. agents.example.com).
Returns 201 with the created Domain Object. Errors: 400 validation_error, 409 domain_exists, 502 upstream_provider_error.

Get Domain

Returns one domain with its current DNS records. Returns 404 when the domain does not exist in the organization.

Verify Domain

Asks the provider to recheck the domain’s DNS records and updates the domain and per-record statuses. A successful check sets status to verified and stores verified_at; otherwise the domain becomes failed and the response message points to the incomplete records. Re-running verify is safe. Returns the updated Domain Object plus a human-readable message. Returns 500 verification_failed if the provider could not be queried.

Set Default Domain

Marks a verified domain as the organization default and clears the flag from any other domain. New identities use the default when neither custom_domain_id nor domain is provided. Returns 400 domain_not_verified if the domain has not been verified, and 404 when it does not exist.
Response: the updated Domain Object with "is_default": true.

Delete Domain

Removes the domain from the organization and deletes its registration with the mail provider. Returns 404 when the domain does not exist.