Skip to main content
GET
Get project file diff

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain

file_path
string
required

File path (URL-encoded, for example, pages%2Findex.mdx).

Query Parameters

ref
string

Content to address: main, branch:<name-or-id>, release:<version> or env:<name>. Canonical replacement for branch and branch_id.

Example:

"branch:feature-x"

branch
string

Branch name or ID. Legacy alias for ref=branch:<value>.

Example:

"feature-x"

branch_id
string<uuid>

Branch ID. Legacy alias for ref=branch:<uuid>.

source_ref
string

Source version ID to compare from. Required for main, release and environment selectors; a branch selector defaults to a diff against main.

context_lines
integer | null
default:3

Number of context lines around changes (default: 3)

Required range: 0 <= x <= 10

Response

Unified diff

path
string
required
diff
string
required
additions
number
required
deletions
number
required