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

# API Keys API: Make, List and Revoke Managing Keys

> Make, list, read and revoke managing keys with the OneCLI API. A managing key acts as the person who made it and is shown once.

A managing key (`oc_key_...`) is what a script calls this API with. It acts as the person who made it, in the organization it was made in, and stops when that person leaves.

Use these endpoints to manage your own keys. Making a key takes a signed-in session that confirmed it's you in the last 10 minutes. A key cannot make a key.

## Related guides

* [API overview: authentication](/docs/api-reference.md#authentication)
* [Trust and threat model](/docs/guides/trust-model.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [List your keys](/docs/api-reference/api-keys/list-your-keys.md) | `GET /v2/keys` | Your own live managing keys in this organization, newest first. |
| [Make a key](/docs/api-reference/api-keys/make-a-key.md) | `POST /v2/keys` | Makes a managing key and returns it once. |
| [Read one of your keys](/docs/api-reference/api-keys/read-one-of-your-keys.md) | `GET /v2/keys/{id}` | Read one of your own live managing keys with the OneCLI API: its name, permissions, expiry and last use. |
| [Revoke one of your keys](/docs/api-reference/api-keys/revoke-one-of-your-keys.md) | `DELETE /v2/keys/{id}` | Revokes one of your own managing keys with the OneCLI API. |
| [Confirm it's you](/docs/api-reference/api-keys/confirm-its-you.md) | `POST /v2/session/confirmation` | Checks your password again. |

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