Consent Recording
Record consent
POST /api/gdpr/consent
Records a consent event for cookie acceptance, privacy policy agreement, or terms of service acceptance. This endpoint is public — it is available before the user is logged in so that pre-login consent can be captured on the login and registration pages.
Permission: None — public endpoint (no authentication required)
Type of consent being recorded. One of:
cookies, privacy_policy, terms.Version string of the policy being accepted (e.g.
"1.2"). Must match the current version of the relevant Legal Document.true if the user accepted, false if they declined.Optional browser fingerprint to link the consent record to a device before the user has an account.
Declined consent (
accepted: false) is also recorded. This provides a full audit trail required under UK GDPR Article 7 for demonstrating the ability to prove consent was or was not given.GDPR Data Export
Generate a data-subject export
GET /api/tenants/gdpr-report?tenant_uuid=<uuid>
Generates a portable GDPR data-subject access report for a tenant. The report includes all personal data held for the tenant — contact details, job history, case notes, and consent records. Accessible to staff only.
Required permission: api.tenants.gdpr-report.manageAccount types: Staff only
UUID of the tenant to generate the export for.