Skip to main contentSkip to Content
Audit Logs

Audit Logs

Every significant action in CampaignOS is recorded in the audit log for compliance and debugging.

List Audit Logs

GET /api/workspaces/{workspaceId}/audit-logs

Paginated, filterable audit trail.

Auth: Session required

Query Parameters:

ParamTypeDefaultDescription
pagenumber1Page number
limitnumber50Items per page
actionstringFilter by action type
entityTypestringFilter by entity type
entityIdstringFilter by entity ID
userIdstringFilter by user who performed the action

Response:

{ "data": [ { "id": "log_abc123", "action": "contact.consent.updated", "entityType": "ContactConsent", "entityId": "ct_abc123", "userId": "usr_123", "metadata": { "channel": "EMAIL", "oldStatus": "OPTED_IN", "newStatus": "OPTED_OUT" }, "createdAt": "2026-01-15T10:00:00.000Z" } ], "pagination": { "page": 1, "limit": 50, "total": 5000, "totalPages": 100 } }

Logged Actions

ActionDescription
contact.createdContact created
contact.updatedContact profile updated
contact.deletedContact deleted
contact.mergedTwo contacts merged
contact.anonymizedContact data anonymized (DSR)
contact.consent.updatedConsent status changed
campaign.createdCampaign created
campaign.updatedCampaign updated
campaign.executedCampaign executed
message.sentMessage dispatched
workspace.createdWorkspace created
workspace.updatedWorkspace settings updated
apikey.createdAPI key created
apikey.deletedAPI key revoked
unsubscribeContact unsubscribed
Last updated on