API Reference

Base URL: https://api.conzentor.com

Authenticated endpoints require a Better Auth session token passed as a Bearer token in the Authorization header.

Public Endpoints

No authentication required. Used by the consent script and cookie declaration widget.

MethodEndpointDescription
POST/v1/consentLog visitor consent choice
GET/v1/banner/:scriptKeyGet banner configuration for a domain
GET/v1/domains/:id/cookies/declaration?script_key=xxxPublic cookie declaration for a domain

Domains

Manage domains linked to your account.

MethodEndpointDescription
GET/v1/domainsList all domains for the authenticated account
POST/v1/domainsCreate a new domain
GET/v1/domains/:idGet domain details
PATCH/v1/domains/:idUpdate domain settings
DELETE/v1/domains/:idDelete a domain
POST/v1/domains/:id/rotate-keyRotate the script key for a domain
POST/v1/domains/:id/re-promptForce all visitors to re-consent
POST/v1/domains/:id/verifyVerify domain ownership via DNS or meta tag

Banner Configuration

Customise the look and behaviour of your consent banner.

MethodEndpointDescription
GET/v1/domains/:id/bannerGet banner configuration
PUT/v1/domains/:id/bannerUpdate banner configuration

Cookies & Scanning

Discover and categorise cookies found on your domain.

MethodEndpointDescription
GET/v1/domains/:id/cookiesList discovered cookies
PATCH/v1/domains/:id/cookies/:cookieIdUpdate a cookie's category
POST/v1/domains/:id/scanTrigger a cookie scan
GET/v1/domains/:id/scan/statusGet current scan status

Analytics & Consent Logs

View, export, and manage consent data.

MethodEndpointDescription
GET/v1/domains/:id/analyticsConsent analytics summary
GET/v1/domains/:id/analytics/dailyDaily consent counts
GET/v1/domains/:id/analytics/logsRecent consent logs
GET/v1/domains/:id/analytics/exportExport consent logs as CSV
POST/v1/domains/:id/analytics/anonymizeAnonymize a specific session
GET/v1/domains/:id/analytics/proof/:sessionIdGet consent proof for a session

Account & Billing

Dashboard stats, billing info, and account details.

MethodEndpointDescription
GET/v1/statsDashboard summary stats
GET/v1/billingBilling info and current plan
GET/v1/accountAccount details

Webhooks

Inbound webhook endpoints for third-party services. Not called directly.

MethodEndpointDescription
POST/v1/webhooks/lemonsqueezyReceives Lemon Squeezy billing events