SnozeDevelopers
API referenceAutomations

Replay a dead-lettered automation job or trigger delivery

Re-enqueues one dead entry, where `kind` selects a failed step `job` or an inbound trigger `delivery`; a job is replayed with the original run's node context restored. Requires the `automations:write` permission plus edit access to the owning automation; an id that is not currently dead is rejected with a validation error. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

POST
/v1/workspaces/{workspaceId}/automation-dead-letters/{kind}/{deadLetterId}/replay

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
kind*string
Value in"job""delivery"
deadLetterId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/automation-dead-letters/job/string/replay'
Example Response
{  "data": {    "id": "string",    "kind": "job",    "status": "replayed",    "run": {      "id": "string",      "automationId": "string",      "automationVersionId": "string",      "workspaceId": "string",      "status": "queued",      "source": "manual",      "startedAt": "string",      "completedAt": "string",      "triggerPayload": {},      "output": {},      "error": "string",      "metadata": {},      "startNodeId": "string",      "replayOfRunId": "string",      "nodeRuns": [        {          "id": "string",          "runId": "string",          "nodeId": "string",          "nodeKind": "string",          "scopeKey": "string",          "status": "queued",          "attempt": 0,          "input": {},          "output": {},          "error": "string",          "startedAt": "string",          "completedAt": "string"        }      ]    }  }}