Skip to content
DocsAPI ReferenceConsent Endpoints
API Reference

Consent Endpoints

Consent API Endpoints

These endpoints handle consent recording, event tracking, and pageview analytics. They are public (no auth required) but bot-filtered.

Endpoints

MethodEndpointDescription
POST/api/consent/Record user consent choice
POST/api/consent/eventsTrack custom event
POST/api/consent/events/pre-consentTrack event before consent decision
POST/api/consent/conversionsServer-side conversion tracking
POST/api/consent/pageviewRecord page view
POST/api/consent/session/endEnd user session
GET/api/consent/:clientIdGet consent status (auth required)
POST/api/collectBatch events (SDK v2)

Record Consent

bash
POST /api/consent/

{
  "clientId": "conseto_yoursite_xxx",
  "sessionId": "session_abc123",
  "consent": {
    "necessary": true,
    "analytics": true,
    "marketing": false,
    "preferences": true
  },
  "region": "EU",
  "regulation": "GDPR"
}
Documentation — CONSETO | CONSETO