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

# Items API: Add, Rotate, Move and Delete Keys

> Add API keys and LLM keys to a vault, replace a value, restore an earlier version, and delete or restore items. Values are never returned.

An item is one thing a vault holds for its agents: a connected app, an API key, or an LLM key. A value is write-only. No endpoint returns it.

Use these endpoints to add keys, replace a value, and move, turn off, delete or restore an item. Connected apps are added by signing in from the dashboard. What agents may do with an item is set through [Permissions](/docs/api-reference/permissions).

## Related guides

* [How it works: vaults, the gateway and approvals](/docs/how-it-works.md)
* [Custom connections: connect any API with a key](/docs/integrations/custom-connections.md)
* [LLMs: keep LLM keys out of your agents](/docs/integrations/llms.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [List a vault's items](/docs/api-reference/items/list-a-vaults-items.md) | `GET /v2/vaults/{id}/items` | The apps and keys in one vault, newest first. |
| [Add a key to a vault](/docs/api-reference/items/add-a-key-to-a-vault.md) | `POST /v2/vaults/{id}/items` | Adds an API key or an LLM key. |
| [Read an item](/docs/api-reference/items/read-an-item.md) | `GET /v2/items/{id}` | One app or key in a vault you can use, with how a key is sent and who added it. |
| [Rename, move, turn off, or set plain http for an item](/docs/api-reference/items/rename-move-turn-off-or-set-plain-http-for-an-item.md) | `PATCH /v2/items/{id}` | Renames an item, moves a key to another vault you can use, turns it on or off for agents, or turns plain http on or off for it. |
| [Delete an item](/docs/api-reference/items/delete-an-item.md) | `DELETE /v2/items/{id}` | Deletes an item: agents stop using it at once, and it leaves every list. |
| [Replace a key's value](/docs/api-reference/items/replace-a-keys-value.md) | `PUT /v2/items/{id}/value` | Sets a new value on a key, as a new version. |
| [List a key's versions](/docs/api-reference/items/list-a-keys-versions.md) | `GET /v2/items/{id}/versions` | The last 10 values a person set on a key, newest first. |
| [Put an earlier version back](/docs/api-reference/items/put-an-earlier-version-back.md) | `POST /v2/items/{id}/versions/{version}/restore` | Makes version n the key's value again, as a new version. |
| [Restore a deleted item](/docs/api-reference/items/restore-a-deleted-item.md) | `POST /v2/items/{id}/restore` | Brings back an item deleted in the last 30 days, with the permissions it had. |

## 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.