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

# Connect Tokens API: Tokens That Connect Agents

> Make, read and turn off a vault's connect token and its one-use connect tokens. A connect token connects a new agent to that vault.

A connect token (`oc_connect_...`) connects a new agent to one vault. It is the token inside the vault's connect command. A vault has one standing token, and any number of one-use tokens that stop after connecting one agent.

Use these endpoints to make, inspect and turn off both kinds. A token is shown once, when it is made.

## Related guides

* [Quickstart: connect an agent and make a first call](/docs/quickstart.md)
* [Agent quickstart: let an agent connect itself](/docs/agent-quickstart.md)
* [Lock down Docker and Linux agents](/docs/guides/agent-lockdown.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Read a vault's connect token](/docs/api-reference/connect-tokens/read-a-vaults-connect-token.md) | `GET /v2/vaults/{id}/connect-token` | Whether the vault's connect command works, when its token was made and when it last connected an agent. |
| [Make a vault's connect token](/docs/api-reference/connect-tokens/make-a-vaults-connect-token.md) | `POST /v2/vaults/{id}/connect-token` | Makes the vault's connect token and returns it once. |
| [Turn a vault's connect token off](/docs/api-reference/connect-tokens/turn-a-vaults-connect-token-off.md) | `DELETE /v2/vaults/{id}/connect-token` | Turns a vault's standing connect token off. |
| [List a vault's one-use connect tokens](/docs/api-reference/connect-tokens/list-a-vaults-one-use-connect-tokens.md) | `GET /v2/vaults/{id}/connect-tokens` | The vault's one-use connect tokens that still work: not used, not expired, not turned off. |
| [Make a one-use connect token](/docs/api-reference/connect-tokens/make-a-one-use-connect-token.md) | `POST /v2/vaults/{id}/connect-tokens` | Makes a connect token that connects one agent to this vault and then stops, and returns it once. |
| [Turn a one-use connect token off](/docs/api-reference/connect-tokens/turn-a-one-use-connect-token-off.md) | `DELETE /v2/vaults/{id}/connect-tokens/{tokenId}` | Turns a one-use connect token off at once. |

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