---
sidebar_position: 4
description: Get kanban stages and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get kanban stages
 Get kanban (My Plan) stages info



`Function GetKanbanStages(Val URL, Val EntityID = 0, Val AsAdmin = False, Val Token = "") Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | URL | --url | String | &#x2714; | URL of webhook or a Bitrix24 domain, when token used |
  | EntityID | --entityid | String, Number | &#x2716; | ID of kanban owner (group or user) |
  | AsAdmin | --admin | Boolean | &#x2716; | Allows you to get stages without checking permissions (for administrators) |
  | Token | --token | String | &#x2716; | Access token, when app auth method used |

  
  Returns:  Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API

:::tip
Method at API documentation: [task.stages.get](https://dev.1c-bitrix.ru/rest_help/tasks/task/kanban/task_stages_get.php)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";

    Result = OPI_Bitrix24.GetKanbanStages(URL, , True);

    URL   = "b24-ar17wx.bitrix24.by";
    Token = "6ad03969006e9f06006b12e400000001000...";

    Result = OPI_Bitrix24.GetKanbanStages(URL, , , Token);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint bitrix24 GetKanbanStages \
             --url "b24-ar17wx.bitrix24.by" \
             --token "***"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint bitrix24 GetKanbanStages ^
             --url "b24-ar17wx.bitrix24.by" ^
             --token "***"
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "result": {
  "142": {
   "ID": "142",
   "TITLE": "Новое имя стадии стадии",
   "SORT": "100",
   "COLOR": "000000",
   "SYSTEM_TYPE": "NEW",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null,
   "CAN_SORT_ITEMS": true
  },
  "20": {
   "ID": "20",
   "TITLE": "Новая стадия",
   "SORT": "200",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "24": {
   "ID": "24",
   "TITLE": "Название",
   "SORT": "300",
   "COLOR": "75d900",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "16": {
   "ID": "16",
   "TITLE": "Новая стадия",
   "SORT": "400",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "18": {
   "ID": "18",
   "TITLE": "Новая стадия 2",
   "SORT": "500",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "12": {
   "ID": "12",
   "TITLE": "Новая стадия",
   "SORT": "600",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "14": {
   "ID": "14",
   "TITLE": "Новая стадия 2",
   "SORT": "700",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "8": {
   "ID": "8",
   "TITLE": "Новая стадия",
   "SORT": "800",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "10": {
   "ID": "10",
   "TITLE": "Новая стадия 2",
   "SORT": "900",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "6": {
   "ID": "6",
   "TITLE": "Новая стадия",
   "SORT": "1000",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "3346": {
   "ID": "3346",
   "TITLE": "New stage",
   "SORT": "1100",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "3348": {
   "ID": "3348",
   "TITLE": "New stage 2",
   "SORT": "1200",
   "COLOR": "0026FF",
   "SYSTEM_TYPE": "",
   "ENTITY_ID": "1",
   "ENTITY_TYPE": "U",
   "ADDITIONAL_FILTER": [],
   "TO_UPDATE": [],
   "TO_UPDATE_ACCESS": null
  },
  "2836": {
   "ID": "2836",
   "TITLE": "Новая стадия",
...
```
