SnozeDevelopers
API referenceWorkspaces

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.

GET
/v1/workspaces/{workspaceId}/events

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Query Parameters

afterVersion?string|null
limit?string|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/events'
Example Response
{  "data": {    "workspaceVersion": 0,    "events": [      {        "id": "string",        "workspaceId": "string",        "actorUserId": "string",        "version": 0,        "type": "string",        "visibility": "system",        "subjectType": "string",        "subjectId": "string",        "payload": {},        "createdAt": "string"      }    ]  }}