Skip to main content
POST
Create API key

Body

application/json

POST /v1/keys

tenant_id
string
required
project_id
string
required
key_type
string
default:sk
Pattern: ^(sk|pk)$
scopes
string[]
name
string | null
Maximum string length: 100
pack_scopes
string[] | null

Response

API key created - full key shown once

API key response (returned on create only - full key shown once).

key_prefix
string
required
key_id
string
required
tenant_id
string
required
project_id
string
required
key_type
string
required
scopes
string[]
required
key
string | null
revoked
boolean
default:false
name
string | null
pack_scopes
string[] | null