Cloady Docs
API ReferenceEndpointsWorkspaces

Upload project files to deploy

Send each file's path and content. The response's uploadId goes into deployApp or inspectSource as source { type: "upload", uploadId }. A single .zip file is taken as the whole project. Up to 3000 files and 50 MB; an upload that no app uses within an hour is deleted.

POST
/api/workspaces/{workspaceSlug}/uploads
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/uploads" \  -H "Content-Type: application/json" \  -d '{    "files": [      {        "path": "string",        "content": "string"      }    ]  }'
{  "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497",  "name": "string",  "files": 0,  "size": 0}