Skip to main content
GET
/
sites
/
environments
/
{env_id}
/
domains
Get list of site domains for the environment
curl --request GET \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/domains \
  --header 'Authorization: Bearer <token>'
{
  "environment": {
    "site_domains": [
      {
        "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
        "name": "mydomain.com",
        "uses_cloudflare_dns": true
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

env_id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Response

Response object of site domains requests

environment
object
required