Skip to main content
GET
/
projects
/
{project_reference}
/
branches
/
{branchName}
/
files
/
{filePath}
/
draft
Get Branch File Draft
curl --request GET \
  --url https://api.veryfront.com/projects/{project_reference}/branches/{branchName}/files/{filePath}/draft \
  --header 'Authorization: Bearer <token>'
{
  "file_id": "<string>",
  "path": "<string>",
  "content": "<string>",
  "updated_at": "<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)

Response

Draft content

file_id
string
required
path
string
required
content
string
required
updated_at
string
required