Skip to main content
POST
Create an API key (secret shown once)

Authorizations

Authorization
string
header
required

A workspace API key, sent as Authorization: Bearer sempera_sk_... Each operation names the one scope it needs. Scopes, key kinds and roles are in the Authentication guide.

Body

application/json
kind
enum<string>
required
Available options:
developer,
runtime,
ci,
service,
admin
scopes
string[]
required
name
string
role
enum<string>
Available options:
owner,
operator,
viewer
expires_at
string<date-time>

Response

Created

id
string
required
object
any
required
kind
string
required
role
string
required
scopes
string[]
required
name
any
key_prefix
any
workspace_id
any
status
enum<string>
Available options:
active,
revoked,
expired
created_at
any
expires_at
any
revoked_at
any
last_used_at
any
secret
string

Shown once. Store it now.