API reference
Base URL https://api.cache.bz/v1. All requests and responses are JSON. Authenticate with a bearer token.
Errors
| Status | Meaning |
|---|---|
| 400 | The request body is invalid. The response explains which field. |
| 401 | Missing or invalid token. |
| 403 | The token is valid but not allowed to do this. |
| 404 | The resource does not exist. |
| 429 | Rate limit exceeded. Retry after the time in Retry-After. |
Sites
GET
/v1/sitesPOST
/v1/sitesGET
/v1/sites/{id}PUT
/v1/sites/{id}DELETE
/v1/sites/{id}Cache rules
GET
/v1/sites/{id}/rulesPUT
/v1/sites/{id}/rulesPurge
POST
/v1/sites/{id}/purgeAnalytics
GET
/v1/sites/{id}/analyticsCertificates
GET
/v1/sites/{id}/certificatesPOST
/v1/sites/{id}/certificatesPagination
List endpoints return up to 50 items and a next_cursor. Pass it as ?cursor= to get the next page.
Example: purge by tag
POST /v1/sites/st_8KfQ2m/purge
{ "tags": ["article-1842", "homepage"] }
202 Accepted
{ "id": "pg_3Hx9", "status": "queued", "estimated_seconds": 1 }