Skip to main content
POST
Create API key

Authorizations

Authorization
string
header
required

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

Path Parameters

org
string
required

Body

application/json
name
string
scopes
enum<string>[]
Available options:
read,
write,
admin
repo_ids
string[]
Minimum string length: 1
expires_in_seconds
integer

Expiration time in seconds. Must be between 100 and 31536000 (365 days).

Required range: 100 <= x <= 31536000
tags
object

API key tags. Keys must not start with "$" (reserved for tag filter operators).

Response

API key created

id
string
required
key
string
required
name
string | null
required
scopes
string[]
required
repo_ids
string[] | null
required
tags
object
required
created_at
string<date-time>
required