Search Audit Logs
Returns the activity of a workspace, newest first, one page at a time. Available on the Enterprise plan to workspace owners and admins.
POST/workspaces/{workspaceId}/audit-logs/search
Returns the activity of a workspace, newest first. Send the cursor from a response to get the next page, until hasMore is false. See the Audit Logs API overview for the token it needs, paging, polling and the actions per entity type.
Authorizations
Softr-Api-KeyAPI keyin headerrequiredPath parameters
workspaceIdstringrequiredThe workspace ID. Get Databases returns it as workspaceId on every database.
Body
application/jsonentityTypesenum<string>[]Return only these entity types. Empty or missing means all of them.
userIdsstring[]items: ≤ 50 itemsReturn only activity by these users. At most 50 ids.
entityIdsRecord<string, string[]>Return only activity on these entities, keyed by entity type. At most 50 ids per type.
startDatestring<date-time>Return only activity at or after this time (ISO 8601, inclusive).
endDatestring<date-time>Return only activity at or before this time (ISO 8601, inclusive).
cursorstringThe cursor from the previous page. Leave it out for the first page. Keep the other fields the same while you page.
sizeintegerdefault: 50range: 1–50Entries per page. Values above 50 are lowered to 50.
Response
A page of audit log entries.
entriesobject[]Newest first.
cursorstring | nullPass it back to get the next page. null on the last page.
hasMorebooleantrue when more entries exist after this page.
The request body is invalid, for example an unknown entity type or more than 50 ids in a filter.
codestringThe HTTP status name.
messagestringWhat went wrong, in plain words.
The Softr-Api-Key header is missing, or the token is unknown, revoked or expired.
codestringThe HTTP status name.
messagestringWhat went wrong, in plain words.
The token or its user cannot read this audit log: a legacy API key, a token without read access to applications, databases and workflows on the whole workspace, a user who is not an owner or admin, or a workspace without audit logs.
codestringThe HTTP status name.
messagestringWhat went wrong, in plain words.
Too many requests. Wait a moment and retry.
codestringThe HTTP status name.
messagestringWhat went wrong, in plain words.
Part of the activity is temporarily unavailable. Retry the same request, with the same cursor.
codestringThe HTTP status name.
messagestringWhat went wrong, in plain words.