# Email templates ## Add or update template - [POST /resources/mail/v1/configs/templates](https://developers.frontegg.com/ciam/api/identity/email-templates/mailv1controller_addorupdatetemplate.md): Create or update an email template for your environment. Specify the email template using the type parameter. The value of type must match one of the predefined Frontegg email templates. Set the sender using the senderEmail parameter, and optionally include values for the other available body parameters. Provide the template information in the request body. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route. ## Get template - [GET /resources/mail/v1/configs/templates](https://developers.frontegg.com/ciam/api/identity/email-templates/mailv1controller_gettemplateconfiguration.md): Retrieve all email templates for your environment. To retrieve a specific template, pass its type as a query parameter. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route. ## Delete template - [DELETE /resources/mail/v1/configs/templates/{templateId}](https://developers.frontegg.com/ciam/api/identity/email-templates/mailv1controller_deletetemplate.md): Delete a specified email template. Provide the ID of the template to delete. You can obtain the template ID via the Get template API. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route. ## Get default template by type - [GET /resources/mail/v1/configs/{type}/default](https://developers.frontegg.com/ciam/api/identity/email-templates/mailv1controller_getdefaulttemplateconfiguration.md): Retrieve the default email template by type. Pass the required type as a query parameter.