Get a site
Retrieve a single site by ID.
GET
/v1/sites/{id}
Requires scope: sites:read
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Required | Site ID. |
Example request
curl https://api.cache-boost.com/v1/sites/42 \
-H "Authorization: Bearer cb_live_YOUR_KEY"
Response
Returns 200 OK with the site object.
{
"id": 42,
"domain": "www.example.com",
"validated": true,
"validation_token": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"created_at": "2025-01-15T10:30:00Z"
}
Errors
| Code | Description |
|---|---|
401 | Missing or invalid API key. |
403 | Insufficient scope or access denied. |
404 | Site not found. |