> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Vaults API: List, Create, Rename and Delete Vaults

> List, make, rename and delete vaults with the OneCLI API. A vault holds the items agents use and has agents connected to it.

A vault is a box of items with agents connected to it. Every agent on a vault can use the same items, with the same permissions.

Use these endpoints to manage the vaults you can use. Every person has a personal vault. To put keys in a vault, see [Items](/docs/api-reference/items). To connect an agent to one, see [Connect tokens](/docs/api-reference/connect-tokens).

## Related guides

* [How it works: vaults, the gateway and approvals](/docs/how-it-works.md)
* [Quickstart: connect an agent and make a first call](/docs/quickstart.md)
* [External vaults: Bitwarden and 1Password](/docs/vaults/overview.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [List vaults](/docs/api-reference/vaults/list-vaults.md) | `GET /v2/vaults` | The vaults you can use in this organization, oldest first. |
| [Make a vault](/docs/api-reference/vaults/make-a-vault.md) | `POST /v2/vaults` | Makes a vault in this organization. |
| [Read a vault](/docs/api-reference/vaults/read-a-vault.md) | `GET /v2/vaults/{id}` | Read one vault you can use with the OneCLI API: its name, its slug, and whether it is your personal vault. |
| [Rename a vault](/docs/api-reference/vaults/rename-a-vault.md) | `PATCH /v2/vaults/{id}` | Renames a vault you can use. |
| [Delete a vault](/docs/api-reference/vaults/delete-a-vault.md) | `DELETE /v2/vaults/{id}` | Deletes a vault you can use, with its items and permissions. |
| [List a vault's sources](/docs/api-reference/vaults/list-a-vaults-sources.md) | `GET /v2/vaults/{id}/sources` | The password managers paired with one vault, newest first. |

## Next steps

* [API overview](/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](/docs/api-reference/errors.md): status codes and the error format
* [Editions](/docs/api-reference/editions.md): which endpoints each edition serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.