Skip to main content

Endpoint

Auth: API Key or Session Content-Type: application/json
The full API key is only returned once at creation time. Store it securely, it cannot be retrieved again.

Body parameters

name
string
A human-readable label to identify this key.production · staging · ci-deploy
expiresIn
number
Expiration time in seconds from now. Defaults to 365 days (31536000).86400 (1 day) · 2592000 (30 days) · 31536000 (1 year)

Response

success
boolean
Whether the key was created.
apiKey
object
Status codes: 200 success · 401 unauthorized · 500 error

Example

List API Keys

View all active keys.

Delete API Key

Revoke a key.