Skip to the page

API reference

Audit log

Read and export the audit log of a workspace.

GET Workspace audit log, cursor-paginated, newest first by default

/api/clist/v1/workspaces/{workspaceId}/audit-log

API key scope: workspace.audit_log

Owners and admins only. Filter by subject_type/subject_id, action, actor_id (any part of the actor id or display name) and since/until (ISO 8601, inclusive). Text filters ignore case unless case_sensitive=true. sort=oldest reverses the default newest-first order (a cursor from one order is not valid in the other — pass none when changing sort). Follow next_cursor for the next page.

Parameters

NameInTypeRequiredDescription
subject_typequerystring (up to 100 characters)no
subject_idquerystring (up to 200 characters)no
actor_idquerystring (up to 200 characters)noMatches any part of the actor id or display name.
actionquerystring (up to 100 characters)no
case_sensitivequerybooleannoText filters ignore case unless this is true.
sincequerystringnoInclusive lower bound on occurred_at, ISO 8601.
untilquerystringnoInclusive upper bound on occurred_at, ISO 8601.
sortqueryone of: "newest", "oldest"noNewest first (the default) or oldest first.
cursorquerystring (up to 32 characters)no
limitqueryinteger (1 to 200)no
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • entries array of object required
      • id string required Monotonically increasing; also usable as the cursor for the next page.
      • workspace_id string (uuid) required
      • occurred_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • actor_type one of: "user", "anonymous", "api_key", "system" required
      • actor_id string required The user's id, the visitor's per-workspace pseudonym, or an API key id.
      • actor_display_name string or null required
      • source one of: "ui", "api", "system", "embed", "sticker" required
      • subject_type string required
      • subject_id string required
      • action string required
      • old_value any required
      • new_value any required
      • version integer or null required The checklist version the write was made under, when the subject has one.
      • request_id string or null required
      • subject_name string or null The subject's current name (a checklist's title, an item's question, a member's name), or the name the row recorded when the subject is gone. Only on the workspace log.
      • details object or null
    • next_cursor string or null required Pass as cursor to fetch the next page; null when this is the last page.

Errors come in the error format.

GET The kinds of event this workspace log holds

/api/clist/v1/workspaces/{workspaceId}/audit-log/actions

API key scope: workspace.audit_log

Owners and admins only. Every distinct subject_type and action pair, to choose an action filter from.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • items array of object required
      • subject_type string required
      • action string required

Errors come in the error format.

GET Export the workspace audit log

/api/clist/v1/workspaces/{workspaceId}/audit-log/export

API key scope: workspace.audit_log

Owners and admins only. format=csv or format=json; every column, with neutral, language-independent values. Accepts the same filters as the list endpoint. Capped at 10,000 rows per export: a workspace with more narrows since/until or another filter rather than getting a silently truncated file (payload_too_large).

Parameters

NameInTypeRequiredDescription
formatqueryone of: "csv", "json"yes
subject_typequerystring (up to 100 characters)no
subject_idquerystring (up to 200 characters)no
actor_idquerystring (up to 200 characters)noMatches any part of the actor id or display name.
actionquerystring (up to 100 characters)no
case_sensitivequerybooleannoText filters ignore case unless this is true.
sincequerystringnoInclusive lower bound on occurred_at, ISO 8601.
untilquerystringnoInclusive upper bound on occurred_at, ISO 8601.
sortqueryone of: "newest", "oldest"noNewest first (the default) or oldest first.
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json The export: format=json returns the AuditLogExport JSON body, format=csv a CSV document with a header row (see content for both).
    • entries array of object required
      • id string required Monotonically increasing; also usable as the cursor for the next page.
      • workspace_id string (uuid) required
      • occurred_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • actor_type one of: "user", "anonymous", "api_key", "system" required
      • actor_id string required The user's id, the visitor's per-workspace pseudonym, or an API key id.
      • actor_display_name string or null required
      • source one of: "ui", "api", "system", "embed", "sticker" required
      • subject_type string required
      • subject_id string required
      • action string required
      • old_value any required
      • new_value any required
      • version integer or null required The checklist version the write was made under, when the subject has one.
      • request_id string or null required
      • subject_name string or null The subject's current name (a checklist's title, an item's question, a member's name), or the name the row recorded when the subject is gone. Only on the workspace log.
      • details object or null

Errors come in the error format.