---
title: "create mail server"
method: POST
path: "/api/v1/mails"
tags: ["mails"]
---

# create mail server

`POST /api/v1/mails`

## Request body

- Model1
  - `plan` string, required
  - `domain` string, required
  - `mode` 'DEV' | 'LIVE', required

## Response `201`

OK

- object
  - `status` string

## Other responses

- `400` — Invalid request for plan
- `402` — Not enough balance
- `403` — Allowed to create only one Mail Server on the free plan
- `500` — Unexpected error

## Changes

- **2023-10-06** `6ba885651c6f` — 1 breaking, 2 info
  - removed the media type `*/*` from the request body
  - added the media type `application/json` to the request body
  - added the media type `application/json` for the response with the status `201`
- **2023-10-04** `c63802bd8a38` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/changes/api/v1/mails/post.md)

---

[API](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion.md) · [All operations](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liara-cloud/liara-mail-api-documentaion/revisions/5ae39ee353b2/schema)
