latestOpenAPI 3.0.02026-08-08270135.7 KB

c1404d1545ba

logs

Get workspace logs

Retrieve a paginated list of audit logs for your workspace.

    This endpoint allows you to:
    - Get all audit logs in your workspace
    - Filter logs by user, action, operation, or date range
    - Paginate through large sets of logs using cursor-based or offset-based pagination

    **Use cases:**
    - Building an audit log viewer or dashboard
    - Monitoring workspace activity
    - Compliance and security auditing
    - Tracking user actions and changes

    **Available log actions:**
    - workspace, workspace:team, workspace:invite, workspace:invite:redeem, workspace:preferences, workspace:avatar, workspace:rename, workspace:user, workspace:user:role
    - collection
    - scene, scene:readonly-link, scene:readonly-links, scene:link-sharing, scene:collection, scene:upload, scene:image-upload, scene:slides, scene:comment
    - user:signup
    - ai:diagram-to-code, ai:text-to-diagram, ai:text-to-drawing
get/api/v1/logs

Query parameters

limitinteger

The number of items to return per page.

offsetinteger

The number of items to skip before starting to collect the result set.

cursorstring

Cursor for pagination (sequence number). Use nextCursor from previous response.

pagestring

Page number for offset-based pagination. Cannot be used with cursor.

userstring

Filter logs by user ID

actionstring

Filter logs by action type

operation'create' | 'read' | 'update' | 'delete'

Filter logs by operation type

dateFromstring

Filter logs from this date (ISO 8601 format)

dateTostring

Filter logs to this date (ISO 8601 format)

Response

This response returns a paginated list of workspace audit logs.

nextCursorstring required

Cursor for next page (null if no more pages)

hasMoreboolean required

Whether there are more logs to fetch

availableActionsstring[] required

List of available log actions that can be filtered

totalCountnumber required

Total count of logs (only when using page parameter)

totalPagesnumber required

Total pages (only when using page parameter)

currentPagenumber required

Current page number (only when using page parameter)