Skip to content

GitHub OAuth code-for-token exchange proxy (used by the studio publish flow)

POST
/api/github/token
curl --request POST \
--url https://gib.show/api/github/token \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'
Media type: application/json
object
code
required
string

Example generated

{
"code": "example"
}

Access token.

Media type: application/json
object
access_token
string

Example generated

{
"access_token": "example"
}

Missing code or exchange rejected.

Media type: application/json
object
error
string

Example generated

{
"error": "example"
}

GitHub responded with a non-OK status, or the exchange request to GitHub failed (network error). Details are logged server-side, not returned.

Media type: application/json
object
error
string

Example generated

{
"error": "example"
}

OAuth not configured on this deployment.

Media type: application/json
object
error
string

Example generated

{
"error": "example"
}