Skip to main content
POST
Get a GitHub token on a computer

Authorizations

Authorization
string
header
required

A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

Path Parameters

id
string
required

Stable public computer identifier.

Minimum string length: 1
Example:

"cmp_123"

Body

application/json
repo
string
required

owner/name.

Response

The token and its installation.

token
string
required
expires_at
string<date-time>
required
installation
object
required
env
object