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

# Agent Self-service API: What an Agent Can Read

> Endpoints an agent calls with its own credential: who it is, which items it can use, and what the gateway would decide for one call.

These endpoints are for the agent itself. They take the agent's own credential (`oc_agent_...`) and nothing else, and they never return a value.

They are what `onecli status`, `onecli items` and `onecli check` read. The skill endpoint needs no credential.

## Related guides

* [Agent quickstart: let an agent connect itself](/docs/agent-quickstart.md)
* [How it works: vaults, the gateway and approvals](/docs/how-it-works.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [The OneCLI skill for agents](/docs/api-reference/agent-self-service/the-onecli-skill-for-agents.md) | `GET /v2/skill` | A short markdown page that tells an agent what OneCLI is, how to connect, how to call an API through the gateway, and what to do when a call is held. |
| [Read who you are, as an agent](/docs/api-reference/agent-self-service/read-who-you-are-as-an-agent.md) | `GET /v2/agents/me` | The calling agent: its name, its one vault and where it sends its calls. |
| [Ask what would happen to a call, as an agent](/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent.md) | `POST /v2/agents/me/check` | What the gateway would decide for one call of yours, with nothing sent. |
| [List what you can use, as an agent](/docs/api-reference/agent-self-service/list-what-you-can-use-as-an-agent.md) | `GET /v2/agents/me/items` | The items of the calling agent's own vault, and the organization items shared with that vault, newest first, with what each allows. |

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