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

# Directory Tokens API: Tokens for Directory Sync

> Make, list and revoke the tokens an organization's directory uses to sync people and groups into OneCLI. OneCLI Cloud only.

A directory token lets the organization's directory sync people and groups into OneCLI. It is shown once, when it is made.

Use these endpoints to make, list and revoke tokens. They exist on OneCLI Cloud only, and making one needs a plan with directory sync.

## Related guides

* [Editions: what OneCLI Cloud adds](/docs/api-reference/editions.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [List directory tokens](/docs/api-reference/directory-tokens/list-directory-tokens.md) | `GET /v2/org/directory-tokens` | List the organization's live directory tokens with the OneCLI API, newest first. |
| [Make a directory token](/docs/api-reference/directory-tokens/make-a-directory-token.md) | `POST /v2/org/directory-tokens` | Makes a token for the organization's directory to sync with. |
| [Revoke a directory token](/docs/api-reference/directory-tokens/revoke-a-directory-token.md) | `DELETE /v2/org/directory-tokens/{id}` | Revokes a directory token at once with the OneCLI API. |

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