Skip to main content
POST
/
api
/
v1
/
mails
/
{mailServerID}
/
smtp-credentials
generate credentials to connet mail server with SMTP
curl --request POST \
  --url https://mail-service.iran.liara.ir/api/v1/mails/{mailServerID}/smtp-credentials \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>"
}
'
{
  "status": "<string>",
  "data": {
    "username": "<string>",
    "passowrd": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

mailServerID
string
required

Body

application/json
description
string
Maximum string length: 1000

Response

OK

status
string
data
object