Skip to main content
POST
Create an API key

Authorizations

gateway_session
string
cookie
required

Secure same-origin browser session cookie.

Body

application/json
name
string
required
project_id
string
required
team_id
string | null
workload
string | null
Maximum string length: 200
expires_at
string | null
ttl_seconds
integer
Required range: 300 <= x <= 315360000

Response

Successful Response

id
string
required
name
string
required
workload
string | null
required
project_id
string
required
team_id
string | null
required
key_prefix
string
required
key_hint
string
required
current_version
integer
required
status
enum<string>
required
Available options:
active,
disabled,
expired
created_at
string
required
expires_at
string | null
required
disabled_at
string | null
required
last_used_at
string<date-time>
required

Last authenticated use of this logical key, including model catalog and Playground access. Updated asynchronously, normally within 30 seconds; null means no use has been recorded. Preserved across secret rotation.

secret
string<password>
required
read-only
object
string
default:gateway.api_key
Allowed value: "gateway.api_key"