SnozeDevelopers
API referenceAutomations

Start a draft webhook capture

Creates a private, one-shot sample receiver that expires after two minutes, replacing this caller’s previous capture for the automation. Requires automations:write and edit access to the automation. Returns a secret once; send it in the x-snoze-capture-secret header to POST /v1/automation-test-hooks/{id} with a JSON object of at most 1 MB. Capturing does not publish the automation or create runs, jobs, or deliveries.

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

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/automations/string/trigger-samples/webhook"
{  "data": {    "id": "string",    "expiresAt": "string",    "capturedAt": "string",    "payload": {},    "secret": "string"  }}