Skip to content

Check GitHub connection status

GET
/github/status
curl --request GET \
--url https://example.com/api/github/status \
--header 'Authorization: Bearer <token>'

Returns whether the user has a valid GitHub token, repo scope, and app installation.

GitHub connection status

Media type application/json
object
connected
required
boolean
username
string | null
avatarUrl
string | null
reason

Reason for disconnection

string
Allowed values: token_invalid missing_repo_scope github_unreachable
appInstalled
required
boolean
appInstallConfigured
required
boolean

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean