SnozeDevelopers
API referenceAutomations

Capture a matching trigger event

Reads up to 100 new events from the caller’s ACL-projected workspace stream and returns the first event matching the draft trigger, including its scopes, refinements, and filters. Omit afterVersion to establish the current cursor; pass the returned cursor when polling. Requires automations:write and edit access to the automation, plus workspace:read for the event stream. Does not publish or execute the automation.

POST
/v1/workspaces/{workspaceId}/automations/{automationId}/trigger-samples/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
automationId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/automations/string/trigger-samples/events" \  -H "Content-Type: application/json" \  -d '{    "trigger": {      "kind": "manual"    }  }'
{  "data": {    "afterVersion": 0,    "sample": {      "id": "string",      "capturedAt": "string",      "payload": {}    }  }}