Usercentrics Consent API

The Consent API from Usercentrics — 11 operation(s) for consent.

GitHub OpenAPI
Business capability
Privacy & Data Protection Management BC-130.50

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /cmp-data Get the CMP configuration · Get CMP Data #
Ask an LLM
“What services are configured in the cookie consent manager?”
“Which categories and copy does the CMP use?”
Tell an agent
Get the CMP configuration.
Show the service list, categories and copy of the active CMP.
GET /consents Get per-service consent state · Get Consents #
Ask an LLM
“Which services has the user consented to?”
“Can I read the current consent state stored on the device?”
Tell an agent
Get the current per-service consent state.
Show which services the user has consented to on this device.
POST /consent/withdraw Withdraw all consent · Withdraw Consent #
Ask an LLM
“How do I revoke all user consent for the Cookiebot CMP?”
“Can I withdraw consent for every service at once?”
Tell an agent destructive · confirm first
Withdraw all consent for the current user.
Revoke every service consent for this user.
POST /consent/submit-custom Submit a custom consent decision · Submit Custom Consent #
Ask an LLM
“Can I set preferences, statistics and marketing consent separately?”
“How do I submit a custom consent choice for the user?”
Tell an agent
Submit custom consent preferences {preferences}.
Set statistics consent to {statistics} and marketing consent to {marketing}.
GET /consent/state Get the consent state flags · Get Consent State #
Ask an LLM
“What are the necessary, preferences, statistics and marketing consent flags?”
“Can I read the Cookiebot consent state?”
Tell an agent
Get the Cookiebot consent state flags.
Show the necessary, preferences, statistics and marketing consent flags.
GET /scripts/get Get a blocked script · Get Script #
Ask an LLM
“How do I fetch a script blocked until consent?”
“Can I retrieve a script that is pending consent?”
Tell an agent
Get the script blocked by Cookiebot pending consent.
Fetch the script that is waiting on user consent.
POST /scripts/run Run consent-gated scripts · Run Scripts #
Ask an LLM
“How do I execute scripts that were gated on consent?”
“Can I run the scripts once consent is granted?”
Tell an agent
Run the scripts that have been gated on consent.
Execute the consent-gated scripts now.
POST /ui/accept-all Accept all services · Accept All Services #
Ask an LLM
“How do I grant consent for every configured service at once?”
“Can I accept all services through the UI?”
Tell an agent
Accept all services.
Grant consent for every configured service.
POST /ui/deny-all Deny all services · Deny All Services #
Ask an LLM
“How do I deny consent for every configured service?”
“Can I block all services through the UI?”
Tell an agent destructive · confirm first
Deny all services.
Block consent for every configured service.
POST /ui/update-services Update consent for specific services · Update Service Consents #
Ask an LLM
“Can I change consent for just a few services?”
“How do I update the consent state for a specific list of services?”
Tell an agent
Update consent for services {services}.
Set consent for these services: {services}.
GET /ui/services-base-info Get services with consent state · Get Services Base Info #
Ask an LLM
“Which services are configured and what is their current consent state?”
“Can I see the base info for every service?”
Tell an agent
Get the configured services with their current consent state.
Show base info for all services.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/usercentrics:usercentrics-consent-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

usercentrics-consent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Usercentrics Consent API
  version: '1.0'
  description: 'Operations tagged Consent across 3 of this provider''s published API definitions: usercentrics-app-cmp-sdk-openapi.yml, usercentrics-cookiebot-cmp-openapi.yml, usercentrics-web-cmp-v3-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: sdk://usercentrics.app
  description: In-process App CMP SDK (logical URL).
- url: https://consent.cookiebot.com
  description: Cookiebot consent delivery CDN.
- url: https://app.usercentrics.eu
  description: Usercentrics CDN/control plane (EU).
tags:
- name: Consent
paths:
  /cmp-data:
    get:
      tags:
      - Consent
      summary: Get CMP Data
      description: Retrieve the active CMP configuration including service list, categories, and copy.
      operationId: getCmpData
      responses:
        '200':
          description: Active CMP configuration returned.
    servers:
    - url: sdk://usercentrics.app
      description: In-process App CMP SDK (logical URL).
  /consents:
    get:
      tags:
      - Consent
      summary: Get Consents
      description: Return the current per-service consent state stored on device.
      operationId: getConsents
      responses:
        '200':
          description: Per-service consent state returned.
    servers:
    - url: sdk://usercentrics.app
      description: In-process App CMP SDK (logical URL).
  /consent/withdraw:
    post:
      tags:
      - Consent
      summary: Withdraw Consent
      description: Withdraw all consent for the current user (Cookiebot.withdraw()).
      operationId: cookiebotWithdraw
      responses:
        '200':
          description: Consent withdrawn.
    servers:
    - url: https://consent.cookiebot.com
      description: Cookiebot consent delivery CDN.
  /consent/submit-custom:
    post:
      tags:
      - Consent
      summary: Submit Custom Consent
      description: Submit a custom consent decision (Cookiebot.submitCustomConsent).
      operationId: cookiebotSubmitCustomConsent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                preferences:
                  type: boolean
                statistics:
                  type: boolean
                marketing:
                  type: boolean
      responses:
        '200':
          description: Custom consent submitted.
    servers:
    - url: https://consent.cookiebot.com
      description: Cookiebot consent delivery CDN.
  /consent/state:
    get:
      tags:
      - Consent
      summary: Get Consent State
      description: Read Cookiebot.consent (necessary, preferences, statistics, marketing) flags.
      operationId: cookiebotGetConsent
      responses:
        '200':
          description: Consent flags returned.
    servers:
    - url: https://consent.cookiebot.com
      description: Cookiebot consent delivery CDN.
  /scripts/get:
    get:
      tags:
      - Consent
      summary: Get Script
      description: Retrieve a script blocked by Cookiebot pending consent (Cookiebot.getScript).
      operationId: cookiebotGetScript
      responses:
        '200':
          description: Script retrieved.
    servers:
    - url: https://consent.cookiebot.com
      description: Cookiebot consent delivery CDN.
  /scripts/run:
    post:
      tags:
      - Consent
      summary: Run Scripts
      description: Execute scripts that have been gated on consent (Cookiebot.runScripts).
      operationId: cookiebotRunScripts
      responses:
        '200':
          description: Scripts executed.
    servers:
    - url: https://consent.cookiebot.com
      description: Cookiebot consent delivery CDN.
  /ui/accept-all:
    post:
      tags:
      - Consent
      summary: Accept All Services
      description: Grant consent for every configured service (UC_UI.acceptAllConsents).
      operationId: uiAcceptAll
      responses:
        '200':
          description: All consents granted.
    servers:
    - url: https://app.usercentrics.eu
      description: Usercentrics CDN/control plane (EU).
  /ui/deny-all:
    post:
      tags:
      - Consent
      summary: Deny All Services
      description: Deny consent for every configured service (UC_UI.denyAllConsents).
      operationId: uiDenyAll
      responses:
        '200':
          description: All consents denied.
    servers:
    - url: https://app.usercentrics.eu
      description: Usercentrics CDN/control plane (EU).
  /ui/update-services:
    post:
      tags:
      - Consent
      summary: Update Service Consents
      description: Update consent state for a specific list of services (UC_UI.updateServices).
      operationId: uiUpdateServices
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                services:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      consent:
                        type: boolean
      responses:
        '200':
          description: Consent updated.
    servers:
    - url: https://app.usercentrics.eu
      description: Usercentrics CDN/control plane (EU).
  /ui/services-base-info:
    get:
      tags:
      - Consent
      summary: Get Services Base Info
      description: Return the configured services with current consent state.
      operationId: uiGetServicesBaseInfo
      responses:
        '200':
          description: Service list returned.
    servers:
    - url: https://app.usercentrics.eu
      description: Usercentrics CDN/control plane (EU).
x-refined-from:
- usercentrics-app-cmp-sdk-openapi.yml
- usercentrics-cookiebot-cmp-openapi.yml
- usercentrics-web-cmp-v3-openapi.yml