---
title: "Restart a run"
method: POST
path: "/runs/{id}/restart"
tags: ["Runs"]
---

# Restart a run

`POST /runs/{id}/restart`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/runs/{id}/restart`
- Auth: API key in header `x-api-key`

Restarts a failed or completed run from a specific step.

## Path parameters

- `id` string, required

## Request body

- object
  - `fromStepId` string, required: Step ID to restart from (inclusive).
  - `overrideInput` object: Override workflow input fields.

## Response `202`

Run restarted

- object
  - `success` unknown
  - `data` object
    - `originalRunId` string
    - `newRunId` string
    - `workflowId` string
    - `restartFromStepId` string
    - `status` string
    - `createdAt` string, date-time
    - `warning` string

## Other responses

- `400`: Bad request — invalid parameters or request body.
- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.
- `404`: Resource not found.
- `500`: Internal server error.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
