REST API
REST API
Section titled “REST API”What this section will cover
Section titled “What this section will cover”- 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 422validation,HTTP 429rate limit,HTTP 401/403auth, structured error bodies
Sample request
Section titled “Sample request”A common operation — update banner custom CSS:
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/" }]}See also
Section titled “See also”- Banner CSS
- Branding Policy —
HTTP 422enforcement details - CSS Sanitizer Rules — what gets stripped vs validated
- OpenAPI Swagger UI →