Skip to content

Projects

Create, read, rename and delete projects, and claim one published without an account.

On this page

Concepts: Publishing

Endpoint summaries come from the OpenAPI document.

GET/v1/projects

List projects (a project key sees only its project)

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

Parameters

Parameters
NameInTypeDescription
limitOptionalqueryintegermin 1, max 100, default 50
cursorOptionalquerystring
qOptionalquerystring

Responses

Responses
StatusDescriptionBody
200OKobject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (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

Create an empty project

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

Parameters

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

Request body

application/jsonobjectOptional

Request body
NameTypeDescription
nameOptionalstring
titleOptionalstring

Responses

Responses
StatusDescriptionBody
201CreatedProject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (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.

GET/v1/projects/{project}

Get a project

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

Responses
StatusDescriptionBody
200OKProject
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.

PATCH/v1/projects/{project}

Rename, retitle or change the publish rule

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectOptional

Request body
NameTypeDescription
nameOptionalstring
titleOptionalstring | null
publishRuleOptional"auto" | "manual"

Responses

Responses
StatusDescriptionBody
200OKProject
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.

DELETE/v1/projects/{project}

Delete a project (confirmName must equal its name)

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectOptional

Request body
NameTypeDescription
confirmNameRequiredstring

Responses

Responses
StatusDescriptionBody
204DeletedNo content
400ProblemProblem (RFC 9457)
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.

GET/v1/lookup

Which project (and version) a Perafly address belongs to: live, version (--vN), branch preview (--br-), custom domain or storage file URL. Only projects this credential can see; anything else is not_found

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

Parameters

Parameters
NameInTypeDescription
urlRequiredquerystringmax length 2000

Responses

Responses
StatusDescriptionBody
200OKobject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
429ProblemProblem (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}/claim

Move an ownerless project into the key's team; optionally mint a project-scoped agent key (returned once)

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
projectKeyRequiredstring`pfc_…`
keepPublishingOptionalbooleandefault false

Responses

Responses
StatusDescriptionBody
200ClaimedClaimResult
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.