Skip to main content
POST
Enable email sending for a domain

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose email domains you want to work with.

Body

application/json

Request to create email domain configuration.

domain
string
required

Domain to send mail from. It has to already be connected to this app.

Example:

"example.com"

sender_name
string
required

Name recipients see in the From line.

Example:

"Nordwind Furniture"

from_email
string<email>
required

Address mail is sent from. Its domain has to be the domain you are enabling.

Example:

"no-reply@example.com"

Response

Setup started. Read status and dns_records.

Response for creating email domain configuration.

domain
string
required

The domain that was enabled.

Example:

"example.com"

status
string
required

Where setup got to. Sending starts only at active.

Example:

"pending_user_dns_configuration"

email_domain_id
string
required

ID of this app's email configuration. It identifies the configuration, not the individual domain.

Example:

"68b1c0d4e7b91d003c45a1f2"

external
boolean
default:false

true when you brought the domain yourself, false when it was bought through Base44.

Example:

true

dns_records
EmailDnsRecordResponse · object[] | null

Records to publish for this domain. Always returned, including when Base44 publishes them for you, so you can show a caller what was set.

Example:
provider_id
string | null

Identifier for the registrar the domain sits with, when Base44 knows it.

Example:

"godaddy"