palbaseDocs

Palbase Machines · API

POST/machines/github/connect

Connect GitHub

Answers where the project's owner installs Palbase Cloud on the GitHub account whose repositories machines are built from. Back from GitHub, the user is shown the account and the repositories of it they can push to, and connects them to the project by writing its ref. The link holds 15 minutes.

Called by your server, with the project's secret key.

curl
curl -X POST "https://<your-ref>.palbase.studio/machines/github/connect" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200Where to install

401Missing or invalid API key

403Not the project's secret key; or the request requires elevated owner authentication (`owner_only`, `insufficient_user_authentication`).

429Over the project's request limit, or its machine time for this period is used up

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ConnectGitHub of machines's contract.