latestOpenAPI 3.1.02026-08-1076186318.8 KB

ab648a80ca4d

WordPress Sites

Get site by ID

get/sites/{site_id}

Path parameters

site_idstring required
Example:54fb80af-576c-4fdc-ba4f-b596c83f15a1

Response

Successfully found site by ID

Example response

{
  "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",
        "domains": [
          {
            "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
            "name": "example.com",
            "type": "live"
          }
        ],
        "primaryDomain": {
          "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
          "name": "example.com",
          "type": "live"
        }
      }
    ]
  }
}