Skip to content

Storage

Path-addressed project files: list, upload, download, move and delete.

On this page

Concepts: Storage and SFTP

Endpoint summaries come from the OpenAPI document.

GET/v1/projects/{project}/storage

Files and folders under a prefix (public/ or private/)

Operation (MCP tool)
listStorage
Authentication
API key (pfa_…)OAuth token (pfo_…)Secret data key (pfk_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
prefixOptionalquerystring
limitOptionalqueryintegermin 1, max 1000, default 100
cursorOptionalquerystring

Responses

Responses
StatusDescriptionBody
200OKStorageList
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

DELETE/v1/projects/{project}/storage

Delete a file (?path=) or a folder (?prefix=, up to 1000 files)

Operation (MCP tool)
deleteStorage
Authentication
API key (pfa_…)OAuth token (pfo_…)Secret data key (pfk_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
pathOptionalquerystring
prefixOptionalquerystring

Responses

Responses
StatusDescriptionBody
200OKobject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

POST/v1/projects/{project}/storage/uploads

Get a signed upload URL for one file; PUT the bytes there. Checks the plan's storage limits

Operation (MCP tool)
createStorageUpload
Authentication
API key (pfa_…)OAuth token (pfo_…)Secret data key (pfk_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
pathRequiredstring
sizeRequiredintegermin 0
contentTypeOptionalstring

Responses

Responses
StatusDescriptionBody
201Createdobject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

GET/v1/projects/{project}/storage/file

A file's details and a signed download URL (15 minutes)

Operation (MCP tool)
getStorageFile
Authentication
API key (pfa_…)OAuth token (pfo_…)Secret data key (pfk_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

Responses
StatusDescriptionBody
200OKStorageObject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

POST/v1/projects/{project}/storage/move

Move or rename a file, or a folder when from ends with /

Operation (MCP tool)
moveStorage
Authentication
API key (pfa_…)OAuth token (pfo_…)Secret data key (pfk_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
fromRequiredstring
toRequiredstring
overwriteOptionalboolean

Responses

Responses
StatusDescriptionBody
200OKobject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

PUT/v1/storage-uploads/{token}

The file's bytes (exactly the declared size)

Operation (MCP tool)
uploadStorageFile
Authentication
Signed URL from an earlier response

Parameters

Parameters
NameInTypeDescription
tokenRequiredpathstring

Request body

application/octet-streamstringRequired

Responses

Responses
StatusDescriptionBody
200OKStorageObject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
413ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

GET/v1/storage-files/{token}

The file itself

Operation (MCP tool)
downloadStorageFile
Authentication
Signed URL from an earlier response

Parameters

Parameters
NameInTypeDescription
tokenRequiredpathstring

Responses

Responses
StatusDescriptionBody
200Filestring
401ExpiredNo content
404Not foundNo content