Catch up on workspace events
Returns the workspace's current event version plus the events after `afterVersion`, each projected down to what the caller is allowed to see, so a client that fell behind can resynchronize. Requires `workspace:read`. Pass `afterVersion` and `limit` as integer strings; a non-integer value is a validation error and an unknown workspace is not found.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
workspaceId*stringafterVersion?string|nulllimit?string|nullSuccess
application/json- response
data*curl -X GET 'https://api.snoze.dev/v1/workspaces/string/events'{ "data": { "workspaceVersion": 0, "events": [ { "id": "string", "workspaceId": "string", "actorUserId": "string", "version": 0, "type": "string", "visibility": "system", "subjectType": "string", "subjectId": "string", "payload": {}, "createdAt": "string" } ] }}Leave a workspace
Removes the caller's own membership and drops the per-item grants they held in that workspace. Any member may leave their own workspace; the last remaining owner cannot, and that attempt is rejected as a conflict. Owner departures are serialized on the workspace row so two owners cannot both leave concurrently.
List the workspace audit log
Returns display-safe audit entries newest first by default, paged by `beforeVersion`. Set `sortDirection=asc` and page with `afterVersion` for oldest first. Results are windowed to the plan's history retention. Requires `audit_log:read` (owners and admins) and a plan with the audit log feature (Business or above); other plans receive 403 `entitlement_feature_locked`.