API
Read consent data and record consent from your own systems.
The Pactbase API lets your systems fetch your consent data when they choose, for example a nightly job that pulls yesterday's records into your CRM or data warehouse. It is the pull counterpart of webhooks, which push each change as it happens. With a key that can record consent, the same systems also send consent collected outside the website script: a screen in a mobile app, a backend sign-up, or a form tool relayed through n8n.
Base URL: https://v1.pactbase.in
| Call | Does | Scope |
|---|---|---|
GET /api/v1/consent-records | The consent ledger, filtered and paged | consent:read |
GET /api/v1/consent-state | One person's current consent | consent:read |
GET /api/v1/purposes | Your purposes | consent:read |
GET /api/v1/collection-points/{cp} | What to show before asking | consent:read |
POST /api/v1/consent | Record a decision | consent:write |
POST /api/v1/portal-sessions | Open Manage my data for a signed-in person | consent:write |
POST /api/v1/retention/deletions | Log a deletion | retention:write |
Authentication
API keys, scopes, IP limits and rate limits.
Consent data
Records, state, purposes and collection points.
Record consent
Send decisions from your app or backend.
Portal sessions
Manage my data without an emailed code.
Log a deletion
Close the loop on retention.
Errors
Status codes and error codes.
The API reference lists every operation with a playground.
Only these operations are public
Calls the Pactbase app and website script make for themselves are not part of the public API and can change without notice.