http
GET /projects/{project_reference}/uploadsList the uploads the caller can see under an optional folder prefix, newest first by default, with the visible folders in a separate list. Requires project.uploads.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. |
| path | query | No | |
| cursor | query | No | |
| limit | query | No | Maximum number of entries to return. Defaults to 20 and is capped at 100. |
| sort_by | query | No | |
| sort_order | query | No | |
| recursive | 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": "Project-relative path to select direct-child files (for example, \"assets/\"). Omit to list all project files."15 },16 "required": false,17 "name": "path",18 "in": "query"19 },20 {21 "schema": {22 "type": "string",23 "minLength": 1,24 "maxLength": 4096,25 "description": "Opaque continuation; copy unchanged with the same project/path/sort. A removed anchor requires restarting; live changes affect traversal. Legacy ISO timestamps retain the creation cutoff and cannot recover ties."26 },27 "required": false,28 "name": "cursor",29 "in": "query"30 },31 {32 "schema": {33 "$ref": "#/components/schemas/PaginationLimit"34 },35 "required": false,36 "description": "Maximum number of entries to return. Defaults to 20 and is capped at 100.",37 "name": "limit",38 "in": "query"39 },40 {41 "schema": {42 "type": "string",43 "enum": [44 "created_at",45 "name",46 "size_bytes",47 "size"48 ],49 "default": "created_at",50 "description": "Sort field. Defaults to \"created_at\". \"size\" is accepted as another spelling of \"size_bytes\"."51 },52 "required": false,53 "name": "sort_by",54 "in": "query"55 },56 {57 "schema": {58 "type": "string",59 "enum": [60 "asc",61 "desc"62 ],63 "default": "desc",64 "description": "Sort order. Defaults to \"desc\"."65 },66 "required": false,67 "name": "sort_order",68 "in": "query"69 },70 {71 "schema": {72 "type": "boolean",73 "default": true,74 "description": "When true, returns all nested folders under the given path (or all folders if no path). Default: true."75 },76 "required": false,77 "name": "recursive",78 "in": "query"79 }80]Responses
200
One page of uploads with the visible folders in folders. data also repeats the folders as type: "folder" items before the uploads (type: "file").
JSON
1{2 "description": "One page of uploads with the visible folders in `folders`. `data` also repeats the folders as `type: \"folder\"` items before the uploads (`type: \"file\"`).",3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "data": {9 "type": "array",10 "items": {11 "oneOf": [12 {13 "$ref": "#/components/schemas/UploadFolder"14 },15 {16 "$ref": "#/components/schemas/UploadFile"17 }18 ],19 "discriminator": {20 "propertyName": "type",21 "mapping": {22 "folder": "#/components/schemas/UploadFolder",23 "file": "#/components/schemas/UploadFile"24 }25 },26 "description": "Upload item, either a folder (type: \"folder\") or a file (type: \"file\")"27 }28 },29 "folders": {30 "type": "array",31 "items": {32 "type": "object",33 "properties": {34 "path": {35 "type": "string",36 "description": "Folder path with a trailing slash."37 },38 "visibility": {39 "type": "string",40 "enum": [41 "project",42 "public",43 "private"44 ],45 "description": "Effective access policy for the upload or folder."46 },47 "permission": {48 "type": "string",49 "enum": [50 "read",51 "write",52 "admin"53 ],54 "description": "The caller’s effective access to this item: read, write, or admin."55 },56 "created_at": {57 "type": "string",58 "description": "Creation timestamp in ISO 8601 format."59 }60 },61 "required": [62 "path",63 "visibility",64 "permission",65 "created_at"66 ]67 },68 "description": "Visible folders, separate from the upload cursor and page size. The `data` items with `type: \"folder\"` repeat them."69 },70 "page_info": {71 "$ref": "#/components/schemas/PageInfo"72 }73 },74 "required": [75 "data",76 "folders",77 "page_info"78 ]79 }80 }81 }82}400
Invalid request parameters
JSON
1{2 "description": "Invalid request parameters",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
Project or upload path not found
JSON
1{2 "description": "Project or upload path 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/PaginationLimit
JSON
1{2 "schema": {3 "$ref": "#/components/schemas/PaginationLimit"4 },5 "required": false,6 "description": "Maximum number of entries to return. Defaults to 20 and is capped at 100.",7 "name": "limit",8 "in": "query"9}components/schemas/PaginationLimit
JSON
1{2 "type": "number",3 "minimum": 1,4 "maximum": 100,5 "default": 20,6 "description": "Maximum number of entries to return. Defaults to 20 and is capped at 100."7}components/schemas/UploadFolder
JSON
1{2 "type": "object",3 "properties": {4 "type": {5 "type": "string",6 "enum": [7 "folder"8 ],9 "description": "Item type",10 "example": "folder"11 },12 "path": {13 "type": "string",14 "description": "Project-relative storage path, without a leading slash."15 },16 "visibility": {17 "type": "string",18 "enum": [19 "project",20 "public",21 "private"22 ],23 "description": "Effective access policy for the upload or folder."24 },25 "permission": {26 "type": "string",27 "enum": [28 "read",29 "write",30 "admin"31 ],32 "description": "The caller’s effective access to this item: read, write, or admin."33 },34 "created_at": {35 "type": "string",36 "description": "Creation timestamp in ISO 8601 format."37 }38 },39 "required": [40 "type",41 "path",42 "visibility",43 "permission",44 "created_at"45 ]46}components/schemas/UploadFile
JSON
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Upload UUID."7 },8 "path": {9 "type": "string",10 "description": "Project-relative storage path, without a leading slash."11 },12 "file_name": {13 "type": "string",14 "description": "File name from the upload record."15 },16 "content_type": {17 "type": [18 "string",19 "null"20 ],21 "description": "Stored MIME type, or null when unspecified."22 },23 "size_bytes": {24 "type": "number",25 "description": "File size in bytes."26 },27 "size": {28 "type": "number",29 "description": "File size in bytes; the same value as size_bytes."30 },31 "url": {32 "type": [33 "string",34 "null"35 ],36 "description": "API URL for downloading the upload; access depends on its visibility."37 },38 "status": {39 "type": "string",40 "enum": [41 "pending",42 "active",43 "failed"44 ],45 "description": "Upload lifecycle state: pending until finalized, active when available, or failed."46 },47 "visibility": {48 "type": "string",49 "enum": [50 "project",51 "public",52 "private"53 ],54 "description": "Effective access policy for the upload or folder."55 },56 "created_at": {57 "type": "string",58 "description": "Creation timestamp in ISO 8601 format."59 },60 "updated_at": {61 "type": "string",62 "description": "Last update timestamp in ISO 8601 format."63 },64 "deleted_at": {65 "type": [66 "string",67 "null"68 ],69 "description": "Soft deletion timestamp in ISO 8601 format, or null for an undeleted upload."70 },71 "type": {72 "type": "string",73 "enum": [74 "file"75 ],76 "description": "Item type",77 "example": "file"78 },79 "permission": {80 "type": "string",81 "enum": [82 "read",83 "write",84 "admin"85 ],86 "description": "The caller’s effective access to this item: read, write, or admin."87 }88 },89 "required": [90 "id",91 "path",92 "file_name",93 "content_type",94 "size_bytes",95 "size",96 "url",97 "status",98 "visibility",99 "created_at",100 "updated_at",101 "deleted_at",102 "type",103 "permission"104 ]105}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": "listUploads",3 "tags": [4 "projects/Uploads/Project Uploads"5 ],6 "summary": "List uploads",7 "description": "List the uploads the caller can see under an optional folder prefix, newest first by default, with the visible folders in a separate list. Requires project.uploads.read.",8 "parameters": [9 {10 "$ref": "#/components/parameters/ProjectReference"11 },12 {13 "schema": {14 "type": "string",15 "description": "Project-relative path to select direct-child files (for example, \"assets/\"). Omit to list all project files."16 },17 "required": false,18 "name": "path",19 "in": "query"20 },21 {22 "schema": {23 "type": "string",24 "minLength": 1,25 "maxLength": 4096,26 "description": "Opaque continuation; copy unchanged with the same project/path/sort. A removed anchor requires restarting; live changes affect traversal. Legacy ISO timestamps retain the creation cutoff and cannot recover ties."27 },28 "required": false,29 "name": "cursor",30 "in": "query"31 },32 {33 "$ref": "#/components/parameters/PaginationLimit"34 },35 {36 "schema": {37 "type": "string",38 "enum": [39 "created_at",40 "name",41 "size_bytes",42 "size"43 ],44 "default": "created_at",45 "description": "Sort field. Defaults to \"created_at\". \"size\" is accepted as another spelling of \"size_bytes\"."46 },47 "required": false,48 "name": "sort_by",49 "in": "query"50 },51 {52 "schema": {53 "type": "string",54 "enum": [55 "asc",56 "desc"57 ],58 "default": "desc",59 "description": "Sort order. Defaults to \"desc\"."60 },61 "required": false,62 "name": "sort_order",63 "in": "query"64 },65 {66 "schema": {67 "type": "boolean",68 "default": true,69 "description": "When true, returns all nested folders under the given path (or all folders if no path). Default: true."70 },71 "required": false,72 "name": "recursive",73 "in": "query"74 }75 ],76 "responses": {77 "200": {78 "description": "One page of uploads with the visible folders in `folders`. `data` also repeats the folders as `type: \"folder\"` items before the uploads (`type: \"file\"`).",79 "content": {80 "application/json": {81 "schema": {82 "type": "object",83 "properties": {84 "data": {85 "type": "array",86 "items": {87 "oneOf": [88 {89 "$ref": "#/components/schemas/UploadFolder"90 },91 {92 "$ref": "#/components/schemas/UploadFile"93 }94 ],95 "discriminator": {96 "propertyName": "type",97 "mapping": {98 "folder": "#/components/schemas/UploadFolder",99 "file": "#/components/schemas/UploadFile"100 }101 },102 "description": "Upload item, either a folder (type: \"folder\") or a file (type: \"file\")"103 }104 },105 "folders": {106 "type": "array",107 "items": {108 "type": "object",109 "properties": {110 "path": {111 "type": "string",112 "description": "Folder path with a trailing slash."113 },114 "visibility": {115 "type": "string",116 "enum": [117 "project",118 "public",119 "private"120 ],121 "description": "Effective access policy for the upload or folder."122 },123 "permission": {124 "type": "string",125 "enum": [126 "read",127 "write",128 "admin"129 ],130 "description": "The caller’s effective access to this item: read, write, or admin."131 },132 "created_at": {133 "type": "string",134 "description": "Creation timestamp in ISO 8601 format."135 }136 },137 "required": [138 "path",139 "visibility",140 "permission",141 "created_at"142 ]143 },144 "description": "Visible folders, separate from the upload cursor and page size. The `data` items with `type: \"folder\"` repeat them."145 },146 "page_info": {147 "$ref": "#/components/schemas/PageInfo"148 }149 },150 "required": [151 "data",152 "folders",153 "page_info"154 ]155 }156 }157 }158 },159 "400": {160 "description": "Invalid request parameters",161 "content": {162 "application/problem+json": {163 "schema": {164 "$ref": "#/components/schemas/Problem"165 }166 }167 }168 },169 "401": {170 "description": "Unauthorized",171 "content": {172 "application/problem+json": {173 "schema": {174 "$ref": "#/components/schemas/Problem"175 }176 }177 }178 },179 "403": {180 "description": "Forbidden - insufficient permissions",181 "content": {182 "application/problem+json": {183 "schema": {184 "$ref": "#/components/schemas/Problem"185 }186 }187 }188 },189 "404": {190 "description": "Project or upload path not found",191 "content": {192 "application/problem+json": {193 "schema": {194 "$ref": "#/components/schemas/Problem"195 }196 }197 }198 },199 "500": {200 "description": "Server error",201 "content": {202 "application/problem+json": {203 "schema": {204 "$ref": "#/components/schemas/Problem"205 }206 }207 }208 }209 },210 "x-documentation-source-tag": "Project Uploads",211 "x-canonical-documentation": {212 "domain": "projects",213 "resource": "Uploads",214 "subgroup": "Project Uploads",215 "name": "List uploads",216 "description": "List the uploads the caller can see under an optional folder prefix, newest first by default, with the visible folders in a separate list. Requires project.uploads.read.",217 "operationId": "listUploads"218 },219 "x-mint": {220 "href": "/cloud/rest/api-reference/projects-uploads-project-uploads/list-uploads"221 }222}