Manage CookieHub at scale with the Management API.
Create and manage domains, read and update their consent configuration, run cookie scans and retrieve consent log entries from your own backend systems — instead of repeating the same changes in the CookieHub Dashboard.
- REST API with JSON
- Domains and domain settings
- Enterprise API credentials
One API for managing CookieHub configuration across your portfolio.
The CookieHub Management API is a consent management API for backend systems. It’s built for developers, platform teams and DevOps or infrastructure teams — and for organizations that manage several CookieHub domains — who want to handle account and domain configuration in code.
Rather than repeating the same change domain by domain in the Dashboard, your own tools call the API: create domains, read their settings, update them and keep configuration consistent across the domains you manage.
Domain management
List the domains in your account, create new ones, look up a domain by ID and remove domains you no longer need.
Configuration automation
Read and update a domain’s settings, languages and regions from code. Settings you update through the API are published to the domain.
Backend integrations
Connect CookieHub to your onboarding, deployment and administration tools, with requests made server-side using Enterprise API credentials.
The resources your backend can manage.
The Management API is a REST API that sends and receives JSON. Users and subscriptions belong to your account; everything else belongs to a domain.
- Users: list the users assigned to your account, or get one by ID
- Subscriptions: list the CookieHub subscriptions available to your account
- Domains: list, create, get and delete domains, and reset consent so every visitor is asked again
- Settings, languages and regions: read and update a domain’s settings, its dialog labels per language and its regions
- Scans: request a new cookie scan and read its results, including the cookies found
- Consent log: request a batch of consent log entries by date range or consent token, then retrieve the batch’s entries
Cookies don’t have an endpoint of their own: they’re returned in a scan’s results. The API reference documents every endpoint, parameter and response.
View API referenceRetrieve and update domain configuration programmatically.
Each domain’s settings are available as one JSON object. Fetch the current settings, change the values you need and send them back with a PATCH request — the API updates the domain and publishes the changes.
- general: where the visitor’s choice is stored and for how long
- language: the default dialog language and browser language detection
- crawler: the cookie scanner, its entry URL, page limit and automatic publishing
- blocker: the automatic cookie blocker and placeholders for blocked iframes
- gtm and gcm: Google Tag Manager events and Google Consent Mode
- ui: the consent dialog’s styling, colours and links
Other categories cover geolocation, consent log collection, cookie removal and the inline cookie declaration. Regions have their own endpoints, so you can add, update or remove a domain’s regions separately.
Domain settings in the API referenceEnterprise API credentials, kept on your servers.
Create your Enterprise API credentials in the CookieHub Dashboard and authenticate each request through the Authorization header. See the API reference for the current authentication format and implementation details.
- Create API credentials in the Dashboard
- Store them in your backend
- Authenticate each request in the Authorization header
Keep credentials server-side
API credentials give administrative access to your CookieHub account. Keep them in your backend or secrets store, and never include them in frontend JavaScript, other browser code or a public repository.
Manage keys in the Dashboard
Enterprise accounts have an API keys section in the Account menu. It lists each key’s name, creation date and last-used date, and lets you create new keys and revoke the ones you no longer need.
Bring CookieHub administration into the tools you already run.
Each workflow is a sequence of standard REST requests, run from your own scripts, internal tools or CI/CD pipelines — for example, a deployment step that applies the settings your team keeps in version control. Domain requests act on one domain at a time.
Full API referenceProvision domains during onboarding
When your onboarding workflow approves a new website, create its CookieHub domain and read back its details, including the domain code used to install CookieHub.
- POST
/domain - GET
/domain/{domainId}
- POST
Retrieve domain configuration
Read the settings of any domain in your account, for example to check them against your approved setup or show them in an internal tool.
- GET
/domain - GET
/domain/{domainId} /settings
- GET
Update settings from internal tooling
Change values such as language detection, the cookie blocker or Google Consent Mode from your own admin tools, and update the dialog labels for a language.
- PATCH
/domain/{domainId} /settings - PATCH
/domain/{domainId} /language /{languageId}
- PATCH
Keep approved configuration in sync
Apply the same approved settings to every domain you manage: list the domains, then update each domain’s settings in turn.
- GET
/domain - PATCH
/domain/{domainId} /settings
- GET
Run cookie scans
Request a new cookie scan for a domain and read the results, including the pages scanned and the cookies found.
- POST
/domain/{domainId} /scan - GET
/domain/{domainId} /scan /{scanId}
- POST
Retrieve consent log entries
Request a consent log batch for a date range or a visitor’s consent token, then retrieve its entries once the batch has been processed.
- POST
/domain/{domainId} /consent-log - GET
/domain/{domainId} /consent-log /{batchId}
- POST
Management API questions, answered.
A REST API for managing your CookieHub account and domains from your own systems. It sends and receives JSON, and lets you create, update and get information about domains, read and update their settings, languages and regions, request cookie scans and retrieve consent log entries.
The Management API is available to Enterprise customers. API credentials are created in the API keys section of the CookieHub Dashboard, which Enterprise accounts open from the Account menu.
Users and subscriptions on your account and, for each domain: its details, settings, languages and regions, cookie scans and their results, consent log batches, and a consent reset that asks every visitor again. Cookies are returned in a scan’s results rather than through an endpoint of their own.
Create your Enterprise API credentials in the CookieHub Dashboard and authenticate each request through the Authorization header. The API reference describes the current authentication format and implementation details.
Yes. You can list every domain in your account, create new ones and work with any of them by domain ID. Domain requests act on one domain at a time, so to apply a change across several domains, your code sends a request for each one.
Yes. A GET request returns a domain’s settings as JSON, including the general, language, crawler, blocker, Google Tag Manager, Google Consent Mode and UI settings. A PATCH request updates the settings and publishes the changes. Languages and regions have their own endpoints.
Yes. Request a consent log batch for a domain by date range or by a visitor’s consent token. Building a batch can take a few minutes, so you retrieve its entries once it has been processed. Batches you no longer need can be deleted.
No. The Management API is for server-side use. Its credentials give administrative access to your CookieHub account, so they must stay on your servers and never be included in frontend JavaScript or other browser code. To work with consent in the browser, use the JavaScript API.
The Management API runs on your servers and manages account and domain configuration — domains, settings, scans and the consent log — with Enterprise API credentials. The JavaScript API runs in the visitor’s browser through window.cookiehub: it reads the visitor’s consent state, lets your code respond to consent events and opens the consent dialog and settings.
It’s a RESTful API that uses the HTTP methods GET, POST, PATCH and DELETE with JSON request and response bodies, and it’s documented as an OpenAPI specification.
The CookieHub API reference on SwaggerHub documents every endpoint, its parameters, its request and response formats, and the current authentication format. The View API documentation buttons on this page open it.
Automate CookieHub management across your stack.
Connect your internal systems to CookieHub and manage domain configuration programmatically.