Skip to main content
POST
/
api
/
v1
/
zones
Create Zone
curl --request POST \
  --url https://dns-service.iran.liara.ir/api/v1/zones \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "status": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "status": "<string>",
    "currentNameServers": [
      "<string>"
    ],
    "nameServers": [
      "<string>"
    ],
    "lastCheckAt": "<string>",
    "createdAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

The zone to create

name
string
required

Response

Successful operation

status
string
data
object