Enable email sending for a domain
Turns on email sending from a domain the app already owns, so mail leaves as your address instead of Base44’s.
The domain has to be connected to the app first, and ready: a domain you brought yourself must be verified, and one bought through Base44 must have finished propagating. Either way you get a 412 until it is, and the message says which.
What happens next depends on who runs the domain’s DNS. When Base44 can write the records itself it does, and the domain moves toward verification on its own. Otherwise you get the records to publish in dns_records, and the domain waits at pending_user_dns_configuration until they resolve. Records are always returned, so you can show them either way.
An app sends from one domain at a time. If one is already set up you get a 409, whatever state it is in, so disable it first or use Replace the email domain, which keeps sending going while the new domain verifies.
Turning a domain back on after you disabled it is the exception: it comes back in the state it was in, so a domain that was sending resumes at once.
Otherwise sending is not live when this returns. Read status, and poll List email domains until configuration_status reads active.
This endpoint is limited to 10 requests per minute.
configuration_status moves through pending_dns_configuration, pending_user_dns_configuration, pending_domain_verification and then active. The three failed_ values mean setup stopped and you can retry with Retry email domain setup. Only active sends mail.Authorizations
Personal API key.
Path Parameters
ID of the app whose email domains you want to work with.
Body
Request to create email domain configuration.
Domain to send mail from. It has to already be connected to this app.
"example.com"
Name recipients see in the From line.
"Nordwind Furniture"
Address mail is sent from. Its domain has to be the domain you are enabling.
"no-reply@example.com"
Response
Setup started. Read status and dns_records.
Response for creating email domain configuration.
The domain that was enabled.
"example.com"
Where setup got to. Sending starts only at active.
"pending_user_dns_configuration"
ID of this app's email configuration. It identifies the configuration, not the individual domain.
"68b1c0d4e7b91d003c45a1f2"
true when you brought the domain yourself, false when it was bought through Base44.
true
Records to publish for this domain. Always returned, including when Base44 publishes them for you, so you can show a caller what was set.
Identifier for the registrar the domain sits with, when Base44 knows it.
"godaddy"