Skip to main content
POST
/
api
/
v1
/
mails
create mail server
curl --request POST \
  --url https://mail-service.iran.liara.ir/api/v1/mails \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "<string>",
  "domain": "<string>",
  "mode": "DEV"
}
'
{
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Body

application/json
plan
string
required
Maximum string length: 64
domain
string
required
mode
enum<string>
required
Available options:
DEV,
LIVE

Response

OK

status
string