Delete email template

Changed on

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

Deletes an email template by removing its file from the app's code. This can't be undone.

Workflows and backend functions that send the template by name keep it in their code, and those sends fail once it's gone. Deleting the app's own version of an application email, such as PasswordReset, makes the app send the Base44 version again.

If the file can't be removed, the template isn't deleted, and you can retry.

This is limited to 20 requests per minute per app for each workspace's personal API keys, so every key in a workspace shares one allowance. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused, and workspace API keys are not accepted.</Note>

delete/api/apps/{app_id}/emails/{template_id}

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/emails/{template_id}
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app the emails belong to.

template_idstring required

ID of the email template to delete. Get it from id in List email templates.

Response

The template was deleted.

deletedstring required

Name of the deleted template.

Example response

{
  "deleted": "Welcome"
}

Changes