vaults

Create Api Key Endpoint

Create a new API key for programmatic vault access via Unkey.

The full API key is only returned once on creation - save it immediately!

post/v1/vaults/{vault_id}/api-keys

Path parameters

vault_idstring uuid required

Request body

namestring required

Display name for the API key

expires_in_daysinteger nullable

Days until expiration (None = never expires)

Response

Successful Response

idstring uuid required
vault_idstring uuid required
namestring required
key_prefixstring required
expires_atstring date-time nullable required
created_atstring date-time required
keystring required

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

Changes

No recorded changes to this endpoint across all 1 revision of this API.