Skip to main content
POST
Create Api Key Endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vault_id
string<uuid>
required

Body

application/json
name
string
required

Display name for the API key

Maximum string length: 255
expires_in_days
integer | null

Days until expiration (None = never expires)

Required range: 1 <= x <= 365

Response

Successful Response

API key output on creation (includes full key - only shown once).

id
string<uuid>
required
vault_id
string<uuid>
required
name
string
required
key_prefix
string
required
expires_at
string<date-time> | null
required
created_at
string<date-time>
required
key
string
required

Full API key - save this, it won't be shown again!