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, e.g., pages%2Findex.mdx)

Query Parameters

source_ref
string
required

Source version ID to compare from (required for main branch diff)

context_lines
number | null
default:3

Number of context lines around changes (default: 3)

Required range: 0 <= x <= 10
branch
string

Branch name or ID (omit for main branch)

Response

Unified diff

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