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
AuthorizationBearer <token>

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

In: header

Path Parameters

workspaceId*string

Query Parameters

afterVersion?string|null
limit?string|null

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/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"      }    ]  }}