Skip to main content
Starts an existing run again. It does the same as Rerun from start and Rerun from failure on a failed run in the builder. A completed (COMPLETED) run is included only when the request asks, and only from the start.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required scopes

This endpoint requires the WORKFLOW_WRITE_API scope (Workflow Write API) and editor access. The call runs as the key’s user.

Parameters

Modes

  • fromStart starts a new run with the source run’s trigger input. Failed runs and runs a limit stopped before they started (BLOCKED) qualify. With allowCompleted: true, a COMPLETED run qualifies too.
  • fromFailure keeps the completed steps and continues at the failed step. It accepts a failed run with one failed path. A BLOCKED run requested this way starts from the beginning, and the response reports fromStart. allowCompleted with fromFailure is rejected.
The new run uses the published version, or the draft when nothing is published. A private run uses the version its owner’s setup runs, and only that owner can start it again. A meeting payload stays with the meeting owner. The call returns not found for anyone else. A rerun repeats every step that runs again, including actions in connected services. A 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 return 429 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.