Skip to Content
SeyloDocs

Connect a GitHub account for private repos

POST
/api/v1/github.deviceStart

Starts the GitHub device flow (like gh auth login) to get a token with the repo scope, so the panel can clone private repositories without the App. Show userCode and open verificationUri, then poll github.devicePoll every intervalSeconds. Opt-in; the App stays the recommended way.

Needs github.manage, which owners and admins hold. Not available to MCP clients or the assistant.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body

Response Body

Success.

application/json
  1. response
flowId*string

Panel-issued id.

Match^[a-z0-9]{16}$
userCode*string
verificationUri*string
intervalSeconds*integer
Range1 <= value
expiresAt*string
Formatdate-time
Example Request
curl -X POST 'https://example.com/api/v1/github.deviceStart' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "flowId": "string",  "userCode": "string",  "verificationUri": "string",  "intervalSeconds": 1,  "expiresAt": "2019-08-24T14:15:22Z"}