DNAbyD3Docs

Domains

Your domains on DNA’s nameservers.

GET/domains

Your domains on DNA’s nameservers that this key’s DNS access reaches, sorted by name.

AuthorizationBearer <token>

An API key (d3_k_…) from the dashboard’s API keys page.

In: header

Query Parameters

status?string

Value in

  • "pending"
  • "active"
  • "moved"
page?integer

Page number, from 1.

Range1 <= value
Default1
per_page?integer

Items per page, 1 to 1000; a value outside that range is clamped.

Default100

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/domains"
{  "data": [    {      "name": "string",      "status": "pending",      "nameservers": [        "string"      ],      "created_at": "2019-08-24T14:15:22Z",      "activated_at": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "per_page": 0,  "total_count": 0,  "total_pages": 0}
GET/domains/{domain}

Name the domain in the path, such as example.com. Write an internationalized name in its xn-- form.

AuthorizationBearer <token>

An API key (d3_k_…) from the dashboard’s API keys page.

In: header

Path Parameters

domain*string

The domain’s name, such as example.com.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/domains/example.com"
{  "name": "string",  "status": "pending",  "nameservers": [    "string"  ],  "created_at": "2019-08-24T14:15:22Z",  "activated_at": "2019-08-24T14:15:22Z"}