---
title: "POST /vault/provision"
method: POST
path: "/vault/provision"
---

# POST /vault/provision

`POST /vault/provision`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/vault/provision`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- object: Input for provisioning a new agent vault
  - `agentId` union, required: Agent identifier to provision a vault for — master key only
    - string
    - string

## Response `200`

OK

- object: Provisioned vault details for an agent
  - `id` string, required: Unique vault record identifier
  - `agentId` string, required: Agent the vault belongs to
  - `orgId` string, required: Organization the vault belongs to
  - `vaultUserId` string, nullable, required: Vault backend user identifier
  - `vaultOrgId` string, nullable, required: Vault backend organization identifier
  - `collectionId` string, nullable, required: Default collection identifier in the vault
  - `status` 'ACTIVE' | 'LOCKED' | 'ERROR', required: Current vault operational status
  - `credentialCount` integer, required: Total number of credentials stored
  - `lastSyncAt` string, date-time, nullable, required: Timestamp of the last vault synchronization
  - `createdAt` string, date-time, required: Timestamp when the vault was provisioned
  - `updatedAt` string, date-time, required: Timestamp when the vault was last updated

---

[API](https://skmtc.dev/useanima/apis/anima-api.md) · [All operations](https://skmtc.dev/useanima/apis/anima-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useanima/apis/anima-api/revisions/aaa148188980?raw)
