Skip to main content
POST
Start linking your GitHub account with a code: for pch and agents

Authorizations

Authorization
string
header
required

An API key (pch_...) or the token from pch login.

Response

The code for the person to enter

id
string<uuid>
required

Ask GET /me/github/device/{id} how it stands

user_code
string
required
Example:

"WDJB-MJHT"

verification_uri
string<uri>
required
Example:

"https://github.com/login/device"

interval
integer
required

Seconds to wait between asking

expires_in
integer
required

Seconds the code works for