Skip to content

SFTP

SFTP accounts for project storage.

On this page

Concepts: Storage and SFTP

Endpoint summaries come from the OpenAPI document.

GET/v1/projects/{project}/sftp

SFTP accounts, the host and port to connect to, and whether the plan includes SFTP

Operation (MCP tool)
listSftpAccounts
Authentication
API key (pfa_…)OAuth token (pfo_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

Responses
StatusDescriptionBody
200OKobject
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}/sftp

Open an SFTP account with an SSH public key or a generated password (returned once). Paid plans; needs keys.manage and a person's key

Operation (MCP tool)
createSftpAccount
Authentication
API key (pfa_…)OAuth token (pfo_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
labelRequiredstring
publicKeyOptionalstring
passwordOptionalboolean
scopeOptionalobject
scope.modeOptional"full" | "readonly" | "folder"
scope.folderOptionalstring
allowedIpsOptionalstring[]
expiresAtOptionalstring

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.

DELETE/v1/projects/{project}/sftp/{account}

Revoke an SFTP account

Operation (MCP tool)
revokeSftpAccount
Authentication
API key (pfa_…)OAuth token (pfo_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
accountRequiredpathstring

Responses

Responses
StatusDescriptionBody
204RevokedNo content
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.