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

Version UUID or index 0..99; zero is the newest committed version. 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
path
string
required
content
string
required
size
number
required

Size of the file content encoded as UTF-8, in bytes.

type
enum<string>
required
Available options:
page,
function,
component,
file
updated_at
string
required