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
Responses
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
Request body
application/jsonobjectOptional
Responses
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
Responses
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
Request body
application/jsonobjectOptional
Responses
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
Request body
application/jsonobjectOptional
Responses
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
Responses
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
Request body
application/jsonobjectRequired
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.