CentralCSP
APIAudit Logs

Export audit logs

Streams every matching entry as CSV, newest first, with the same filters as the list endpoint and no pagination. Each line carries the time, the action, who did it, what was affected, and the details of the change as JSON. Suitable as evidence for an assessor or for keeping your own archive.

Requires the admin role on the workspace.

GET
/v1/workspaces/{workspaceId}/audit-logs/export

Authorization

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

Query Parameters

action?string

Only entries for this action. Send an empty string for all.

Value in"""workspace.updated""workspace.ownership_transferred""workspace.mfa_enforcement_changed""workspace.ai_integrations_changed""member.role_updated""member.removed""invitation.created""invitation.revoked""invitation.accepted""website.created""website.updated""website.settings_updated""website.deleted""website.reports_reset""website.subdomain_claimed""website.tags_updated""website_tag.created""website_tag.updated""website_tag.deleted""access.member_granted""access.member_revoked""access.group_granted""access.group_revoked""group.created""group.updated""group.deleted""group.member_added""group.member_removed""api_key.created""api_key.revoked""alert_channel.created""alert_channel.updated""alert_channel.deleted""alert_rule.created""alert_rule.updated""alert_rule.deleted""payment_page.created""payment_page.updated""payment_page.deleted""inventory_rule.created""inventory_rule.updated""inventory_rule.deleted""usage_alerts.recipients_updated""reports.exported""inventory.exported""technologies.exported""compliance.evidence_exported""audit_log.exported""scan.started""scan.report_exported""csp_policy.exported""csp_sources.exported""permissions_policy.exported""connection_allowlist.exported""permissions_policy_values.exported""connection_allowlist_destinations.exported"
actorId?string

Only changes made by this user.

Lengthlength <= 255
targetType?string

Only entries about this kind of thing. Send an empty string for all.

Value in"""workspace""member""invitation""website""website_tag""group""access_grant""api_key""alert_channel""alert_rule""payment_page""inventory_rule""scan"
targetId?string

Only entries about this specific thing.

Lengthlength <= 255
from?string

Only entries at or after this time.

Formatdate-time
to?string

Only entries at or before this time.

Formatdate-time
search?string

Match part of the action, the target, or the actor's name or email.

Lengthlength <= 255

Response Body

A UTF-8 CSV file of the filtered audit log.

response?stringtext/csv
Example Request
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/audit-logs/export'
Example Response
"string"