---
title: "Create Email Config"
method: POST
path: "/api/email/configs"
---

# Create Email Config

`POST /api/email/configs`

## Request

- Base URL: `https://api.getle.ad` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getle.ad/api/email/configs`
- Auth: none declared

Create a new email configuration

## Headers

- `authorization` string

## Request body

- EmailConfigRequest
  - `provider_type` string, required
  - `name` string, required
  - `smtp_host` string, nullable
  - `smtp_port` integer, nullable
  - `smtp_username` string, nullable
  - `smtp_password` string, nullable
  - `api_key` string, nullable
  - `domain` string, nullable
  - `mailgun_region` string, nullable
  - `region` string, nullable
  - `aws_access_key_id` string, nullable
  - `aws_secret_access_key` string, nullable
  - `from_email` string, required
  - `from_name` string, nullable
  - `is_active` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getle/apis/lead-generator-pro-api.md) · [All operations](https://skmtc.dev/getle/apis/lead-generator-pro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getle/apis/lead-generator-pro-api/revisions/041155e6d905?raw)
