Skip to content

Custom domains

Connect a domain, see the DNS records to set and check them.

On this page

Concepts: Domains and sharing

Endpoint summaries come from the OpenAPI document.

GET/v1/projects/{project}/domains

Custom domains of the project with status and the DNS records to set

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Responses

Responses
StatusDescriptionBody
200OKobject
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}/domains

Connect a custom domain; returns the DNS records to set. Counts toward the plan's domain limit

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring

Request body

application/jsonobjectRequired

Request body
NameTypeDescription
nameRequiredstring

Responses

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

DELETE/v1/projects/{project}/domains/{domain}

Disconnect a custom domain

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
domainRequiredpathstring

Responses

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

POST/v1/projects/{project}/domains/{domain}/check

Check verification and DNS now

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

Parameters

Parameters
NameInTypeDescription
projectRequiredpathstring
domainRequiredpathstring

Responses

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