Skip to content

API keys

The team's API keys (pfa_…). Needs a person's full sign-in.

On this page

Concepts: Agents and MCP

Endpoint summaries come from the OpenAPI document.

GET/v1/api-keys

List the team's API keys (needs keys.manage; not available to agent credentials)

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

Responses

Responses
StatusDescriptionBody
200OKobject
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/api-keys

Create an API key; the secret is returned once (needs keys.manage)

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

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
nameRequiredstringmax length 60

Responses

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

DELETE/v1/api-keys/{key}

Revoke an API key

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

Parameters

Parameters
NameInTypeDescription
keyRequiredpathstringKey id (`key_…`)

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.