bitrix-rest

bitrix-rest is a skill for Claude Code, Codex from bxmaximum/bitrix-framework-skills. It costs 53 tokens per session (586 once invoked), scanned A, original, MIT.

A guide to exposing a Bitrix module through REST, a way for other applications to call its functions over the web. It covers webhooks, OAuth, permissions, and the Bitrix settings involved.

In plain words
What is it for?
Use it when building APIs for apps, webhooks, or marketplace integrations from a custom Bitrix module.
Why use it?
It removes uncertainty about how to make module features available safely to external apps and integrations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building APIs for apps, webhooks, or marketplace integrations from a custom Bitrix module.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bxmaximum/bitrix-framework-skills/bitrix-rest
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bxmaximum/bitrix-framework-skills --skill bitrix-rest
Clone the repo
git clone --depth 1 https://github.com/bxmaximum/bitrix-framework-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bitrix-rest

README.md
[![agentmods](https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-rest/github.svg)](https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-rest)
Your own site
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-rest"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-rest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bitrix-rest

Your own site · 80×15
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-rest"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-rest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00586
Opus 5.5 $0.00021 $0.00234
Sonnet 5.5 $0.00011 $0.00117
Haiku 4.5 $0.00005 $0.00059

Measured 26d ago against content hash c953e35fb1cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bitrix-rest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bitrix-rest/SKILL.md · 29 lines

What it actually says

Серверный REST (rest)

Baseline: main 23.0+ · Verified: rest 26.1100.0, main 26.1000.0

Перед PHP-кодом один раз прочитай bitrix-framework. Здесь публикуют методы своего модуля. Клиентские вызовы (вебхуки, OAuth, batch, лимиты, ошибки): bitrix24-rest-api.

Вариант Регистрация Открыть
REST 3.0 (/rest/api/…, DTO, JSON) секция rest в .settings.php модуля rules/v3.md
Идемпотентность V3, динамические перечисления, отложенный batch атрибуты и очередь Messenger rules/v3-runtime.md
Engine-контроллер, общий с AJAX .settings.php → controllers.restIntegration.enabled rules/classic.md
Классическая карта методов, REST-события и встройки событие rest:OnRestServiceBuildDescription rules/classic.md

Новые API публикуй через REST 3.0 (Since rest 26.200*); на старом модуле используй Engine + restIntegration. Классическая карта нужна для событий, встроек и явных имён методов.

Общие правила

  • Подключи Loader::includeModule('rest'). Код размещай в установленном /local/modules/<vendor.module>/.
  • REST не использует CSRF: запрос авторизует токен приложения или вебхука. В каждом действии проверяй права пользователя на данные.
  • Scopes определяют разрешения приложения. Сохраняй стабильные имена и документируй их.
  • Возвращай REST-ошибки: исключения V3, addError контроллера, \Bitrix\Rest\RestException. Не выводи HTML и не вызывай die().
  • Для собственных методов наследуй документированные базовые контроллеры. Не наследуй внутренние сервисы и не реализуй Bitrix\Rest\Internal\*: их сигнатуры меняются даже в промежуточном релизе (26.650: Engine\Access, Api\User, IncomingWebhookRepositoryInterface). Используй композицию.
  • Блоки Landing и встройки через REST: bitrix-landing.
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · +1 lines · +2 tokens per session c953e35fb1cc
  2. 2mo ago Changed · -112 lines · -41 tokens per session c5e9fedbca03
  3. 3mo ago First seen · 140 lines · 92 tokens per session scan A 8f0f52c2b32b

Subscribe to this mod's changes

bitrix-rest is a skill published in the GitHub repository bxmaximum/bitrix-framework-skills (75 stars, last pushed 13d ago), licensed MIT. It adds 53 tokens to every session and 586 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bitrix-rest compared with skills from other repositories

bitrix-rest next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bitrix-restbxmaximum/bitrix-framework-skillsSkill7513d agoMITA53Claude Code, Codex
roblox-performanceTabooHarmony/roblox-brainSkill229todayMITA30Claude Code
roblox-toolingTabooHarmony/roblox-brainSkill229todayMITA47Claude Code
roblox-growthTabooHarmony/roblox-brainSkill229todayMITA32Claude Code
roblox-dataTabooHarmony/roblox-brainSkill229todayMITA30Claude Code
roblox-inputTabooHarmony/roblox-brainSkill229todayMITA33Claude Code
roblox-networkingTabooHarmony/roblox-brainSkill229todayMITA30Claude Code