ConsentLayer
API Reference

Consent Records

Consent records are created each time a visitor interacts with the consent banner. They store what categories were accepted or rejected, the visitor's jurisdiction, and GPC/Do Not Sell signals. Use these records for compliance auditing and reporting.

Using the SDK? The getConsentState() function reads the current visitor's consent from the cookie. Use the API endpoint below for server-side compliance reporting across all visitors.