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

# Get active Kanbans

> List accessible inboxes with Kanban enabled.

```bash cURL theme={null}
curl --request GET \
  --url "https://app.cria.chat/api/v1/accounts/10/crm/inboxes" \
  --header "api_access_token: YOUR_API_ACCESS_TOKEN" \
  --header "Accept: application/json" \
  --include
```

```json 200 OK theme={null}
{
  "data": [
    {
      "id": 25,
      "name": "Main sales"
    },
    {
      "id": 30,
      "name": "Service appointments"
    }
  ]
}
```

```json 401 Unauthorized theme={null}
{
  "error": "Invalid Access Token"
}
```

```json 404 Not Found theme={null}
{
  "error": "Resource could not be found"
}
```

List inboxes in the account that have Kanban enabled and are accessible to the token. Use the returned inbox IDs to [get stages](https://docs.cria.chat/api-reference/crm/kanban/stages.md), [list opportunities](https://docs.cria.chat/api-reference/crm/opportunities/list.md), or [create opportunities](https://docs.cria.chat/api-reference/crm/opportunities/create.md).

> [!NOTE]
>
> Each result represents an inbox with `kanban_enabled=true`, rather than an individual Kanban board. The returned `id` is an `inbox_id`, not a board ID. An inbox can contain multiple boards. This endpoint does not require the inbox to have an active board.

## cURL example

Replace account ID `10` and `YOUR_API_ACCESS_TOKEN` in the request panel with your values. The command uses Bash syntax; `--include` prints the HTTP status and response headers with the JSON body. No request body is required.

## Authentication

Send a user or AgentBot API access token:

```http theme={null}
api_access_token: YOUR_API_ACCESS_TOKEN
```

The token must have access to the account. Users receive inboxes assigned to them; AgentBots receive their linked inboxes. Both are limited to inboxes in the requested account with Kanban enabled. A session login alone does not authorize this endpoint.

## Path parameters

| Field | Required | Description |
| - | - | - |
| `account_id` | Yes | CriaChat account ID. |

This endpoint has no pagination or query filters. It returns all matching inboxes, sorted by case-insensitive name and then ID.

## Response models

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data` | array of objects | Accessible inboxes with Kanban enabled. |
| `data[].id` | integer | Inbox ID to use as `inbox_id` in other CRM endpoints. |
| `data[].name` | string | Inbox name. |

If no accessible inboxes have Kanban enabled, the response is successful with an empty array:

```json theme={null}
{
  "data": []
}
```

### 401 Unauthorized

An invalid API token returns:

```json theme={null}
{
  "error": "Invalid Access Token"
}
```

Missing API-token authentication, account access failures, and suspended accounts can also return `401`, with a different `error` message.

### 404 Not Found

An account that does not exist returns the shared account-lookup error. This route does not look up an individual inbox: inaccessible inboxes are excluded from the list, and an empty list does not return `404`.

```json theme={null}
{
  "error": "Resource could not be found"
}
```

| Field | Type | Description |
| - | - | - |
| `error` | string | Reason the request failed. Shared by the error models above. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.