Cookie Banners

Create and manage cookie consent banners, and read visitor consent records and detected cookies.

Create a cookie banner

POST/api/consent/admin/banners

Create a cookie banner in Complianz. Create and manage cookie consent banners, and read visitor consent records and detected cookies.

Request body

namestringrequired
domainsstring[]required
enabledboolean
configobjectrequired

Responses

200Success
401Missing or invalid API key
403API key lacks the required scope
curl --request POST \
  --url https://complianz.ai/api/consent/admin/banners \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "string",
    "domains": [
      "string"
    ],
    "enabled": true,
    "config": {}
  }'