Xpersona
B

Bitrix24 REST API

CLAWHUB · Unverified

Work with Bitrix24 (Битрикс24) via REST API and MCP documentation server. Triggers on: CRM — "сделки", "контакты", "лиды", "воронка", "клиенты", "deals", "co...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172b6r64hct4ba0ssswjb4fxs83n9fp:bitrix24-rest
  1. Install using `clawhub skill install s172b6r64hct4ba0ssswjb4fxs83n9fp:bitrix24-rest` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/bitrix24/bitrix24-rest before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-bitrix24-bitrix24-rest/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

156,285 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: bitrix24-rest
description: >
  Work with Bitrix24 (Битрикс24) via REST API and MCP documentation server. Triggers on:
  CRM — "сделки", "контакты", "лиды", "воронка", "клиенты", "deals", "contacts", "leads", "pipeline";
  Tasks — "задачи", "мои задачи", "просроченные", "создай задачу", "tasks", "overdue", "to-do";
  Calendar — "расписание", "встречи", "календарь", "schedule", "meetings", "events";
  Chat — "чаты", "сообщения", "уведомления", "написать", "notifications", "messages";
  Channels — "каналы", "канал", "объявления", "подписчики", "channels", "announcements", "subscribers";
  Open Lines — "открытые линии", "поддержка", "обращения", "клиентские чаты", "операторы",
  "омниканал", "виджет чата", "open lines", "support", "customer chat", "helpdesk", "operator";
  Projects — "проекты", "рабочие группы", "projects", "workgroups";
  Time — "рабочее время", "кто на работе", "учёт времени", "timeman", "work status";
  Drive — "файлы", "документы", "диск", "files", "documents", "drive";
  Structure — "сотрудники", "отделы", "структура", "подчинённые", "departments", "employees", "org structure";
  Feed — "лента", "новости", "объявления", "feed", "announcements";
  Scenarios — "утренний брифинг", "morning briefing", "еженедельный отчёт", "weekly report",
  "статус команды", "что у меня сегодня", "итоги дня", "план на день", "воронка продаж",
  "расскажи про клиента", "подготовь к встрече", "как работает отдел".
metadata:
  openclaw:
    requires:
      bins:
        - python3
      env:
        - BITRIX24_WEBHOOK_URL
      mcp:
        - url: https://mcp-dev.bitrix24.tech/mcp
          transport: streamable_http
          tools:
            - bitrix-search
            - bitrix-app-development-doc-details
            - bitrix-method-details
            - bitrix-article-details
            - bitrix-event-details
    primaryEnv: BITRIX24_WEBHOOK_URL
    emoji: "B24"
    homepage: https://github.com/bitrix24/bitrix24-skill
    aliases:
      - Bitrix24
      - bitrix24
      - Bitrix
      - bitrix
      - b24
      - Битрикс24
      - битрикс24
      - Битрикс
      - битрикс
    tags:
      - bitrix24
      - bitrix
      - b24
      - crm
      - tasks
      - calendar
      - drive
      - chat
      - messenger
      - im
      - webhook
      - oauth
      - mcp
      - Битрикс24
      - CRM
      - задачи
      - чат
      - проекты
      - группы
      - лента
      - рабочее время
      - timeman
      - socialnetwork
      - feed
      - projects
      - workgroups
      - org structure
      - smart process
      - смарт-процесс
      - products
      - товары
      - каталог
      - quotes
      - предложения
      - invoices
      - счета
      - open lines
      - openlines
      - imopenlines
      - открытые линии
      - поддержка
      - обращения
      - операторы
      - омниканал
      - helpdesk
      - landing
      - sites
      - сайты
      - лендинги
---

# Bitrix24

## Security Model

- The webhook URL is read fro

_meta.json

{
  "ownerId": "kn7fk2srrkfktcsf98mwfze95d83n7hj",
  "slug": "bitrix24-rest",
  "version": "1.2.1",
  "publishedAt": 1775030198186
}

references/access.md

# Access and Auth

## Webhook Setup

The webhook URL is provided via `BITRIX24_WEBHOOK_URL` environment variable. OpenClaw users configure it as `apiKey` in `openclaw.json`.

To create a webhook:

1. In Bitrix24 open `Developer resources -> Other -> Inbound webhook`.
2. Create a webhook and copy its URL.
3. Provide it to your administrator to configure in the agent's settings.

Expected format:

```text
https://your-portal.bitrix24.ru/rest/<user_id>/<webhook>/
```

## Agent Setup Behavior

If a REST call fails because the webhook is not configured:

1. Tell the user once: "Webhook не настроен. Попросите администратора указать его в настройках."
2. Run `scripts/check_webhook.py --json` for diagnostics if the webhook IS configured but calls fail.

Mask the webhook secret in user-facing output.

## Permissions

Grant the permission groups that match the methods you will call.

Recommended full-coverage set:

- CRM
- Tasks
- Calendar
- Disk or Drive
- IM or Chat
- User and department access

## `CLIENT_ID` For Bot Integrations

For `imbot` integrations, Bitrix24 bot registration requires `CLIENT_ID`.

- Provide `CLIENT_ID` when registering the bot
- Persist it as part of the bot credentials
- Pass the same `CLIENT_ID` into all later `imbot.*` calls
- Treat `CLIENT_ID` as a secret

## Official MCP Docs Endpoint

```text
https://mcp-dev.bitrix24.tech/mcp
```

Tools exposed by the server:

- `bitrix-search`
- `bitrix-app-development-doc-details`
- `bitrix-method-details`
- `bitrix-article-details`
- `bitrix-event-details`

## When To Use OAuth Instead Of A Webhook

Use a webhook when:

- you are connecting one portal quickly
- the integration is admin-managed
- you want the shortest setup path

Use OAuth when:

- your service lives outside Bitrix24
- users connect their own portals to your service
- you need renewable tokens instead of a fixed webhook secret

Key official docs:

- Full OAuth: `https://apidocs.bitrix24.ru/settings/oauth/index.html`
- REST call overview: `https://apidocs.bitrix24.ru/sdk/bx24-js-sdk/how-to-call-rest-methods/index.html`
- Install callback: `https://apidocs.bitrix24.ru/settings/app-installation/mass-market-apps/installation-callback.html`

## OAuth Facts From MCP Docs

- Authorization server: `https://oauth.bitrix24.tech/`
- Authorization starts at `https://portal.bitrix24.com/oauth/authorize/`
- Temporary authorization `code` is valid for 30 seconds
- Token exchange at `https://oauth.bitrix24.tech/oauth/token/`
- Returns `access_token`, `refresh_token`, `client_endpoint`, `server_endpoint`, `scope`

Useful MCP titles for auth topics:

- `Полный протокол авторизации OAuth 2.0`
- `Упрощенный вариант получения токенов OAuth 2.0`
- `Вызов методов REST`
- `Callback установки`

## Install Callback For UI-Less Apps

If you build a local or UI-less app, Bitrix24 can POST OAuth credentials to an install callback URL. That flow is documented in `Callback установки`.

- Save the received `access_token` and `refresh_token`
- Refresh ac

references/calendar.md

# Calendar

Use this file for personal calendars, group calendars, meetings, sections, recurrence, and availability checks.

## Core Methods

- `calendar.event.get` — list events in a date range (requires `type` and `ownerId`)
- `calendar.event.get.nearest` — list upcoming events (simplest way to get schedule)
- `calendar.event.getbyid` — get one event by ID
- `calendar.event.add` — create event
- `calendar.event.update` — update event
- `calendar.event.delete` — delete event
- `calendar.section.get` — list calendars (sections)
- `calendar.section.add` — create calendar
- `calendar.accessibility.get` — check user availability
- `calendar.meeting.status.get` — get current user's meeting participation status
- `calendar.resource.list` — list calendar resources

There is NO `calendar.get` or `calendar.list` method. Always use the full method names above.

## Critical: Required Parameters

`calendar.event.get` requires two mandatory parameters:

- `type` — one of: `user`, `group`, `company_calendar`
- `ownerId` — user ID for `user` type, group ID for `group`, `0` for `company_calendar`

Without these, the call fails with `ERROR_METHOD_NOT_FOUND` or similar.

`from` and `to` use date format `YYYY-MM-DD` (not datetime). Defaults: `from` = 1 month ago, `to` = 3 months ahead.

## Common Use Cases

### Show schedule via batch (preferred — one HTTP call)

Combine calendar + tasks in one request:

```bash
python3 scripts/bitrix24_batch.py \
  --cmd 'events=calendar.event.get?type=user&ownerId=1&from=2026-03-11&to=2026-03-11' \
  --cmd 'tasks=tasks.task.list?filter[RESPONSIBLE_ID]=1&filter[>=DEADLINE]=2026-03-11T00:00:00&filter[<=DEADLINE]=2026-03-11T23:59:59&select[]=ID&select[]=TITLE&select[]=DEADLINE&select[]=STATUS' \
  --json
```

### Show user's schedule for a specific day

Get user ID from cached config or `user.current`, then query events:

```bash
python3 scripts/bitrix24_call.py user.current --json
python3 scripts/bitrix24_call.py calendar.event.get \
  --param 'type=user' \
  --param 'ownerId=1' \
  --param 'from=2026-03-10' \
  --param 'to=2026-03-10' \
  --json
```

### Show upcoming events (easiest for "what's on my schedule")

```bash
python3 scripts/bitrix24_call.py calendar.event.get.nearest \
  --param 'type=user' \
  --param 'ownerId=1' \
  --param 'days=7' \
  --param 'forCurrentUser=true' \
  --json
```

### Check availability before scheduling

```bash
python3 scripts/bitrix24_call.py calendar.accessibility.get \
  --param 'users[]=1' \
  --param 'users[]=2' \
  --param 'from=2026-03-10' \
  --param 'to=2026-03-11' \
  --json
```

### Create an event

```bash
python3 scripts/bitrix24_call.py calendar.event.add \
  --param 'type=user' \
  --param 'ownerId=1' \
  --param 'name=Team Meeting' \
  --param 'from=2026-03-10T10:00:00' \
  --param 'to=2026-03-10T11:00:00' \
  --json
```

## Working Rules

- Always pass `type` and `ownerId` for `calendar.event.get`.
- Use `calendar.event.get.nearest` for "show my schedule" — it needs fewer parame

references/channels.md

# Channels (Каналы)

Use this file for Bitrix24 channels — broadcast-style chats where only owners/managers post and subscribers read.

Channels are a special chat type (`type: openChannel`, `ENTITY_TYPE: ANNOUNCEMENT`).
They use standard `im.*` methods — there is no separate `im.channel.*` API.

## How Channels Differ From Chats

| Feature | Chat | Channel |
|---------|------|---------|
| Who can post | All members | Only owner + managers |
| `type` in API | `chat` / `open` | `openChannel` |
| Create with | `TYPE=CHAT` or `TYPE=OPEN` | `ENTITY_TYPE=ANNOUNCEMENT` |
| List only these | `SKIP_CHAT=N` | `ONLY_CHANNEL=Y` |
| Join | By invite | Self-subscribe (open) or invite |

## Core Methods

All use the same `im.*` family:

Create & manage:

- `im.chat.add` — create channel (with `ENTITY_TYPE=ANNOUNCEMENT`)
- `im.chat.updateTitle` — rename channel
- `im.chat.setOwner` — transfer ownership
- `im.chat.mute` — mute/unmute notifications

List & find:

- `im.recent.list` — list subscribed channels (`ONLY_CHANNEL=Y`)
- `im.dialog.get` — get channel info (returns `type: openChannel`)
- `im.counters.get` — unread counters (includes channel counters)

Messages:

- `im.message.add` — post to channel (owner/managers only)
- `im.dialog.messages.get` — read channel history
- `im.dialog.messages.search` — search messages in channel

Subscribers:

- `im.chat.user.add` — add subscribers
- `im.chat.user.delete` — remove subscribers
- `im.chat.user.list` — list subscribers
- `im.chat.leave` — unsubscribe (current user leaves)

Pin & hide:

- `im.recent.pin` — pin channel at top of list
- `im.recent.hide` — hide channel from recent list

## Common Use Cases

### Create a channel

```bash
python3 scripts/bitrix24_call.py im.chat.add \
  --param 'TYPE=OPEN' \
  --param 'ENTITY_TYPE=ANNOUNCEMENT' \
  --param 'TITLE=Company News' \
  --param 'DESCRIPTION=Official company announcements' \
  --param 'USERS[]=1' \
  --param 'USERS[]=2' \
  --param 'MESSAGE=Welcome to the channel!' \
  --json
```

Returns channel chat ID. Creator becomes the owner.

### List all channels

```bash
python3 scripts/bitrix24_call.py im.recent.list \
  --param 'ONLY_CHANNEL=Y' \
  --param 'LIMIT=50' \
  --json
```

Filter channels with `ONLY_CHANNEL=Y`. Each result contains `type: openChannel`.

### Post to a channel

```bash
python3 scripts/bitrix24_call.py im.message.add \
  --param 'DIALOG_ID=chat42' \
  --param 'MESSAGE=Important update: new office hours starting Monday' \
  --json
```

Only the channel owner and managers can post. Regular subscribers get `ACCESS_ERROR`.

### Read channel messages

```bash
python3 scripts/bitrix24_call.py im.dialog.messages.get \
  --param 'DIALOG_ID=chat42' \
  --param 'LIMIT=20' \
  --json
```

### Get channel info

```bash
python3 scripts/bitrix24_call.py im.dialog.get \
  --param 'DIALOG_ID=chat42' \
  --json
```

Returns object with `type: openChannel`, owner, name, description, subscriber count.

### Add subscribers to channel

```bash
python3 scripts/

Sponsored

Ads related to Bitrix24 REST API and adjacent AI workflows.