beel_update_email_configuration
Updates the sender and optional defaults for a company's invoice emails, replacing omitted values with defaults and returning the resulting configuration.
Instructions
Replaces the sender chosen for the invoice emails of the company, and optionally their
defaults. It does not affect other emails. The sender is a replacement, not a merge: a
property that is omitted or null goes back to its default, which is to inherit the default
email domain of the account and to use facturas as the local_part. The response is the
configuration as it is after the change, including the address in effect.
sender.source: when omitted it isEMAIL_DOMAINifemail_domain_idis sent andACCOUNT_DEFAULTotherwise.email_domain_idis accepted only withEMAIL_DOMAIN, andlocal_partis not accepted withBEEL: any other combination answers422VALIDATION_ERROR.defaults: omitted, the stored defaults stay as they are.nullremoves them. An object replaces all of them, so a property left out of it is removed. Sending an object requires the email customization plan: without it the call answers403FEATURE_NOT_AVAILABLE, and the sender is not changed. The templates accept the variables listed byGET /v1/email-template-variables.email_domain_id: an email domain of the account that has already been registered. A domain that does not exist, belongs to another account or was removed answers404EMAIL_DOMAIN_NOT_FOUND; one that is still being registered answers409EMAIL_DOMAIN_NOT_READY. Choosing a domain that is not verified is allowed: until it is verified, invoice emails go out from the default email domain of the account if that one is verified, and from BeeL. otherwise.local_part: up to 64 characters: lowercase letters, digits and the symbols!#$%&'*+/=?^_\{|}~-, with single dots between groups. Any other value answers422VALIDATION_ERROR`.Removed email domains: when the email domain a company chose is removed, the company goes back to
ACCOUNT_DEFAULTand keeps itslocal_part.Credentials: it changes the address real invoices are sent from, so it requires a live API key and the
companies:writescope. A test API key answers403LIVE_CREDENTIAL_REQUIRED. Send anIdempotency-Keyso a retry does not repeat the operation.Environment: the configuration belongs to the company and is the same in test and live.
BeeL API endpoint: PUT /v1/companies/{company_id}/email-configuration (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": {
"company_id": "<company_id>",
"body": "<body>"
},
"name": "beel_update_email_configuration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on: its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. |