---
title: "Fork a run at a hop — branches execution with optional overrides and mode."
method: POST
path: "/graphs/{graphId}/runs/{runId}/fork"
tags: ["runs"]
---

# Fork a run at a hop — branches execution with optional overrides and mode.

`POST /graphs/{graphId}/runs/{runId}/fork`

## Request

- Base URL: `https://api.livegraph.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.livegraph.ai/graphs/{graphId}/runs/{runId}/fork`
- Auth: one of:
  - API key in cookie `livegraph_session`
  - API key in header `x-api-key`

## Path parameters

- `graphId` string, uuid, required
- `runId` string, uuid, required

## Request body

- object
  - `fromSequence` integer, required
  - `mode` 'pinned' | 'live'
  - `overrides` object
    - `input` unknown
    - `provider` 'anthropic' | 'openai' | 'xai' | 'openrouter' | 'openai-compatible' | 'groq' | 'cerebras' | 'mistral' | 'github-models' | 'nvidia' | 'mock' | 'transform' | 'devin' | 'github-copilot' | 'cursor' | 'cli-agent'
    - `model` string
    - `systemPrompt` string

## Response `200`

Success — see summary for the response shape.

## Other responses

- `4XX`: Client error — body is the shared {error, code?} envelope.

---

[API](https://skmtc.dev/livegraph/apis/livegraph-api.md) · [All operations](https://skmtc.dev/livegraph/apis/livegraph-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livegraph/apis/livegraph-api/revisions/551085d7719e?raw)
