Skip to main content
POST
Create a vault item

Authorizations

Authorization
string
header
required

Standard JWT for user sessions obtained via Altostrat authentication.

Body

application/json
name
string
required

A descriptive name for the secret. To generate an API Key, prefix the name with api-key:.

Example:

"My App's API Token"

secret
string

The secret value to store. This field should be omitted when creating an API key.

Example:

"sec_abc123def456"

expires_at
string<date-time> | null

An optional expiration date for the secret.

Example:

"2026-10-31T10:00:00Z"

Response

The vault item was created successfully.

id
string

The unique prefixed identifier for the vault item.

Example:

"vlt_01h3j4k5l6m7n8p9q0r1s2t3u4"

name
string

The name of the vault item. For API keys, use the api-key: prefix.

Example:

"External Service API Key"

created_at
string<date-time>

The timestamp when the item was created.

Example:

"2025-10-31T10:00:00.000000Z"

expires_at
string<date-time> | null

The timestamp when the item expires and can no longer be used.

Example:

"2026-10-31T10:00:00.000000Z"