Skip to main content
GET
/
sites
/
{site_id}
Get site by ID
curl --request GET \
  --url https://api.kinsta.com/v2/sites/{site_id} \
  --header 'Authorization: Bearer <token>'
{
  "site": {
    "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
    "name": "first-site",
    "display_name": "Site Name",
    "company_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
    "status": "live",
    "environments": [
      {
        "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
        "name": "first-site",
        "display_name": "First site",
        "is_premium": false,
        "is_blocked": false,
        "domains": [
          {
            "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
            "name": "example.com",
            "site_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
            "is_active": true,
            "type": "live"
          }
        ],
        "primaryDomain": {
          "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
          "name": "example.com",
          "site_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
          "is_active": true,
          "type": "live"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

site_id
string
required
Example:

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

Response

Successfully found site by ID

site
object
required