COMPLETED) run is included only when the request asks, and only from the start.
Base URL
Required scopes
This endpoint requires theWORKFLOW_WRITE_API scope (Workflow Write API) and editor access. The call runs as the key’s user.
Parameters
Modes
fromStartstarts a new run with the source run’s trigger input. Failed runs and runs a limit stopped before they started (BLOCKED) qualify. WithallowCompleted: true, aCOMPLETEDrun qualifies too.fromFailurekeeps the completed steps and continues at the failed step. It accepts a failed run with one failed path. ABLOCKEDrun requested this way starts from the beginning, and the response reportsfromStart.allowCompletedwithfromFailureis rejected.
BLOCKED run can be started again only once. A failed integration trigger that still has its event has to be replayed from the start.
Limits and audit log
A workflow starts at most 20 reruns per minute through the API, across keys. Further requests return429 with WORKFLOW_RERUN_RATE_LIMITED. Rejected requests don’t count. The workflow’s own run limits still apply.
Each started rerun is recorded in the audit log as workflow_run.rerun, with the API key as the actor.
Example
Response format
Success response (202 Accepted)
mode is the mode the rerun actually used. The new run starts in the background. Read its results with List Workflow Runs and runId. That call needs the WORKFLOW_API scope.
Error handling
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.