REST API Documentation
The CONSETO API allows you to track events, manage consent, and access analytics data programmatically. All endpoints are RESTful and return JSON responses.
https://api.conseto.ioAuthentication
Authenticate your API requests using your API key. Include it in the Authorization header of every request.
csk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxFind your API key in the dashboard under Settings → API Keys.
curl -X POST https://api.conseto.io/api/consent/events \
-H "Authorization: Bearer csk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"clientId": "conseto_xxx_xxx",
"event": "page_view",
"properties": {
"page": "/products"
}
}'Endpoints
/api/consentConsentRecord user consent preferences
/api/consent/:clientIdConsentGet consent status for a session
/api/consent/eventsEventsTrack custom events
/api/consent/pageviewEventsTrack page views
/api/consent/conversionsEventsTrack server-side conversions
/api/collectEventsBatch event collection (SDK v2)
/api/clients/:id/statsAnalyticsGet analytics statistics
/api/audit/singleAuditRun GDPR compliance audit
Webhooks
Receive real-time notifications when events occur. Configure webhook URLs in your dashboard to get notified about consent changes, conversions, and more.
consent.updatedconversion.createdsession.ended{
"event": "consent.updated",
"timestamp": "2026-01-25T12:00:00Z",
"data": {
"sessionId": "sess_xxx",
"clientId": "conseto_xxx_xxx",
"consent": {
"analytics": true,
"marketing": false,
"necessary": true
}
}
}Rate Limits
SDKs & Libraries
Use our official SDKs for easier integration
Build with CONSETO
Explore our SDKs, dive into the docs, or reach out to our team for integration support.