# ConsentLayer API

**Canonical:** https://apis.io/apis/consentlayer-com/consentlayer-com-api/  
**Provider:** ConsentLayer — https://apis.io/providers/consentlayer-com/  
**Base URL:** https://api.consentlayer.com  
**Documentation:** https://docs.consentlayer.com/docs/api-reference/sites

ConsentLayer API is one of 2 APIs that [ConsentLayer](https://apis.io/providers/consentlayer-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

ConsentLayer API as documented publicly: 33 operations. Contract generated from the documentation by API Evangelist (2026-11-04); not the provider's own document.

## Operations (33)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/v1/sites` | GET /api/v1/sites |
| GET | `/api/v1/sites/${id}` | GET /api/v1/sites/${id} |
| PATCH | `/api/v1/sites/${siteId}/banner` | PATCH /api/v1/sites/${siteId}/banner |
| POST | `/api/v1/sites/${siteId}/categories` | POST /api/v1/sites/${siteId}/categories |
| PATCH | `/api/v1/sites/${siteId}/categories/${catId}` | PATCH /api/v1/sites/${siteId}/categories/${catId} |
| POST | `/api/v1/sites/${siteId}/scan` | POST /api/v1/sites/${siteId}/scan |
| GET | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789` | Get a site by ID |
| PATCH | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/banner` | PATCH /api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/banner |
| POST | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/categories` | POST /api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/categories |
| DELETE | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/categories/f4a5b6c7-d8e9-0123-4567-890abcdef012` | Delete a category |
| PATCH | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/categories/f4a5b6c7-d8e9-0123-4567-890abcdef012` | Update a category |
| GET | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/consent-records` | GET /api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/consent-records |
| POST | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/scan` | POST /api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/scan |
| GET | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/scans` | Returns all scan results for a site, ordered by most recent first. |
| GET | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/scans/s1c2a3n4-d5e6-7f89-0a1b-2c3d4e5f6789` | Returns a single scan result by its ID. |
| POST | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/scans/s1c2a3n4-d5e6-7f89-0a1b-2c3d4e5f6789/configure` | Automatically creates services and cookies based on a completed scan's detected services. |
| DELETE | `/api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/services` | DELETE /api/v1/sites/e1a2b3c4-d5e6-7f89-0a1b-2c3d4e5f6789/services |
| GET | `/mcp` | GET /mcp |
| GET | `/sites` | List all sites |
| GET | `/sites/{id}` | Get a site by ID |
| GET | `/sites/{id}/banner` | Get banner configuration |
| PATCH | `/sites/{id}/banner` | Update banner configuration |
| GET | `/sites/{id}/categories` | List all cookie categories for a site |
| POST | `/sites/{id}/categories` | Create a new cookie category |
| DELETE | `/sites/{id}/categories/{catid}` | Delete a cookie category |
| PATCH | `/sites/{id}/categories/{catid}` | Update a cookie category |
| GET | `/sites/{id}/consent-records` | List paginated consent records with date filtering |
| POST | `/sites/{id}/scan` | Triggers a new cookie/script scan for a site. |
| GET | `/sites/{id}/scans` | Returns all scan results for a site, ordered by most recent first. |
| GET | `/sites/{id}/scans/{scanid}` | Returns a single scan result by its ID. |
| POST | `/sites/{id}/scans/{scanid}/configure` | Automatically creates services and cookies based on a completed scan's detected services. |
| GET | `/sites/{id}/services` | List all detected services and their cookies |
| DELETE | `/sites/{id}/services/{serviceid}` | Delete a service and its cookies |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/consentlayer-com/openapi/_ae-authored/consentlayer-com-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/consentlayer-com/json-schema/consentlayer-com-get-sites-id-banner-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/consentlayer-com/json-schema/consentlayer-com-patch-sites-id-banner-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/consentlayer-com/json-schema/consentlayer-com-patch-api-v1-sites-e1-a2-b3-c4-d5-e67-f890-a1-b2-c3-d4-e5-f6789-banner-respons-schema.json
- **JSONSchema** — https://artifacts.apis.io/consentlayer-com/json-schema/consentlayer-com-patch-api-v1-sites-siteid-banner-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/consentlayer-com/json-schema/consentlayer-com-patch-sites-id-banner-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/consentlayer-com/json-schema/consentlayer-com-post-sites-id-scan-response-schema.json

## Other ConsentLayer APIs (1)

- [ConsentLayer API](https://apis.io/apis/consentlayer-com/consentlayer-api/)

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/consentlayer-com/consentlayer-com-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/consentlayer-com/.
