Skip to main content

Authentication

Send an API key as a bearer token on every call:
Get one with two sign-up calls. OAuth access tokens from MCP sign-in work too. GET /health, POST /auth/email and POST /auth/verify need no key.

Versioning

The API is versioned by date, like Stripe. Paths carry no version. Instead, every request names the version it was written against in a header:
The current version is 2026-11-03.
  • Pin a version. Send the header on every request, so your code keeps working when a new version ships. A request without it gets the latest version.
  • Every response says which version served it, in its own VidJutsu-Version header.
  • An unknown version is a 400 invalid_request with reason: "unknown_version" and the latest_version.
  • What gets a new version. A change that could break existing code ships under a new date, and requests that name an older date keep the old behavior. Additive changes (new operations, new optional fields, new response fields) don’t get a new version and reach every version, so read responses leniently.
The CLI and SDK send the version they were built for. In the SDK, pass apiVersion to pin another one.

Conventions

  • JSON in, JSON out, with snake_case fields. Send Content-Type: application/json. The one exception is POST /media, which also takes up to 4 MB of raw bytes as application/octet-stream.
  • Idempotency. Send an Idempotency-Key header on every write. A retry with the same key returns the first result instead of doing the work twice. For edits, also send expected_head.
  • Times in timelines are exact: whole seconds, decimal strings ("12.5") or fractions. See Times.
  • Renders are background jobs, and so are previews, transcripts, Studio Sound, frame and check. Starting one answers with a job; poll GET /jobs/{job_id}, or follow the project’s live stream.
  • Who is acting. Send VidJutsu-Client: <name> (for example Claude Code) and history, Activity and change notices name you that way. Without it, you’re named by your API key’s name. It’s display only and grants nothing.
  • ETags. GET /projects/{project} and GET /projects/{project}/head send an ETag. Send it back as If-None-Match and an unchanged project answers 304 with no body.
  • Errors have a stable code, a message, and fields that tell you how to fix them. See Errors.
  • Every operation is also an MCP tool with the same name (the operationId on each page). See MCP.

Operations