Skip to content

Versions

List versions, make one live (also rollback), delete old ones and read build logs.

On this page

Concepts: Publishing

Endpoint summaries come from the OpenAPI document.

GET/v1/projects/{project}/versions

List versions (newest first)

Operation (MCP tool)
listProjectVersions
Authentication
API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
limitOptionalqueryintegermin 1, max 100, default 50
cursorOptionalquerystring
stateOptionalquerystring

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.

GET/v1/projects/{project}/versions/{version}

Get a version

Operation (MCP tool)
getProjectVersion
Authentication
API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
versionRequiredpathstring

Responses

Responses
StatusDescriptionBody
200OKVersion
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}/versions/{version}

Delete a version that is not live

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
versionRequiredpathstring

Responses

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

POST/v1/projects/{project}/versions/{version}/promote

Make a ready version live (also used to roll back); no rebuild. With an agent credential: 403 approval_required and an execution to resume after approval

Operation (MCP tool)
promoteProjectVersion
Authentication
API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
versionRequiredpathstring
Idempotency-KeyOptionalheaderstringReplays the first response for 24 hourslength 8–128

Responses

Responses
StatusDescriptionBody
200OKVersionResult
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
503ProblemProblem (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}/versions/{version}/files

List a version's files

Operation (MCP tool)
listVersionFiles
Authentication
API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
versionRequiredpathstring
limitOptionalqueryintegermin 1, max 100, default 50
cursorOptionalquerystring
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.

GET/v1/projects/{project}/logs/build

Build log of a version (latest by default)

Operation (MCP tool)
getBuildLog
Authentication
API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
versionOptionalquerystring

Responses

Responses
StatusDescriptionBody
200OKBuildLog
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
503ProblemProblem (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.