Features Pricing Regions Support Blog ⚡ Free Audit Start free Log in FR

Warm URLs

Trigger an on-demand cache warm for a specific list of URLs. The response is 202 Accepted — the run is queued and processed asynchronously.

POST /v1/sites/{id}/warm

Requires scope: boosts:write

Path parameters

ParameterTypeRequiredDescription
id integer Required Site ID.

Body parameters

ParameterTypeRequiredDescription
urls array Required List of URLs to warm. All URLs must belong to the site's domain. Maximum 5,000 URLs per request.
region array Optional Target regions: fr, us, eu, as. Defaults to ["fr"].
variations object Optional user_agents (mobile, desktop, bot, ai_crawler) and languages. Each combination counts as one call per URL.

Example request

curl -X POST https://api.cache-boost.com/v1/sites/42/warm \
  -H "Authorization: Bearer cb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.example.com/", "https://www.example.com/about"], "region": ["fr", "us"]}'

Response

Returns 202 Accepted.

{
  "run_id": 91,
  "url_count": 2,
  "status": "pending"
}

The warm run is asynchronous. Use the returned run_id to poll GET /v1/runs/{id} for progress. The site must be validated before warming.

Errors

CodeDescription
401Missing or invalid API key.
403Insufficient scope, access denied, or quota exceeded.
404Site not found.
409Site is not validated, or a warm run is already in progress.
422Validation error — missing or invalid fields, or URLs outside the site's domain.