Skip to content

REST API

  • Authentication — JWT bearer tokens, OAuth (Google), key rotation
  • Resources — Sites, Domain Groups, Banner Configs, Consents, Scanner runs, Subscription
  • Bulk operations — Site reorder, multi-site consent search, bulk delete
  • Webhooks — Consent event hooks, scanner completion
  • Rate limits + error codes — HTTP 422 validation, HTTP 429 rate limit, HTTP 401/403 auth, structured error bodies

A common operation — update banner custom CSS:

Terminal window
curl -X PUT https://api.kookiok.com/api/v1/domain-groups/{domainGroupId}/banner-config \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{ "customCss": ".ag-banner { background: #f0f4ff; }" }'

If customCss targets protected branding selectors, the server returns HTTP 422:

{
"error_code": "custom_css_invalid",
"issues": [{
"code": "branding_modification_attempted",
"severity": "error",
"message": "...",
"docsUrl": "https://api.kookiok.com/docs/banner-css/branding-policy/"
}]
}