Skip to main content
POST
Create a credential vault

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

Idempotency-Key
string

Replay-protection key in an organization-wide namespace shared by keyed mutations. It must contain 1 to 256 visible ASCII characters and be sent as exactly one header value. Request identity is the exact HTTP method, escaped path, raw query, and raw body bytes. The same request replays the original successful response; any different request returns 409 idempotency_conflict, and an active matching request returns 409 idempotency_in_progress. Completed receipts are retained for approximately 24 hours, pending claims may be reclaimed after approximately 1 hour, and no deduplication is guaranteed after expiry.

Required string length: 1 - 256
Pattern: ^[!-~]+$
x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Body

application/json
displayName
string
required

Operator-facing label for the vault, shown wherever grants are reviewed. Required, and not blank; surrounding whitespace is trimmed.

Maximum string length: 256
Pattern: \S
metadata
object

Free-form caller-owned JSON stored with the vault and returned on reads. Not interpreted by the service; never put secret material here.

Response

Created

createdAt
string<date-time>
required
read-only

RFC 3339 timestamp of creation.

credentialCount
integer
required
read-only

How many credentials this vault currently holds.

Required range: -9007199254740991 <= x <= 9007199254740991
displayName
string
required

Operator-facing label for the vault.

organizationId
string
required
read-only

Organization that owns this record. Resolved from the authenticated principal; never accepted from the caller.

updatedAt
string<date-time>
required
read-only

RFC 3339 timestamp of the last change.

vaultId
string
required
read-only

Identifier for this vault (UUID). Server-assigned.

metadata
object

Free-form caller-supplied key/value labels.