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

> List accessible active stages from active Kanban boards in an inbox.

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

```json 200 OK theme={null}
{
  "data": [
    {
      "id": 10,
      "name": "New leads"
    },
    {
      "id": 20,
      "name": "Negotiation"
    },
    {
      "id": 30,
      "name": "Sales"
    }
  ]
}
```

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

```json 404 Not Found theme={null}
{
  "error": "inbox_id is invalid or inaccessible"
}
```

List active stages from active Kanban boards in an accessible inbox with Kanban enabled. Use each returned `id` as `stage_id` when [creating opportunities](https://docs.cria.chat/api-reference/crm/opportunities/create.md), [filtering opportunities](https://docs.cria.chat/api-reference/crm/opportunities/list.md), or [changing an opportunity's stage](https://docs.cria.chat/api-reference/crm/opportunities/change-stage.md).

## cURL example

Replace account ID `10`, inbox ID `25`, and `YOUR_API_ACCESS_TOKEN` in the request panel with your values. Use [Get active Kanbans](https://docs.cria.chat/api-reference/crm/kanban/active.md) to find an accessible inbox ID.

The command uses Bash syntax; `--include` prints the HTTP status and headers with the response 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 and inbox. Users can access inboxes assigned to them; AgentBots can access their linked inboxes. A session login alone does not authorize this endpoint.

Agents do not receive stages configured with an enabled GIA campaign entry action. Administrators, SuperAdmins, and AgentBots can receive those stages within their accessible inboxes.

## Path parameters

| Field | Required | Description |
| - | - | - |
| `account_id` | Yes | CriaChat account ID. |
| `inbox_id` | Yes | Accessible inbox ID with Kanban enabled. |

This endpoint has no pagination or query filters. It returns all matching stages across all active boards in the inbox, ordered by board ID, stage position, and stage ID.

## Response models

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data` | array of objects | Active stages visible to the token in active boards. |
| `data[].id` | integer | Kanban column ID, used as `stage_id` in the opportunities APIs. |
| `data[].name` | string | Stage name. Names can repeat across boards; use IDs to identify stages. |

The response includes only stage IDs and names. It does not include board IDs, stage categories, or sale and loss requirements. See [Change opportunity stage](https://docs.cria.chat/api-reference/crm/opportunities/change-stage.md) for the payload required by sale and loss stages.

If the inbox is accessible and Kanban-enabled but has no visible active stages in active boards, 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 inbox that does not exist, is inaccessible, belongs to another account, or has Kanban disabled returns:

```json theme={null}
{
  "error": "inbox_id is invalid or inaccessible"
}
```

An account that does not exist returns the shared account-lookup error `Resource could not be found`.

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


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