Workflow runs
Replay executions by filter
Replay every failed run matching the log explorer's query and time range (refused above the cap).
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
workflow_id*stringThe workflow.
uuidregion?|Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows
nullIdempotency-Key?|Makes the create retry-safe for 24 hours: a retry with the same key answers the resource the first call created, with the Idempotent-Replayed: true header, and creates nothing. 1 to 255 visible ASCII characters. The same key with a different request answers 422; while the first call still runs, 409.
nullapplication/json- body
options?JsonValuenullmetadata?JsonValuenullworkflow_version?JsonValuenullworkflow_trigger_module_id?JsonValuenullvalidate_only?Validate OnlyRun every check of the write and answer 204 without writing: a refused write answers the error the write would
falseOK
application/json- response
total_requested*Total Requestedtotal_succeeded*Total Succeededtotal_failed*Total Failederrors*array<>run_ids?array<string>[]resolved_count?|nullreplay_batch_id?|nullcurl -X POST 'https://api.stacksync.com/v1/workspaces/0/workflows/id/497f6eca-6276-4993-bfeb-53cbbbba6f08/executions/batch-create-by-filter' \ -H 'Content-Type: application/json' \ -d '{ "options": { "query": "workflow.execution_status = '\''ERROR'\''", "time_range": [ "2026-10-01T00:00:00Z", "2026-10-02T00:00:00Z" ] }}'{ "total_requested": 0, "total_succeeded": 0, "total_failed": 0, "errors": [ { "error": "<error>", "message": "<message>" } ], "run_ids": [], "resolved_count": 0, "replay_batch_id": "<replay_batch_id>"}POSTReplay executions
Replay chosen runs (workflow_execution_ids, or a query) with a replay mode (metadata.run_mode_details.run_mode), each with its own version or the version given.
POSTResolve executions by filter
Mark every failed run matching the log explorer's query and time range as resolved, with every replay of each.