sites

Store Access Token

Persist a GitHub access token for the site. The token must already be issued by GitHub — Pressable does not exchange OAuth codes on your behalf, and only api.github.com is supported (GitHub Enterprise and other git providers are not). Accepted inputs are a classic Personal Access Token, a fine-grained PAT, or a GitHub OAuth access token (e.g. from a GitHub App installation).

post/sites/{site_id}/git/token

Request

Path parameters

site_idinteger required

Request body

tokenstring

Response

Successful Response

messagestring
errorsstring[]

Example response

{
  "message": "Unprocessable Entity",
  "errors": [
    "This site is not opted in to the new GitHub integration. Enable it in your account settings before using the git API."
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.