Replay one node execution from a finished run
Queues a new run that starts at the selected node with the original run's context restored. Requires the `automations:write` permission plus edit access; the original run must have finished and the selected node execution must itself be completed, failed, or cancelled, otherwise the request is rejected with a run error. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
workspaceId*stringautomationId*stringrunId*stringnodeRunId*stringSuccess
application/json- response
data*curl -X POST 'https://api.snoze.dev/v1/workspaces/string/automations/string/runs/string/nodes/string/replay'{ "data": { "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" } ] }}Resume a waiting automation node with a decision
Releases a node that is waiting on a human decision by recording `approved` or `rejected` together with optional `output`, then returns the run with its node executions. Requires the `automations:write` permission plus edit access to the automation; an unknown run returns not-found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
Read an automation's AI credit use
Returns the AI credits the automation's AI and code steps spent in the workspace's current usage period (settled charges plus holds still settling) and its monthly AI budget, or null when it has none. One credit is $0.001 of model or sandbox cost. Requires the `automations:read` permission plus view access to the automation.