Git
GitHub connection, builds and branch previews.
On this page
Concepts: Git and CI
Endpoint summaries come from the OpenAPI document.
GET/v1/projects/{project}/git
Git connection and settings: GitHub repository, production branch, automatic deploys and the direct push address
- Operation (MCP tool)
getProjectGit- 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.
PUT/v1/projects/{project}/git
Connect a GitHub repository (from the team's installations) or change branch settings. Turning on automatic production deploys needs versions.promote
- Operation (MCP tool)
setProjectGit- 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.
DELETE/v1/projects/{project}/git
Disconnect the GitHub repository; versions and branch previews stay
- Operation (MCP tool)
disconnectProjectGit- 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.
GET/v1/projects/{project}/git/builds
The last 50 Git builds
- Operation (MCP tool)
listGitBuilds- 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}/git/builds/{build}/approve
Approve a pull request build from a fork; it gets the project's environment variables
- Operation (MCP tool)
approveGitBuild- 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.
GET/v1/projects/{project}/branches
Branch preview addresses and the version each one serves
- Operation (MCP tool)
listProjectBranches- 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.