Skip to main content
POST
/
domains
/
{domain_id}
/
dns-records
Create a domain DNS record
curl --request POST \
  --url https://api.kinsta.com/v2/domains/{domain_id}/dns-records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "A",
  "name": "abc.mydomain.com",
  "ttl": 3600,
  "resource_records": [
    {
      "value": "1.1.1.1"
    }
  ]
}
'
{
  "message": "Creating a domain DNS record in progress",
  "status": 202,
  "operation_id": "domains:create-dns-record-54fb80af-576c-4fdc-ba4f-b596c83f15a1"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

domain_id
string<uuid>
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json
type
string
required
Example:

"A"

name
string
required
Example:

"abc.mydomain.com"

ttl
number
required

TTL in seconds

Required range: x >= 300
Example:

3600

resource_records
object[]
required

Response

DNS record create action started. Check MyKinsta for status

message
string
required
Example:

"Creating a domain DNS record in progress"

status
number
required
Example:

202

operation_id
string
Example:

"domains:create-dns-record-54fb80af-576c-4fdc-ba4f-b596c83f15a1"