ConsentLayer
API Reference

API Reference

The ConsentLayer API is a REST API that uses JSON request/response bodies and standard HTTP methods. All endpoints require authentication via API key.

Base URL: https://api.consentlayer.com/api/v1

Quick reference

Sites

MethodEndpointDescription
GET/sitesList all sites for the authenticated account
GET/sites/{id}Get a single site by ID
MethodEndpointDescription
GET/sites/{id}/bannerGet the banner configuration for a site
PATCH/sites/{id}/bannerUpdate the banner configuration

Categories

MethodEndpointDescription
GET/sites/{id}/categoriesList all cookie categories for a site
POST/sites/{id}/categoriesCreate a new cookie category
PATCH/sites/{id}/categories/{catId}Update a cookie category
DELETE/sites/{id}/categories/{catId}Delete a cookie category

Services

MethodEndpointDescription
GET/sites/{id}/servicesList all detected services and their cookies
DELETE/sites/{id}/services/{serviceId}Delete a service and its cookies

Scanner

MethodEndpointDescription
POST/sites/{id}/scanTrigger a new cookie/script scan
GET/sites/{id}/scansList all scan results
GET/sites/{id}/scans/{scanId}Get a single scan result
POST/sites/{id}/scans/{scanId}/configureAuto-create services from scan results
MethodEndpointDescription
GET/sites/{id}/consent-recordsList paginated consent records with date filtering