Skip to main content
POST
Create API key

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json

API key to create. The secret is returned once, on creation.

name
string
required

Human-readable label for the key.

Example:

"CI evidence export"

scopes
string[]
required

Permission scopes to grant, as resource:action strings. At least one is required, and every entry is checked against the allowlist.

Minimum array length: 1
Example:
expiresAt
enum<string>

Lifetime of the key. Defaults to never expiring.

Available options:
never,
30days,
90days,
1year
Example:

"90days"

Response

201 - undefined