API
Domains
Retrieve Domain

Retrieve a Domain

  • Name
    get
    Type
    /v1/domains/:name
    Description

    Send a GET request to retrieve a domain.

Request

Example

curl -X GET "https://api.simplystack.com/v1/domains/example.com" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \

Response

JSON object with key named domain with the following identifiers:

Attributes

See domain model.

Example

json
{
  "domain": {
    "name": "example.com",
    "zone_file": "$ORIGIN example1.com.\n$TTL 1800\nexample1.com. IN SOA ns1.simplystack.com. hostmaster.example1.com. 1518510948 10800 3600 604800 1800\nexample1.com. 1800 IN NS ns1.simplystack.com.\nexample1.com. 1800 IN NS ns2.simplystack.com.\nexample1.com. 1800 IN NS ns3.simplystack.com.\n",
    "created_at": "2020-02-13T08:33:25.371494Z",
    "records": []
  }
}