---
title: "Create a new Email notification provider"
method: POST
path: "/notification-providers/email"
tags: ["Notification Providers"]
---

# Create a new Email notification provider

`POST /notification-providers/email`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/notification-providers/email`
- Auth: HTTP bearer

## Request body

- CreateNotificationEmailProviderRequest
  - `config` EmailConfig, required: Request-side SMTP config. Not `Serialize` for the same reason as [`SlackConfig`]; use [`EmailConfig::into_stored_value`].
    - `accept_invalid_certs` boolean
    - `from_address` string, required
    - `from_name` string, nullable
    - `password` string, password, required: A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.
    - `smtp_host` string, required
    - `smtp_port` integer, required
    - `starttls_required` boolean
    - `tls_mode` 'None' | 'Starttls' | 'Tls'
    - `to_addresses` string[], required
    - `username` string, required
  - `enabled` boolean, nullable
  - `name` string, required

## Response `201`

Successfully created Email provider

- NotificationProviderResponse
  - `config` unknown, required
  - `created_at` string, date-time, required
  - `enabled` boolean, required
  - `id` integer, required
  - `name` string, required
  - `provider_type` string, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid request
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 2 breaking
  - the `created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `201`
  - the `updated_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `201`
- **2026-10-23** `7d41b820a372`: 1 breaking
  - the `config/password` request property format changed from no format to `password`
- **2026-10-23** `24af93ff5379`: 1 info
  - the `config/password` request property format was generalized from `password` to no format
- **2026-10-22** `842d42ed4659`: 1 breaking
  - the `config/password` request property format changed from no format to `password`
- **2026-10-22** `1a12a50b75ee`: 1 info
  - the `config/password` request property format was generalized from `password` to no format

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/notification-providers/email/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
