---
title: "Create or update configuration"
method: POST
path: "/resources/mail/v1/configurations"
tags: ["Email configuration"]
deprecated: true
---

# Create or update configuration

`POST /resources/mail/v1/configurations`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/mail/v1/configurations`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/mail/v1/configurations/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Frontegg sends emails via SendGrid. If you already have an account on SendGrid and you wish emails to be sent from your SendGrid account, pass the SendGrid secret key as a body param. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Request body

- CreateOrUpdateMailConfigRequestDto
  - `secret` string, required

## Response `200`

## Other responses

- `201`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
