Features Pricing Regions Support Start free Log in FR

Create a boost

Create a new cache warming campaign.

POST /v1/boosts

Requires scope: boosts:write

Body parameters

ParameterTypeRequiredDescription
namestringRequiredDisplay name for the boost.
site_idintegerRequiredID of the site to warm.
source_typestringRequiredsitemap or csv.
regionarrayRequiredTarget regions. Values: fr, us, eu, as.
sitemap_idsarrayOptionalRequired when source_type is sitemap. IDs of sitemaps to warm.
source_urlstringOptionalCSV file URL. Required when source_type is csv.
url_rootstringOptionalOnly warm URLs starting with this path. Default: /.
exclude_extarrayOptionalFile extensions to skip (e.g. jpg, png, css, js).
variationsobjectOptionalWarming variations with user_agents (mobile, desktop, bot, ai_crawler) and languages (e.g. fr-FR, en-US). Each combination counts as one call per URL.
schedulestringOptionalCron expression (UTC) for automatic scheduling.
call_limitintegerOptionalMaximum number of calls for this boost.
ignore_errorsbooleanOptionalIf true, the boost will not auto-pause on high error rates. Default: false.
report_email_enabledbooleanOptionalSend an email report when a run completes. Default: true.

Example request

curl -X POST https://api.cache-boost.com/v1/boosts \
  -H "Authorization: Bearer cb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Daily warm",
    "site_id": 42,
    "source_type": "sitemap",
    "region": ["fr"],
    "sitemap_ids": [7],
    "schedule": "0 1 * * *"
  }'

Response

Returns 201 Created with the full boost object.

{
  "id": 15,
  "site_id": 42,
  "name": "Daily warm",
  "status": "pending",
  "source_type": "sitemap",
  "region": ["fr"],
  "sitemap_ids": [7],
  "url_root": "/",
  "exclude_ext": null,
  "variations": null,
  "content_types": null,
  "ignore_errors": false,
  "report_email_enabled": true,
  "schedule": "0 1 * * *",
  "next_run_at": "2025-01-16T01:00:00Z",
  "call_limit": null,
  "created_at": "2025-01-15T10:30:00Z"
}

Errors

CodeDescription
401Missing or invalid API key.
403Insufficient scope or access denied.
404Site or sitemap not found.
422Validation error — missing or invalid fields.