http
GET /projects/{project_reference}/filesList the files. Requires project.read.
Servers
JSON
1[2 {3 "url": "https://api.veryfront.com"4 }5]Authentication
JSON
1[2 {3 "bearerAuth": []4 },5 {6 "apiKeyAuth": []7 }8]JSON
1{2 "bearerAuth": {3 "type": "http",4 "scheme": "bearer",5 "bearerFormat": "JWT or API Key",6 "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."7 },8 "apiKeyAuth": {9 "type": "apiKey",10 "in": "header",11 "name": "X-API-Key",12 "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."13 }14}Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| project_reference | path | Yes | Project slug, UUID, or domain that identifies the project. |
| ref | query | No | |
| branch | query | No | |
| branch_id | query | No | |
| pattern | query | No | File pattern filter (for example, *.tsx). |
| cursor | query | No | Opaque cursor pointing at the next page. Omit it to read the first page. |
| limit | query | No | Files per page. At most 100 when the listing includes content, and at most 1000 when fields excludes content. |
| sort_by | query | No | |
| sort_order | query | No | |
| fields | query | No |
Parameter contracts
JSON
1[2 {3 "schema": {4 "$ref": "#/components/schemas/ProjectReference"5 },6 "required": true,7 "description": "Project slug, UUID, or domain that identifies the project.",8 "name": "project_reference",9 "in": "path"10 },11 {12 "schema": {13 "type": "string",14 "description": "Content to address: `main`, `branch:<name-or-id>`, `release:<version>` or `env:<name>`. Canonical replacement for `branch` and `branch_id`.",15 "example": "branch:feature-x"16 },17 "required": false,18 "name": "ref",19 "in": "query"20 },21 {22 "schema": {23 "type": "string",24 "description": "Branch name or ID. Legacy alias for `ref=branch:<value>`.",25 "example": "feature-x"26 },27 "required": false,28 "name": "branch",29 "in": "query"30 },31 {32 "schema": {33 "type": "string",34 "format": "uuid",35 "description": "Branch ID. Legacy alias for `ref=branch:<uuid>`."36 },37 "required": false,38 "name": "branch_id",39 "in": "query"40 },41 {42 "schema": {43 "type": "string",44 "maxLength": 1024,45 "description": "File pattern filter (for example, *.tsx)."46 },47 "required": false,48 "description": "File pattern filter (for example, *.tsx).",49 "name": "pattern",50 "in": "query"51 },52 {53 "schema": {54 "$ref": "#/components/schemas/PaginationCursor"55 },56 "required": false,57 "description": "Opaque cursor pointing at the next page. Omit it to read the first page.",58 "name": "cursor",59 "in": "query"60 },61 {62 "schema": {63 "type": "integer",64 "minimum": 1,65 "maximum": 1000,66 "default": 20,67 "description": "Files per page. At most 100 when the listing includes content, and at most 1000 when `fields` excludes content.",68 "example": 2069 },70 "required": false,71 "description": "Files per page. At most 100 when the listing includes content, and at most 1000 when `fields` excludes content.",72 "name": "limit",73 "in": "query"74 },75 {76 "schema": {77 "type": "string",78 "enum": [79 "path",80 "updated_at"81 ],82 "default": "updated_at",83 "description": "Sort by path or last update time (default updated_at)."84 },85 "required": false,86 "name": "sort_by",87 "in": "query"88 },89 {90 "schema": {91 "type": "string",92 "enum": [93 "asc",94 "desc"95 ],96 "default": "desc",97 "description": "Sort order."98 },99 "required": false,100 "name": "sort_order",101 "in": "query"102 },103 {104 "schema": {105 "type": "string",106 "pattern": "^!?\\([^)]*\\)$",107 "description": "Response fields to include or exclude. Examples: `(id,name)`, `(id,files(path))`, and `!(content)`.",108 "example": "(id,path,type,size)"109 },110 "required": false,111 "name": "fields",112 "in": "query"113 }114]Responses
200
Paginated list of files with selectable response fields.
JSON
1{2 "description": "Paginated list of files with selectable response fields.",3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "data": {9 "type": "array",10 "items": {11 "type": "object",12 "properties": {13 "id": {14 "type": "string"15 },16 "version_id": {17 "type": "string"18 },19 "path": {20 "type": "string"21 },22 "content": {23 "type": "string"24 },25 "size": {26 "type": "number",27 "description": "Size of the file content encoded as UTF-8, in bytes."28 },29 "type": {30 "type": "string",31 "enum": [32 "page",33 "function",34 "component",35 "file"36 ]37 },38 "updated_at": {39 "type": "string"40 },41 "binary": {42 "type": "object",43 "properties": {44 "content_hash": {45 "type": "string",46 "pattern": "^[a-f0-9]{64}$"47 },48 "byte_size": {49 "type": "integer",50 "minimum": 0,51 "maximum": 838860852 },53 "content_type": {54 "type": "string",55 "minLength": 1,56 "maxLength": 200,57 "pattern": "^[\\x20-\\x7e]+$"58 }59 },60 "required": [61 "content_hash",62 "byte_size",63 "content_type"64 ],65 "additionalProperties": false66 },67 "checksum": {68 "type": [69 "string",70 "null"71 ]72 },73 "size_bytes": {74 "type": "number",75 "description": "Size of the file content encoded as UTF-8, in bytes."76 },77 "_links": {78 "type": "object",79 "properties": {80 "self": {81 "type": "object",82 "properties": {83 "href": {84 "type": "string"85 }86 },87 "required": [88 "href"89 ]90 }91 },92 "required": [93 "self"94 ]95 }96 },97 "required": [98 "path",99 "content",100 "size",101 "type",102 "updated_at",103 "size_bytes"104 ]105 }106 },107 "page_info": {108 "$ref": "#/components/schemas/PageInfo"109 },110 "_links": {111 "type": "object",112 "additionalProperties": {113 "type": "object",114 "properties": {115 "href": {116 "type": "string",117 "description": "URL of the linked resource"118 },119 "method": {120 "type": "string",121 "description": "HTTP method for this link (default: GET)"122 },123 "title": {124 "type": "string",125 "description": "Human-readable description of the link"126 }127 },128 "required": [129 "href"130 ]131 },132 "description": "Hypermedia links for resource navigation"133 }134 },135 "required": [136 "data",137 "page_info",138 "_links"139 ]140 }141 }142 }143}400
Bad request
JSON
1{2 "description": "Bad request",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}401
Unauthorized
JSON
1{2 "description": "Unauthorized",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}403
Forbidden - insufficient permissions
JSON
1{2 "description": "Forbidden - insufficient permissions",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}404
Not found
JSON
1{2 "description": "Not found",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}500
Server error
JSON
1{2 "description": "Server error",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}Referenced contracts
components/parameters/ProjectReference
JSON
1{2 "schema": {3 "$ref": "#/components/schemas/ProjectReference"4 },5 "required": true,6 "description": "Project slug, UUID, or domain that identifies the project.",7 "name": "project_reference",8 "in": "path"9}components/schemas/ProjectReference
JSON
1{2 "type": "string"3}components/parameters/PaginationCursor
JSON
1{2 "schema": {3 "$ref": "#/components/schemas/PaginationCursor"4 },5 "required": false,6 "description": "Opaque cursor pointing at the next page. Omit it to read the first page.",7 "name": "cursor",8 "in": "query"9}components/schemas/PaginationCursor
JSON
1{2 "type": "string",3 "description": "Opaque cursor pointing at the next page. Omit it to read the first page."4}components/schemas/PageInfo
JSON
1{2 "type": "object",3 "properties": {4 "self": {5 "type": [6 "string",7 "null"8 ],9 "description": "Cursor pointing to the current page"10 },11 "first": {12 "type": "null",13 "description": "First page cursor (always null for cursor-based pagination)"14 },15 "next": {16 "type": [17 "string",18 "null"19 ],20 "description": "Cursor for the next page (null if no more pages)"21 },22 "prev": {23 "type": [24 "string",25 "null"26 ],27 "description": "Cursor for the previous page (null if on first page)"28 }29 },30 "required": [31 "self",32 "first",33 "next",34 "prev"35 ]36}components/schemas/Problem
JSON
1{2 "type": "object",3 "properties": {4 "cause": {5 "type": "string",6 "enum": [7 "schedule_concurrency_forbidden",8 "schedule_fire_in_progress",9 "schedule_run_limit_reached"10 ],11 "description": "Schedule admission refusal."12 },13 "idempotency": {14 "type": "object",15 "properties": {16 "state": {17 "type": "string",18 "enum": [19 "in_progress",20 "payload_mismatch",21 "outcome_unknown"22 ]23 },24 "operation": {25 "type": "string",26 "minLength": 127 },28 "retryable": {29 "type": "boolean"30 },31 "retry_after_seconds": {32 "type": [33 "integer",34 "null"35 ],36 "minimum": 037 },38 "expires_at": {39 "type": [40 "string",41 "null"42 ]43 },44 "recovery": {45 "type": "object",46 "properties": {47 "available": {48 "type": "boolean"49 },50 "description": {51 "type": "string"52 },53 "resource_url": {54 "type": "string"55 }56 },57 "required": [58 "available",59 "description"60 ]61 }62 },63 "required": [64 "state",65 "operation",66 "retryable",67 "retry_after_seconds",68 "expires_at"69 ],70 "description": "Replay status, retry timing, and recovery lookup."71 },72 "type": {73 "type": "string",74 "description": "URI reference identifying the problem type",75 "example": "https://api.veryfront.com/errors/validation-failed"76 },77 "title": {78 "type": "string",79 "description": "Short human-readable summary of the problem",80 "example": "Validation Failed"81 },82 "status": {83 "type": "integer",84 "minimum": 100,85 "maximum": 599,86 "description": "HTTP status code",87 "example": 40088 },89 "code": {90 "type": "string",91 "description": "Stable machine-readable error code",92 "example": "RUN_INVALID_INPUT"93 },94 "detail": {95 "type": "string",96 "description": "Human-readable explanation specific to this occurrence",97 "example": "The 'email' field must be a valid email address"98 },99 "instance": {100 "type": "string",101 "description": "URI reference identifying the specific occurrence",102 "example": "/projects/my-project/members"103 },104 "slug": {105 "type": "string",106 "description": "Stable identifier for the problem type",107 "example": "validation-failed"108 },109 "category": {110 "type": "string",111 "enum": [112 "AUTH",113 "RESOURCE",114 "VALIDATION",115 "DATABASE",116 "SUBSCRIPTION",117 "INTEGRATION",118 "INTERNAL"119 ],120 "description": "API error category",121 "example": "VALIDATION"122 },123 "suggestion": {124 "type": "string",125 "description": "Suggested action to resolve the problem",126 "example": "Check the request body and query parameters against the API documentation."127 },128 "errors": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "field": {134 "type": "string",135 "description": "Field path that caused the error",136 "example": "email"137 },138 "message": {139 "type": "string",140 "description": "Error message for this field",141 "example": "Invalid email format"142 },143 "code": {144 "type": "string",145 "description": "Error code for this field",146 "example": "INVALID_FORMAT"147 }148 },149 "required": [150 "field",151 "message"152 ]153 },154 "description": "Detailed field-level errors for validation failures"155 }156 },157 "required": [158 "type",159 "title",160 "status"161 ]162}Operation contract
JSON
1{2 "operationId": "listFiles",3 "tags": [4 "projects/Files/Files"5 ],6 "summary": "List files",7 "description": "List the files. Requires project.read.",8 "parameters": [9 {10 "$ref": "#/components/parameters/ProjectReference"11 },12 {13 "schema": {14 "type": "string",15 "description": "Content to address: `main`, `branch:<name-or-id>`, `release:<version>` or `env:<name>`. Canonical replacement for `branch` and `branch_id`.",16 "example": "branch:feature-x"17 },18 "required": false,19 "name": "ref",20 "in": "query"21 },22 {23 "schema": {24 "type": "string",25 "description": "Branch name or ID. Legacy alias for `ref=branch:<value>`.",26 "example": "feature-x"27 },28 "required": false,29 "name": "branch",30 "in": "query"31 },32 {33 "schema": {34 "type": "string",35 "format": "uuid",36 "description": "Branch ID. Legacy alias for `ref=branch:<uuid>`."37 },38 "required": false,39 "name": "branch_id",40 "in": "query"41 },42 {43 "schema": {44 "type": "string",45 "maxLength": 1024,46 "description": "File pattern filter (for example, *.tsx)."47 },48 "required": false,49 "description": "File pattern filter (for example, *.tsx).",50 "name": "pattern",51 "in": "query"52 },53 {54 "$ref": "#/components/parameters/PaginationCursor"55 },56 {57 "schema": {58 "type": "integer",59 "minimum": 1,60 "maximum": 1000,61 "default": 20,62 "description": "Files per page. At most 100 when the listing includes content, and at most 1000 when `fields` excludes content.",63 "example": 2064 },65 "required": false,66 "description": "Files per page. At most 100 when the listing includes content, and at most 1000 when `fields` excludes content.",67 "name": "limit",68 "in": "query"69 },70 {71 "schema": {72 "type": "string",73 "enum": [74 "path",75 "updated_at"76 ],77 "default": "updated_at",78 "description": "Sort by path or last update time (default updated_at)."79 },80 "required": false,81 "name": "sort_by",82 "in": "query"83 },84 {85 "schema": {86 "type": "string",87 "enum": [88 "asc",89 "desc"90 ],91 "default": "desc",92 "description": "Sort order."93 },94 "required": false,95 "name": "sort_order",96 "in": "query"97 },98 {99 "schema": {100 "type": "string",101 "pattern": "^!?\\([^)]*\\)$",102 "description": "Response fields to include or exclude. Examples: `(id,name)`, `(id,files(path))`, and `!(content)`.",103 "example": "(id,path,type,size)"104 },105 "required": false,106 "name": "fields",107 "in": "query"108 }109 ],110 "responses": {111 "200": {112 "description": "Paginated list of files with selectable response fields.",113 "content": {114 "application/json": {115 "schema": {116 "type": "object",117 "properties": {118 "data": {119 "type": "array",120 "items": {121 "type": "object",122 "properties": {123 "id": {124 "type": "string"125 },126 "version_id": {127 "type": "string"128 },129 "path": {130 "type": "string"131 },132 "content": {133 "type": "string"134 },135 "size": {136 "type": "number",137 "description": "Size of the file content encoded as UTF-8, in bytes."138 },139 "type": {140 "type": "string",141 "enum": [142 "page",143 "function",144 "component",145 "file"146 ]147 },148 "updated_at": {149 "type": "string"150 },151 "binary": {152 "type": "object",153 "properties": {154 "content_hash": {155 "type": "string",156 "pattern": "^[a-f0-9]{64}$"157 },158 "byte_size": {159 "type": "integer",160 "minimum": 0,161 "maximum": 8388608162 },163 "content_type": {164 "type": "string",165 "minLength": 1,166 "maxLength": 200,167 "pattern": "^[\\x20-\\x7e]+$"168 }169 },170 "required": [171 "content_hash",172 "byte_size",173 "content_type"174 ],175 "additionalProperties": false176 },177 "checksum": {178 "type": [179 "string",180 "null"181 ]182 },183 "size_bytes": {184 "type": "number",185 "description": "Size of the file content encoded as UTF-8, in bytes."186 },187 "_links": {188 "type": "object",189 "properties": {190 "self": {191 "type": "object",192 "properties": {193 "href": {194 "type": "string"195 }196 },197 "required": [198 "href"199 ]200 }201 },202 "required": [203 "self"204 ]205 }206 },207 "required": [208 "path",209 "content",210 "size",211 "type",212 "updated_at",213 "size_bytes"214 ]215 }216 },217 "page_info": {218 "$ref": "#/components/schemas/PageInfo"219 },220 "_links": {221 "type": "object",222 "additionalProperties": {223 "type": "object",224 "properties": {225 "href": {226 "type": "string",227 "description": "URL of the linked resource"228 },229 "method": {230 "type": "string",231 "description": "HTTP method for this link (default: GET)"232 },233 "title": {234 "type": "string",235 "description": "Human-readable description of the link"236 }237 },238 "required": [239 "href"240 ]241 },242 "description": "Hypermedia links for resource navigation"243 }244 },245 "required": [246 "data",247 "page_info",248 "_links"249 ]250 }251 }252 }253 },254 "400": {255 "description": "Bad request",256 "content": {257 "application/problem+json": {258 "schema": {259 "$ref": "#/components/schemas/Problem"260 }261 }262 }263 },264 "401": {265 "description": "Unauthorized",266 "content": {267 "application/problem+json": {268 "schema": {269 "$ref": "#/components/schemas/Problem"270 }271 }272 }273 },274 "403": {275 "description": "Forbidden - insufficient permissions",276 "content": {277 "application/problem+json": {278 "schema": {279 "$ref": "#/components/schemas/Problem"280 }281 }282 }283 },284 "404": {285 "description": "Not found",286 "content": {287 "application/problem+json": {288 "schema": {289 "$ref": "#/components/schemas/Problem"290 }291 }292 }293 },294 "500": {295 "description": "Server error",296 "content": {297 "application/problem+json": {298 "schema": {299 "$ref": "#/components/schemas/Problem"300 }301 }302 }303 }304 },305 "x-documentation-source-tag": "Project Files",306 "x-canonical-documentation": {307 "domain": "projects",308 "resource": "Files",309 "subgroup": "Files",310 "name": "List files",311 "description": "List the files. Requires project.read.",312 "operationId": "listFiles"313 },314 "x-mint": {315 "href": "/cloud/rest/api-reference/projects-files-files/list-files"316 }317}