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
apiKeyAuthorizationBearer <Bearer>The API will use the Authorization: Bearer <your-key> header for requests.
limit?integerThe number of items to return per page.
1 <= value <= 100offset?integerThe number of items to skip before starting to collect the result set.
0 <= value <= 9007199254740991cursor?stringCursor for pagination (sequence number). Use nextCursor from previous response.
page?stringPage number for offset-based pagination. Cannot be used with cursor.
user?stringFilter logs by user ID
action?stringFilter logs by action type
operation?stringFilter logs by operation type
"create""read""update""delete"dateFrom?stringFilter logs from this date (ISO 8601 format)
dateTo?stringFilter logs to this date (ISO 8601 format)
This response returns a paginated list of workspace audit logs.
application/json- response
This response returns a paginated list of workspace audit logs.
logs*array<>Array of log entries
nextCursor*|Cursor for next page (null if no more pages)
hasMore*booleanWhether there are more logs to fetch
availableActions*array<string>List of available log actions that can be filtered
totalCount*numberTotal count of logs (only when using page parameter)
totalPages*numberTotal pages (only when using page parameter)
currentPage*numberCurrent page number (only when using page parameter)
curl -X GET 'https://api.excalidraw.com/api/v1/logs'{
"logs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"action": "string",
"operation": "string",
"details": "string",
"created_at": "string",
"ip_address": "string",
"user_id": "string",
"workspace_id": "string",
"app_source": "admin",
"source_type": "user",
"source_id": "string",
"status": -2147483648,
"user_email": "string",
"user_full_name": "string",
"user_picture": "string"
}
],
"nextCursor": "string",
"hasMore": true,
"availableActions": [
"string"
],
"totalCount": 0,
"totalPages": 0,
"currentPage": 0
}Last updated on