PactbasePactbase DocsDocs
API

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

CallDoesScope
GET /api/v1/consent-recordsThe consent ledger, filtered and pagedconsent:read
GET /api/v1/consent-stateOne person's current consentconsent:read
GET /api/v1/purposesYour purposesconsent:read
GET /api/v1/collection-points/{cp}What to show before askingconsent:read
POST /api/v1/consentRecord a decisionconsent:write
POST /api/v1/portal-sessionsOpen Manage my data for a signed-in personconsent:write
POST /api/v1/retention/deletionsLog a deletionretention:write

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.