Disable email sending for a domain

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Turns off email sending for a domain.

The domain itself stays connected to the app and keeps serving the site. Only the ability to send mail from it goes away, and mail falls back to Base44's own sending address.

Base44 also tries to remove the domain from the mail provider, but a 200 does not promise that part succeeded: if the provider cannot be reached the local configuration is still removed and the call still succeeds.

This is not reversible: turning the domain back on means running Enable email sending for a domain again, publishing DNS records again, and waiting for verification again.

Send domain when the app has more than one. The response body is empty, so read the status code.

<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>

delete/api/apps/{app_id}/custom-email-domains

Path parameters

app_idstring required

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

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

Query parameters

domainstring nullable

Domain to delete. Required when multiple domains exist.

Domain to delete. Required when multiple domains exist.

Response

Email sending is off for this domain. The body is empty.

DeleteEmailResponse required

Response for deleting email domain.

Changes

Changed in 2 of the 11 revisions of this API.2