List branch files

http
GET /projects/{project_reference}/branches/{branchName}/files

List branch files. Requires project.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
branchNamepathYes
patternquery
cursorqueryOpaque cursor pointing at the next page. Omit it to read the first page.
limitquery
sort_byquerySort by path or last update time (default path).
sort_orderquery
include_server_functionsquery
fieldsqueryResponse projection, for example (id,path,size). Omit to return all file fields, including content.

Responses

StatusDescription
200Files from the branch with selectable response fields.
400Invalid file filter, fields, sort, cursor, or page size.
401Unauthorized
403Forbidden - insufficient project permissions
404Not found
500Server error