Preview repairs to automation field references
Checks an editor graph and proposes known field-reference repairs using database fields the caller can read. Returns the repaired graph, exact replacements, and remaining validation issues. Requires automations:write and edit access to the automation. Does not save, publish, or run anything; apply the returned graph through the draft update endpoint.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
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/reference-repairs" \ -H "Content-Type: application/json" \ -d '{ "graph": { "nodes": [ { "id": "string", "kind": "action", "actionId": "string" } ], "edges": [ { "id": "string", "from": "string", "to": "string" } ] }, "trigger": { "kind": "manual" } }'{ "data": { "graph": { "nodes": [ { "id": "string", "label": "string", "retry": { "maxAttempts": 0, "initialDelaySeconds": 0, "backoffMultiplier": 0, "maxDelaySeconds": 0 }, "position": { "x": 0, "y": 0 }, "kind": "action", "actionId": "string", "input": { "property1": { "type": "literal", "value": null }, "property2": { "type": "literal", "value": null } } } ], "edges": [ { "id": "string", "from": "string", "to": "string", "outcome": "always" } ], "entryNodeIds": [ "string" ], "testPayloads": [ { "id": "string", "name": "string", "payload": {} } ], "failureAutomationId": "string", "triggerPosition": { "x": 0, "y": 0 } }, "repairs": [ { "nodeId": "string", "from": "string", "to": "string" } ], "issues": [ { "nodeId": "string", "message": "string" } ] }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}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.
List the workspace's outbound webhook endpoints
Returns the outbound endpoints configured for the workspace, newest first, with their subscribed event types and the event version each has been delivered up to. Signing secrets are never included. Requires the `webhooks:read` permission in the workspace.