Skip to main content
POST
Mint your agent a read-only token for a repository

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

The repository's name, as one of your projects names it.

Required string length: 1 - 100
owner
string
required

The repository's owner, as one of your projects names it.

Required string length: 1 - 39

Response

Created

expires_at
string<date-time>
required

When GitHub expires the token, an hour after it was minted.

full_name
string
required

The repository's current owner/name on GitHub, which differs from the name asked for once it was renamed.

repository_id
integer<int64>
required

The repository's GitHub id.

token
string
required

A GitHub App installation token that reads this repository's contents and metadata, and nothing else.