Skip to content
Skip to Content
Coder Docs

Get Github device auth.

GET
/api/v2/users/oauth2/github/device

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
device_code?string
expires_in?integer
interval?integer
user_code?string
verification_uri?string

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/users/oauth2/github/device" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "device_code": "string",  "expires_in": 0,  "interval": 0,  "user_code": "string",  "verification_uri": "string"}