# humanresources.node.communication.list

URL: https://chugunov.pro/api-bitrix24/departments/node-communication/humanresources-node-communication-list/
Проверено на Битрикс24 REST API, обновлено 11.09.2026 (ревизия источника fb39d6c).
Источник: официальная документация Битрикс24 (bitrix-tools/b24-rest-docs, лицензия MIT, © Bitrix). Справочник независимый, официальной документацией не является.

Получить коммуникации отдела
Scope: `humanresources`
Кто может выполнять метод: пользователь с правом «Просмотр отделов» или «Просмотр команд»

## Описание

Метод относится к REST 3.0. Особенности вызова и формат ответа новой версии API описаны в [обзоре REST 3.0](https://chugunov.pro/api-bitrix24/rest-v3/).

Метод `humanresources.node.communication.list` возвращает чаты, каналы и коллабы, связанные с отделом или командой.

## Параметры

- `id` `integer` — обязательный. Идентификатор отдела или команды.
  Идентификатор можно получить методом [humanresources.node.list](https://chugunov.pro/api-bitrix24/departments/node/humanresources-node-list/)

## Ответ

HTTP-статус: 200

```json
{
    "result": {
        "channels": [
            {
                "avatar": "",
                "color": "#8474c8",
                "dialogId": "chat21",
                "hasAccess": true,
                "id": 21,
                "isExtranet": false,
                "originalNodeId": null,
                "subtitle": "Закрытый канал",
                "title": "Канал отдела",
                "type": "CHANNEL"
            }
        ],
        "channelsNoAccess": 0,
        "chats": [
            {
                "avatar": "",
                "color": "#1eb4aa",
                "dialogId": "chat22",
                "hasAccess": true,
                "id": 22,
                "isExtranet": false,
                "originalNodeId": null,
                "subtitle": "Закрытый чат",
                "title": "Чат отдела",
                "type": "CHAT"
            }
        ],
        "chatsNoAccess": 0,
        "collabs": [
            {
                "avatar": null,
                "dialogId": "chat23",
                "hasAccess": true,
                "id": 23,
                "originalNodeId": null,
                "subtitle": "Коллаба",
                "title": "Коллаба отдела",
                "type": "COLLAB"
            }
        ],
        "collabsNoAccess": 0
    },
    "time": {
        "start": 1780407000,
        "finish": 1780407000.104211,
        "duration": 0.10421109199523926,
        "processing": 0.08111310005187988,
        "date_start": "2026-06-02T16:30:00+03:00",
        "date_finish": "2026-06-02T16:30:00+03:00",
        "operating_reset_at": 1780407600,
        "operating": 0
    }
}
```

### Возвращаемые данные

- `result` `object`. Объект с данными ответа
- `chats[]` `array`. Массив чатов, связанных с отделом или командой. [Описание полей коммуникации](#communication)
- `chatsNoAccess` `integer`. Количество связанных чатов, недоступных текущему пользователю
- `channels[]` `array`. Массив каналов, связанных с отделом или командой. [Описание полей коммуникации](#communication)
- `channelsNoAccess` `integer`. Количество связанных каналов, недоступных текущему пользователю
- `collabs[]` `array`. Массив коллабов, связанных с отделом или командой. [Описание полей коммуникации](#communication)
- `collabsNoAccess` `integer`. Количество связанных коллабов, недоступных текущему пользователю
- `time` `time`. Информация о времени выполнения запроса

## Ошибки

HTTP-статус: 400

```json
{
    "error": {
        "code": "BITRIX_REST_V3_EXCEPTION_VALIDATION_REQUESTVALIDATIONEXCEPTION",
        "message": "Ошибка при валидации объекта запроса",
        "validation": [
            {
                "message": "Обязательное поле `id` не указано",
                "field": "id"
            }
        ]
    }
}
```

- `Поле` — **Описание ошибки**. **Как исправить**
- `id` — Обязательное поле `id` не указано. Передайте идентификатор отдела или команды

## Примеры запроса

### cURL (Webhook)

```bash
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":15}' \
https://**put_your_bitrix24_address**/rest/api/**put_your_user_id_here**/**put_your_webhook_here**/humanresources.node.communication.list
```

### cURL (OAuth)

```bash
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":15,"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/api/humanresources.node.communication.list
```

### JS (TS)

```ts
// This snippet is an ES module: top-level await requires type="module" or a bundler.
// $b24 is an already-initialized SDK instance (see the SDK "Get started" guide).
import { Text } from '@bitrix24/b24jssdk'
import type { B24Frame } from '@bitrix24/b24jssdk'

declare const $b24: B24Frame

type CommunicationItem = {
  avatar: string | null
  color?: string
  dialogId: string
  hasAccess: boolean
  id: number
  isExtranet?: boolean
  originalNodeId: number | null
  subtitle: string
  title: string
  type: string
}

// Shape of the payload returned in result (match the "response handling" section of the page)
type NodeCommunicationListResult = {
  channels: CommunicationItem[]
  channelsNoAccess: number
  chats: CommunicationItem[]
  chatsNoAccess: number
  collabs: CommunicationItem[]
  collabsNoAccess: number
}

try {
  const response = await $b24.actions.v3.call.make<NodeCommunicationListResult>({
    method: 'humanresources.node.communication.list',
    params: {
      id: 15,
    },
    requestId: Text.getUuidRfc4122()
  })

  // The payload is available only on a successful response
  if (!response.isSuccess) {
    console.error(response.getErrorMessages().join('; '))
  } else {
    const result = response.getData()!.result
    console.info(
      'Channels:', result.channels,
      'Chats:', result.chats,
      'Collabs:', result.collabs
    )
  }
} catch (error) {
  // Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
  console.error(error)
}
```

### JS (UMD)

```html
<!-- Load the SDK (UMD build); it is exposed as the global B24Js -->
<script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
<script>
  async function fetchNodeCommunications() {
    try {
      // Initialize the SDK inside a Bitrix24 frame
      const $b24 = await B24Js.initializeB24Frame()

      const response = await $b24.actions.v3.call.make({
        method: 'humanresources.node.communication.list',
        params: {
          id: 15,
        },
        requestId: B24Js.Text.getUuidRfc4122()
      })

      // The payload is available only on a successful response
      if (!response.isSuccess) {
        console.error(response.getErrorMessages().join('; '))
        return
      }

      const result = response.getData().result
      console.info(
        'Channels:', result.channels,
        'Chats:', result.chats,
        'Collabs:', result.collabs
      )
    } catch (error) {
      // Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
      console.error(error)
    }
  }

  document.addEventListener('DOMContentLoaded', fetchNodeCommunications)
</script>
```

### Python

```python
from b24pysdk.errors import BitrixAPIError, BitrixSDKException

try:
    bitrix_response = client.humanresources.node.communication.list(
        bitrix_id=15,
    ).response
    result = bitrix_response.result
    print(result)
except BitrixAPIError as error:
    print(
        "Ошибка Bitrix API",
        f"error: {error.error}",
        f"error_description: {error.error_description}",
        sep="\n",
    )
except BitrixSDKException as error:
    print(f"Ошибка Bitrix SDK: {error.message}")
except Exception as error:
    print(f"Непредвиденная ошибка: {error}")
```

### PHP

```php
try {
    $response = $b24Service
        ->core
        ->call(
            'humanresources.node.communication.list',
            [
                'id' => 15,
            ]
        );

    $result = $response
        ->getResponseData()
        ->getResult();

    echo 'Success: ' . print_r($result, true);

} catch (Throwable $e) {
    error_log($e->getMessage());
    echo 'Error: ' . $e->getMessage();
}
```

### BX24.js

```js
BX24.callMethod(
    'humanresources.node.communication.list',
    {
        id: 15
    },
    function(result){
        console.info(result.data());
        console.log(result);
    }
);
```

### PHP CRest

```php
require_once('crest.php');

$result = CRest::call(
    'humanresources.node.communication.list',
    [
        'id' => 15,
    ]
);

echo '<PRE>';
print_r($result);
echo '</PRE>';
```

### Go

```go
// client и ctx уже созданы — см. раздел «SDK для Go»
res, err := client.Core().Call(ctx, "humanresources.node.communication.list", b24.Params{
	"id": 15,
}, b24.WithIdempotent())
if err != nil {
	return fmt.Errorf("humanresources.node.communication.list: %w", err)
}

var item struct {
	ChannelsNoAccess int `json:"channelsNoAccess"`
	ChatsNoAccess    int `json:"chatsNoAccess"`
	CollabsNoAccess  int `json:"collabsNoAccess"`
}
if err := json.Unmarshal(res.Result, &item); err != nil {
	return fmt.Errorf("разбор ответа: %w", err)
}
fmt.Println(item.ChannelsNoAccess, item.ChatsNoAccess)
```

Оригинал в официальной документации: https://apidocs.bitrix24.ru/api-reference/departments/node-communication/humanresources-node-communication-list.html
