API
Domain Records
List domain records

List Domain Records

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

    Send a GET request to list a domain records.

Request

Example

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

Response

JSON object with key named records which is an array of the following attributes for each domain name record, each array contains the standard domain record attributes. For attributes that are not used by a specific record type, a value of null will be returned. For instance, all records other than SRV will have null for the weight and port attributes.

Attributes

See domain record model.

Example

json
{
  "records": [
    {
      "id": 1,
      "name": "@",
      "data": "ns1.simplystack.com",
      "port": null,
      "priority": null,
      "ttl": 1800,
      "type": "NS",
      "weight": null
    },
    {
      "id": 2,
      "name": "@",
      "data": "ns2.simplystack.com",
      "port": null,
      "priority": null,
      "ttl": 1800,
      "type": "NS",
      "weight": null
    },
    {
      "id": 3,
      "name": "@",
      "data": "mail.google.com",
      "port": null,
      "priority": 10,
      "ttl": 1800,
      "type": "MX",
      "weight": null
    },
    {
      "id": 4,
      "name": "www",
      "data": "192.168.1.1",
      "port": null,
      "priority": null,
      "ttl": 1800,
      "type": "A",
      "weight": null
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "pages": 1,
      "per_page": 25,
      "previous_page": null,
      "total": 4
    },
    "query": null,
    "sort": null
  }
}