Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Body

application/json
name
string
required
project_id
string
required
environment_id
string
expires_in_days
integer<int64>
org_id
string
rotation_interval_days
integer<int64>
scopes
string[] | null

Response

OK

created_at
string<date-time>
required
id
string
required
key
string
required
key_prefix
string
required
name
string
required
project_id
string
required
scopes
string[] | null
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.strait.dev/schemas/CreateAPIKeyResponse.json"

expires_at
string<date-time>