beel_create_email_domain
Registers a custom email sending domain and returns the DNS records to publish so you can verify it and send email from your own domain.
Instructions
Registers a domain to send your account's emails from and returns the DNS records you have to
publish for it. The domain starts PENDING; publish the records and ask for the check with
POST /v1/accounts/{account_id}/email-domains/{email_domain_id}/verify. A domain that is not
VERIFIED 72 hours after it was registered is removed and its name is freed.
Add-on: requires the custom email domain add-on, which is contracted with BeeL. Without it the call answers
403 FEATURE_NOT_AVAILABLE.Default: the first domain of an account, or the new one when the account has no default domain, becomes the default; otherwise the default does not change.
EMAIL_DOMAIN_INVALID(422): the text is not a full domain name. Internationalised names are accepted and stored in their ASCII form.EMAIL_DOMAIN_RESERVED(422): the domain cannot be used as a sending domain, for example because it belongs to BeeL or to a public mailbox provider.EMAIL_DOMAIN_UNAVAILABLE(409): the domain is already in use: registered by your account, by another account, or already held in the sending service BeeL uses. The answer is the same in every case and says nothing about who holds it.While it registers: a domain that is still registering shows
status: PENDINGwithdns_records: []. Read it again in a few seconds; if it stays that way, remove it withDELETEand register it again.EMAIL_DOMAIN_LIMIT_REACHED(409): the account already holds as many domains as the add-on allows;error.details.limitcarries that number.Unpaid billing: when the billing of the account is unpaid the call answers
402 PAYMENT_REQUIRED.Credentials: it changes the real account, so it requires a live API key or a dashboard session. A test API key answers
403 LIVE_CREDENTIAL_REQUIRED. Send anIdempotency-Keyso a retry does not repeat the operation.
BeeL API endpoint: POST /v1/accounts/{account_id}/email-domains (reference: https://docs.beel.es)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"body": "<body>"
},
"name": "beel_create_email_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| account_id | Yes | Your own account, or an account you provisioned. The account in the path, not the credential, decides which account the operation acts on. A `403` is returned when you do not reach it, the same response an account that does not exist gets. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |