POST
/domains/{domain}/dnsCreate DNS record
- Auth
- Bearer API key
- Content-Type
- application/json
Request
Body
| Field | Type | Description |
|---|---|---|
typerequired | string | One of: |
hostrequired | string | |
valuerequired | string | |
ttl | integer | Default: |
priority | integer |
Example request body
{
"type": "A",
"host": "@",
"value": "76.76.21.21",
"ttl": 300
}Code samples
curl -X POST 'https://namemy.app/api/v1/domains/{domain}/dns' \
-H 'Authorization: Bearer nma_live_...' \
-H 'Content-Type: application/json' \
-d '{
"type": "A",
"host": "@",
"value": "76.76.21.21",
"ttl": 300
}'Responses
| Field | Type | Description |
|---|---|---|
id | string | |
type | string | One of: |
host | string | |
value | string | |
ttl | integer | |
priority | integer |
Example
{
"id": "string",
"type": "A",
"host": "@",
"value": "76.76.21.21",
"ttl": 300,
"priority": 0
}| Field | Type | Description |
|---|---|---|
error | string |
Example
{
"error": "string"
}| Field | Type | Description |
|---|---|---|
error | string |
Example
{
"error": "Unauthorized"
}| Field | Type | Description |
|---|---|---|
error | string |
Example
{
"error": "Forbidden"
}| Field | Type | Description |
|---|---|---|
error | string | |
code | string |
Example
{
"error": "Not found",
"code": "not_found"
}| Field | Type | Description |
|---|---|---|
error | string | |
code | string | One of: |
tier | string | One of: |
limit | integer | |
upgrade | string |
Example
{
"error": "string",
"code": "rate_limit_exceeded",
"tier": "explorer",
"limit": 0,
"upgrade": "https://namemy.app/pricing"
}