Skip to content

Access and sharing

Public or private projects, share links, passwords and people.

On this page

Concepts: Domains and sharing

Endpoint summaries come from the OpenAPI document.

GET/v1/projects/{project}/access

Who can open the project: public or private, share link, password, people and pending access requests

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

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

PUT/v1/projects/{project}/access

Make the project public or private (needs share.manage and a full-access key; agents can't change access)

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
modeRequired"public" | "private"

Responses

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

Create a share link (the URL is returned once; it replaces the previous link)

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

Responses
StatusDescriptionBody
201Createdobject
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.

Turn off the share link

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

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

PUT/v1/projects/{project}/access/password

Set the visitor password (8–72 characters)

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
passwordRequiredstringlength 8–72

Responses

Responses
StatusDescriptionBody
200OKProjectAccess
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}/access/password

Remove the visitor password

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

Responses
StatusDescriptionBody
200OKProjectAccess
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}/access/people

Share the project with a person by email (they sign in to Perafly with that address)

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
emailRequiredstring

Responses

Responses
StatusDescriptionBody
201CreatedProjectAccess
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}/access/people/{share}

Stop sharing with a person

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
shareRequiredpathstring

Responses

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