Skip to content

List a site's domains

GET /v1/sites/{siteId}/domains

Lists the domains connected to a site, oldest first (its built-in address comes first), each with its DNS and certificate status.

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:read
View sites. See sites and their domains, CDN, firewall, malware protection, backups, staging, resources, SMTP and Media Offload. SMTP includes who each site's recent emails went to, their subjects, and the team's sign-in addresses.

Path parameters

FieldType and description
siteId Required

string

The site's id.

Query parameters

FieldType and description
limit

integer 1 to 100 Default 25

How many items to return, from 1 to 100. Default 25.

cursor

string 1 to 1,024 characters

The nextCursor of the previous page, exactly as it was given. Leave it out for the first page.

sort

string Default createdAt

The field to sort by. Each list names the fields it can be sorted by.

One of: createdAthostname

order

string Default asc

asc (smallest or oldest first) or desc. Each list has its own default.

One of: ascdesc

Example request

curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/domains" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns a list of SiteDomain objects in data, with a Pagination object in pagination.

The SiteDomain object's fields 13 fields
FieldType and description
id

string

The domain's id.

siteId

string

The site it's connected to.

serverId

string

The site's server.

hostname

string

The domain, like shop.example.com.

isPrimary

boolean

Whether the site is served on this domain (the others redirect to it).

isBuiltIn

boolean

The address every site gets. It can't be removed.

primaryOnVerify

boolean

Still waiting for DNS, and becomes the primary domain once its DNS is verified.

status

string

pending_dns: waiting for its DNS to point at the server. provisioning: DNS is verified and the domain is being set up with its certificate. active: in use. failed: see lastError.

Known values: pending_dnsprovisioningactivefailed More can appear.

sslStatus

string

The domain's SSL certificate: none, pending, active or failed.

Known values: nonependingactivefailed More can appear.

dnsTarget

string or null

Point the domain's A record at this address (the server's IPv4). Null until the server has one.

lastError

string or null

Why the last DNS check or setup failed. Null otherwise.

verifiedAt

string or null An ISO 8601 time, in UTC

When its DNS was verified. Null until then.

createdAt

string An ISO 8601 time, in UTC

When the domain was added.

Example response

200 OK
{
  "data": [
    {
      "id": "b3c4d5e6-f7a8-4b9c-8d0e-1f2a3b4c5d6e",
      "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
      "hostname": "shop-x7k2p.rabbitflare.link",
      "isPrimary": true,
      "isBuiltIn": true,
      "primaryOnVerify": false,
      "status": "active",
      "sslStatus": "active",
      "dnsTarget": "203.0.113.10",
      "lastError": null,
      "verifiedAt": "2026-11-18T09:12:40.000Z",
      "createdAt": "2026-11-18T09:10:02.000Z"
    },
    {
      "id": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
      "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
      "hostname": "shop.example.com",
      "isPrimary": false,
      "isBuiltIn": false,
      "primaryOnVerify": false,
      "status": "active",
      "sslStatus": "active",
      "dnsTarget": "203.0.113.10",
      "lastError": null,
      "verifiedAt": "2026-11-18T09:20:44.000Z",
      "createdAt": "2026-11-18T09:18:03.000Z"
    }
  ],
  "pagination": {
    "limit": 25,
    "hasMore": false,
    "nextCursor": null
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

400 invalid_cursor

The cursor isn't one this list gave, or was made with other filters or another sort.

Start again from the first page, or keep the filters and sort the cursor was made with.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs