# Email configuration ## Get configuration - [GET /resources/mail/v1/configurations](https://developers.frontegg.com/ciam/api/identity/email-configuration/mailconfigcontroller_getmailconfig.md): Retrieve the mail configuration for your SendGrid account. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route. ## Delete configuration - [DELETE /resources/mail/v1/configurations](https://developers.frontegg.com/ciam/api/identity/email-configuration/mailconfigcontroller_deletemailconfig.md): Delete the mail configuration for your SendGrid account. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route. ## Create or update configuration v2 - [POST /resources/mail/v2/configurations](https://developers.frontegg.com/ciam/api/identity/email-configuration/mailconfigcontroller_createorupdatemailconfigv2.md): Configure email settings for your environment, supporting SES, Mailgun, and SendGrid. Provide the email provider, sender details, and any additional parameters in the request body. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route. ## Create or update configuration (deprecated) - [POST /resources/mail/v1/configurations](https://developers.frontegg.com/ciam/api/identity/email-configuration/mailconfigcontroller_createorupdatemailconfig.md): Configure your SendGrid account to send emails from your environment. Provide your SendGrid secret key in the request body. A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route.