Skip to main content
GET
Get branch file version

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 that identifies the project.

branchName
string
required

Branch name

filePath
string
required

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

version_id
string
required

Committed version UUID or newest-first index 0-99; zero is the newest branch-aware version.

Response

Branch file version content with metadata.

id
string
required

Committed version identifier.

path
string
required

Canonical path of the versioned file.

content
string
required

Full content stored for this version.

size
number
required

Size of the version content in UTF-8 bytes.

type
enum<string>
required

File kind derived from its path: page, function, component, or file.

Available options:
page,
function,
component,
file
updated_at
string
required

Persisted creation or selection timestamp for this version.