LogoFreestyle
API ReferenceDns

Create DNS Record

POST
/dns/v1/records

Request Body

application/json

domain*string
record*

Response Body

application/json

application/json

application/json

curl -X POST "https://api.freestyle.sh/dns/v1/records" \  -H "Content-Type: application/json" \  -d '{    "domain": "string",    "record": {      "kind": "A",      "name": "string",      "value": "string"    }  }'
{
  "record": {
    "kind": "A",
    "name": "string",
    "value": "string",
    "ttl": "string",
    "priority": 0,
    "managed": true
  }
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.