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

# Permissions API: Set What Agents May Do With an Item

> Read and set an item's permissions with the OneCLI API: always allow, needs approval, or never, for the whole item and per tool.

Permissions live on the item. Each tool of an item has one level: allow, ask a person first, or never. Every agent on the vault gets the same answer.

Use these endpoints to read and replace the permissions of one item. For limits that hold across vaults, use [Rules](/docs/api-reference/rules.md).

## Related guides

* [How it works: vaults, the gateway and approvals](/docs/how-it-works.md)
* [Policy rules: organization-wide guardrails](/docs/guides/rules.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Read what agents may do with an item](/docs/api-reference/permissions/read-what-agents-may-do-with-an-item.md) | `GET /v2/items/{id}/permissions` | Read an item's permissions: the item's own switch and one level per tool. |
| [Set what agents may do with an item](/docs/api-reference/permissions/set-what-agents-may-do-with-an-item.md) | `PUT /v2/items/{id}/permissions` | Replaces the item's permissions on its vault: 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.