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

# Shared Items API: One Key Shared With Many Vaults

> Keep a key once for the organization and share it with chosen vaults or all of them. Each vault sets its own permissions. Cloud only.

A shared item belongs to the organization, not to one vault. An admin shares it with chosen vaults, or opens it to all of them. Each vault sets its own permissions for it.

Use these endpoints to manage shared items and to read what a vault was given. They exist on OneCLI Cloud only.

## Related guides

* [Editions: what OneCLI Cloud adds](/docs/api-reference/editions.md)
* [How it works: vaults, the gateway and approvals](/docs/how-it-works.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [List the shared items](/docs/api-reference/shared-items/list-the-shared-items.md) | `GET /v2/org/shared-items` | This organization's shared items, newest first, each with the vaults it is shared with. |
| [Add a shared key](/docs/api-reference/shared-items/add-a-shared-key.md) | `POST /v2/org/shared-items` | Adds an API key or an LLM key to this organization's shared items. |
| [Read a shared item](/docs/api-reference/shared-items/read-a-shared-item.md) | `GET /v2/org/shared-items/{id}` | One of this organization's shared items. |
| [Rename a shared item, give a shared key a new value, or open it to all vaults](/docs/api-reference/shared-items/rename-a-shared-item-give-a-shared-key-a-new-value-or-open-it-to-all-vaults.md) | `PATCH /v2/org/shared-items/{id}` | Renames a shared item, gives a shared key a new value, or opens it to all vaults. |
| [Delete a shared item](/docs/api-reference/shared-items/delete-a-shared-item.md) | `DELETE /v2/org/shared-items/{id}` | Deletes the item. |
| [List the vaults an item is shared with](/docs/api-reference/shared-items/list-the-vaults-an-item-is-shared-with.md) | `GET /v2/org/shared-items/{id}/vaults` | The vaults picked one by one for this item, most recently shared first. |
| [Share an item with a vault](/docs/api-reference/shared-items/share-an-item-with-a-vault.md) | `PUT /v2/org/shared-items/{id}/vaults/{vaultId}` | The vault's agents may use the item, starting at the permissions a new item of its kind gets in that vault. |
| [Take an item away from a vault](/docs/api-reference/shared-items/take-an-item-away-from-a-vault.md) | `DELETE /v2/org/shared-items/{id}/vaults/{vaultId}` | The vault loses the item, with the permissions set there. |
| [List the shared items a vault may use](/docs/api-reference/shared-items/list-the-shared-items-a-vault-may-use.md) | `GET /v2/vaults/{id}/shared-items` | The organization's shared items that were shared with this vault, newest first. |
| [Read what a vault's agents may do with a shared item](/docs/api-reference/shared-items/read-what-a-vaults-agents-may-do-with-a-shared-item.md) | `GET /v2/vaults/{id}/shared-items/{itemId}/permissions` | This vault's permissions for an item shared with it. |
| [Set what a vault's agents may do with a shared item](/docs/api-reference/shared-items/set-what-a-vaults-agents-may-do-with-a-shared-item.md) | `PUT /v2/vaults/{id}/shared-items/{itemId}/permissions` | Replaces this vault's permissions for an item shared with it: the item's own level, and a level for any tool that differs. |

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