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

# API tokens

> Cloud API endpoints for managing API tokens (PAK).

All endpoints require authentication with `admin` or `owner` role. See [Authentication](/cloud/authentication).

## List tokens

```bash theme={null}
GET /api/teams/:teamId/tokens
```

Returns all API tokens for the team. Token values are not included — only metadata like name, last used, and creation date.

## Create a token

```bash theme={null}
POST /api/teams/:teamId/tokens
```

<ParamField body="name" type="string" required>
  Descriptive name for the token (e.g., "Production Service")
</ParamField>

Returns the full token value starting with `obk_`. This is the only time the raw token is shown — store it securely.

## Delete a token

```bash theme={null}
DELETE /api/teams/:teamId/tokens/:tokenId
```

Immediately revokes the token. Any service using this token will lose access.
