Skip to main content
GET
/
projects
/
{project_reference}
/
branches
/
{branchName}
/
files
/
{filePath}
Get Branch File
curl --request GET \
  --url https://api.veryfront.com/projects/{project_reference}/branches/{branchName}/files/{filePath} \
  --header 'Authorization: Bearer <token>'
{
  "path": "<string>",
  "content": "<string>",
  "size": 123,
  "type": "page",
  "updated_at": "<string>",
  "id": "<string>",
  "version_id": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

branchName
string
required

Branch name

filePath
string
required

File path (URL-encoded, e.g., pages%2Findex.mdx)

Query Parameters

fields
string

Sparse fieldset filter per Zalando #157. Examples: (id,name), (id,files(path)), !(content)

Example:

"(id,path,type,size)"

Response

File from the branch (supports sparse fieldsets per Zalando #157)

path
string
required
content
string
required
size
number
required
type
enum<string>
required
Available options:
page,
function,
component,
file
updated_at
string
required
id
string
version_id
string