Retrieve paginated audit log of all consent changes for a user
| Header | Required | Description |
|---|---|---|
x-client-key | ✅ | Your public API key |
x-us-env | ❌ | Set to true for US region routing |
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | ✅ | User identifier to retrieve audit trail for |
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
limit | integer | ❌ | Number of records per page (max 100) | 50 |
offset | integer | ❌ | Starting position for pagination | 0 |
| Field | Type | Description |
|---|---|---|
auditId | string | Unique identifier for this audit record |
action | string | Action type: created, updated, revoked |
timestamp | string (ISO 8601) | When the change occurred |
consentSetId | string (UUID) | Consent set containing this change |
changes.before | object|null | State before change (null for creation) |
changes.after | object | State after change |
metadata | object | Additional context (IP, user agent, etc.) |
| Action | Description | Before State | After State |
|---|---|---|---|
created | Initial consent creation | null | Consent record |
updated | Consent status changed | Original status | New status |
revoked | Consent was revoked | granted status | revoked status |
limit and offset to paginate through large audit trails:
Regulatory Audits
Data Subject Access Requests (DSAR)
Consent Timeline Visualization
Legal Defense