Skip to main content
POST
Restore a revision

Authorizations

Authorization
string
header
required

A VidJutsu API key (vj_live_...) from POST /auth/verify or POST /keys, or an OAuth access token (MCP clients).

Headers

VidJutsu-Version
string

The API version you wrote your integration against, a date. Without it you get the latest version. The current version is 2026-11-03. See https://docs.vidjutsu.ai/api-reference/introduction#versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-11-03"

Idempotency-Key
string

Makes a write safe to retry: the same key returns the first result instead of doing the work twice. Up to 128 printable characters.

Maximum string length: 128

Path Parameters

project
string
required

Project name (letters, digits, '-', '_').

Body

application/json

The revision whose timeline comes back, and optionally the head you decided against (expected_head) and a line for history (summary).

revision
string
required

The revision whose timeline comes back.

author
string | null

Who is doing it, as history and Activity name them. Default: you.

branch
string | null
expected_head
string | null

The head this was decided against; a moved head is a conflict.

idempotency_key
string | null
summary
string | null

One line for Activity; default: says which revision came back.

Response

Committed

branch
string
required
duration_seconds
number
required
parent
string
required
project
string
required
revision
string
required
restored
string

The revision whose timeline came back.