[{"data":1,"prerenderedAt":2308},["ShallowReactive",2],{"navigation":3,"-docs-working-with-the-rest-api-hook":445,"-docs-working-with-the-rest-api-hook-description":2297},[4],{"title":5,"path":6,"stem":7,"children":8,"page":47},"Docs","\u002Fdocs","docs",[9,73,337],{"title":10,"path":11,"stem":12,"children":13,"restApiVersion":15,"category":15,"description":15,"badge":15},"Get Started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[14,17,48,58],{"title":10,"path":11,"stem":12,"restApiVersion":15,"category":15,"description":16,"badge":15},null,"Quick start guide for working with the SDK for Bitrix24 REST API",{"title":18,"path":19,"stem":20,"children":21,"page":47},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation",[22,27,32,37,42],{"title":23,"path":24,"stem":25,"restApiVersion":15,"category":15,"description":26,"badge":15},"Vue","\u002Fdocs\u002Fgetting-started\u002Finstallation\u002Fvue","docs\u002F1.getting-started\u002F2.installation\u002F1.vue","Guide for installing Bitrix24 JS SDK in Vue applications.",{"title":28,"path":29,"stem":30,"restApiVersion":15,"category":15,"description":31,"badge":15},"Nuxt","\u002Fdocs\u002Fgetting-started\u002Finstallation\u002Fnuxt","docs\u002F1.getting-started\u002F2.installation\u002F2.nuxt","Guide for installing Bitrix24 JS SDK in Nuxt applications.",{"title":33,"path":34,"stem":35,"restApiVersion":15,"category":15,"description":36,"badge":15},"React","\u002Fdocs\u002Fgetting-started\u002Finstallation\u002Freact","docs\u002F1.getting-started\u002F2.installation\u002F3.react","Guide for installing Bitrix24 JS SDK in React applications.",{"title":38,"path":39,"stem":40,"restApiVersion":15,"category":15,"description":41,"badge":15},"Node.js","\u002Fdocs\u002Fgetting-started\u002Finstallation\u002Fnodejs","docs\u002F1.getting-started\u002F2.installation\u002F4.nodejs","Guide for installing Bitrix24 JS SDK in Node.js applications.",{"title":43,"path":44,"stem":45,"restApiVersion":15,"category":15,"description":46,"badge":15},"UMD","\u002Fdocs\u002Fgetting-started\u002Finstallation\u002Fumd","docs\u002F1.getting-started\u002F2.installation\u002F5.umd","Guide for using UMD version Bitrix24 JS SDK in you applications.",false,{"title":49,"restApiVersion":15,"category":15,"description":15,"badge":15,"shadow":47,"path":50,"stem":51,"children":52,"page":47},"Migration","\u002Fdocs\u002Fgetting-started\u002Fmigration","docs\u002F1.getting-started\u002F3.migration",[53],{"title":54,"path":55,"stem":56,"restApiVersion":15,"category":15,"description":57,"badge":15},"v0 to v1","\u002Fdocs\u002Fgetting-started\u002Fmigration\u002Fv1","docs\u002F1.getting-started\u002F3.migration\u002F1.v1","A comprehensive guide to migrate your application from Bitrix24 JS SDK v0 to Bitrix24 JS SDK v1.",{"title":59,"restApiVersion":15,"category":15,"description":15,"badge":15,"path":60,"stem":61,"children":62,"page":47},"AI Tools","\u002Fdocs\u002Fgetting-started\u002Fai","docs\u002F1.getting-started\u002F7.ai",[63,68],{"title":64,"path":65,"stem":66,"restApiVersion":15,"category":15,"description":67,"badge":15},"Skills","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fskills","docs\u002F1.getting-started\u002F7.ai\u002F1.skills","Task-focused skill files for AI coding agents working with @bitrix24\u002Fb24jssdk.",{"title":69,"path":70,"stem":71,"restApiVersion":15,"category":15,"description":72,"badge":15},"LLMs.txt","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fllms-txt","docs\u002F1.getting-started\u002F7.ai\u002F2.llms-txt","How to get AI tools like Cursor, Windsurf, GitHub Copilot, ChatGPT, and Claude to understand Bitrix24 JS SDK methods, tools, and best practices.",{"title":74,"path":75,"stem":76,"children":77,"restApiVersion":15,"category":15,"description":15,"badge":15},"Working with the REST API","\u002Fdocs\u002Fworking-with-the-rest-api","docs\u002F2.working-with-the-rest-api\u002F0.index",[78,81,88,93,98,102,107,111,116,121,125,130,135,140,145,150,155,160,165,170,174,179,184,190,195,200,205,210,215,220,225,230,235,241,246,252,257,262,267,272,278,284,290,295,300,305,311,316,321,326,332],{"title":79,"path":75,"stem":76,"restApiVersion":15,"category":15,"description":80,"badge":15},"Introduction","Overview of SDK capabilities for working with Bitrix24 REST API",{"title":82,"path":83,"stem":84,"restApiVersion":85,"category":86,"description":87,"badge":15},"Call","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-rest-api-ver2","docs\u002F2.working-with-the-rest-api\u002F1.call-rest-api-ver2","rest-api-ver2","actions","A method for making Bitrix24 REST API version 2 calls.",{"title":82,"path":89,"stem":90,"restApiVersion":91,"category":86,"description":92,"badge":15},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-rest-api-ver3","docs\u002F2.working-with-the-rest-api\u002F1.call-rest-api-ver3","rest-api-ver3","Method for making Bitrix24 REST API version 3 calls.",{"title":94,"path":95,"stem":96,"restApiVersion":85,"category":86,"description":97,"badge":15},"CallList","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-list-rest-api-ver2","docs\u002F2.working-with-the-rest-api\u002F2.call-list-rest-api-ver2","Method for quickly retrieving all data from list methods of Bitrix24 REST API version 2.",{"title":94,"path":99,"stem":100,"restApiVersion":91,"category":86,"description":101,"badge":15},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-list-rest-api-ver3","docs\u002F2.working-with-the-rest-api\u002F2.call-list-rest-api-ver3","Method for quickly retrieving all data from list methods of Bitrix24 REST API version 3.",{"title":103,"path":104,"stem":105,"restApiVersion":85,"category":86,"description":106,"badge":15},"FetchList","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ffetch-list-rest-api-ver2","docs\u002F2.working-with-the-rest-api\u002F2.fetch-list-rest-api-ver2","Returns an AsyncGenerator that allows processing data from list methods of Bitrix24 REST API version 2 as it is received without loading the entire array into memory at once. This is especially useful when working with very large volumes of data.",{"title":103,"path":108,"stem":109,"restApiVersion":91,"category":86,"description":110,"badge":15},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Ffetch-list-rest-api-ver3","docs\u002F2.working-with-the-rest-api\u002F2.fetch-list-rest-api-ver3","Returns an AsyncGenerator that allows processing data from list methods of Bitrix24 REST API version 3 as it is received without loading the entire array into memory at once. This is especially useful when working with very large volumes of data.",{"title":112,"path":113,"stem":114,"restApiVersion":15,"category":112,"description":115,"badge":15},"B24Hook","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhook","docs\u002F2.working-with-the-rest-api\u002F20.hook","Server-side entry point for talking to the Bitrix24 REST API through an inbound webhook (permanent token).",{"title":117,"path":118,"stem":119,"restApiVersion":85,"category":86,"description":120,"badge":15},"Batch","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-rest-api-ver2","docs\u002F2.working-with-the-rest-api\u002F3.batch-rest-api-ver2","Method for executing batch requests to Bitrix24 REST API version 2. Allows executing up to 50 commands in a single API call.",{"title":117,"path":122,"stem":123,"restApiVersion":91,"category":86,"description":124,"badge":15},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-rest-api-ver3","docs\u002F2.working-with-the-rest-api\u002F3.batch-rest-api-ver3","Method for executing batch requests to Bitrix24 REST API version 3. Allows executing up to 50 commands in a single API call.",{"title":79,"path":126,"stem":127,"restApiVersion":15,"category":128,"description":129,"badge":15},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe","docs\u002F2.working-with-the-rest-api\u002F30.frame","B24Frame","Designed for managing Bitrix24 applications running inside a placement iframe. Inherits from AbstractB24 and exposes managers for authentication, parent-window messaging, sliders, dialogs, placements, and options.",{"title":131,"path":132,"stem":133,"restApiVersion":15,"category":128,"description":134,"badge":15},"Initialization","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-initialize-b24-frame","docs\u002F2.working-with-the-rest-api\u002F30.frame-initialize-b24-frame","Function is designed to initialize a B24Frame",{"title":136,"path":137,"stem":138,"restApiVersion":15,"category":128,"description":139,"badge":15},"Auth","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-auth","docs\u002F2.working-with-the-rest-api\u002F31.frame-auth","Designed for managing authentication in Bitrix24 applications. It handles authentication data received from the parent window and provides methods for updating and retrieving this data.",{"title":141,"path":142,"stem":143,"restApiVersion":15,"category":128,"description":144,"badge":15},"Dialog","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-dialog","docs\u002F2.working-with-the-rest-api\u002F31.frame-dialog","Wraps the BX24 system dialogs (user picker, access permission picker, CRM entity picker) so they can be opened from inside a Bitrix24 application iframe.",{"title":146,"path":147,"stem":148,"restApiVersion":15,"category":128,"description":149,"badge":15},"Options","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-options","docs\u002F2.working-with-the-rest-api\u002F31.frame-options","Used for managing application and user settings in the Bitrix24 application. It allows initializing data, getting, and setting options through messages to the parent window.",{"title":151,"path":152,"stem":153,"restApiVersion":15,"category":128,"description":154,"badge":15},"Parent","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-parent","docs\u002F2.working-with-the-rest-api\u002F31.frame-parent","Provides methods for managing the parent application window in Bitrix24, including resizing the window, managing scroll, initiating calls, and opening the messenger.",{"title":156,"path":157,"stem":158,"restApiVersion":15,"category":128,"description":159,"badge":15},"Placement","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-placement","docs\u002F2.working-with-the-rest-api\u002F31.frame-placement","Used for managing the placement of widgets in the Bitrix24 application.",{"title":161,"path":162,"stem":163,"restApiVersion":15,"category":128,"description":164,"badge":15},"Slider","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe-slider","docs\u002F2.working-with-the-rest-api\u002F31.frame-slider","Provides methods for working with sliders in the Bitrix24 application. It allows opening and closing sliders, as well as managing their content.",{"title":166,"path":167,"stem":168,"restApiVersion":85,"category":86,"description":169,"badge":15},"BatchByChunk","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-by-chunk-rest-api-ver2","docs\u002F2.working-with-the-rest-api\u002F4.batch-by-chunk-rest-api-ver2","Method for executing batch requests with automatic chunking for any number of commands. Automatically splits large command sets into batches of 50 and executes them sequentially. Use only arrays of tuples or arrays of objects.",{"title":166,"path":171,"stem":172,"restApiVersion":91,"category":86,"description":173,"badge":15},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-by-chunk-rest-api-ver3","docs\u002F2.working-with-the-rest-api\u002F4.batch-by-chunk-rest-api-ver3","Method for executing batch requests to Bitrix24 REST API version 3 with automatic chunking for any number of commands. Automatically splits large command sets into batches of 50 and executes them sequentially. Use only arrays of tuples or arrays of objects.",{"title":175,"path":176,"stem":177,"restApiVersion":15,"category":175,"description":178,"badge":15},"B24OAuth","\u002Fdocs\u002Fworking-with-the-rest-api\u002Foauth","docs\u002F2.working-with-the-rest-api\u002F40.oauth","Server-side entry point for talking to the Bitrix24 REST API with an OAuth 2.0 access token (and automatic refresh).",{"title":180,"path":181,"stem":182,"restApiVersion":15,"category":15,"description":183,"badge":15},"Choosing the method","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fchoosing-the-right-method","docs\u002F2.working-with-the-rest-api\u002F5.choosing-the-right-method","Decision guide for picking between Call, CallList, FetchList, Batch and BatchByChunk in REST API v2 and v3.",{"title":185,"path":186,"stem":187,"restApiVersion":15,"category":188,"description":189,"badge":15},"B24HelperManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper","docs\u002F2.working-with-the-rest-api\u002F50.helper","Helper","Aggregate manager that loads profile, app, payment, license, currency, and options data with one batched REST call, plus wires the Pull client.",{"title":191,"path":192,"stem":193,"restApiVersion":15,"category":188,"description":194,"badge":15},"useB24Helper","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-use-b24-helper","docs\u002F2.working-with-the-rest-api\u002F51.helper-use-b24-helper","Closure-based composable that owns a single B24HelperManager instance and exposes lifecycle helpers (init \u002F destroy \u002F Pull client glue).",{"title":196,"path":197,"stem":198,"restApiVersion":15,"category":188,"description":199,"badge":15},"ProfileManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-profile-manager","docs\u002F2.working-with-the-rest-api\u002F52.helper-profile-manager","Parsed `profile` REST response: id, name, last name, gender, photo, time zone, admin flag.",{"title":201,"path":202,"stem":203,"restApiVersion":15,"category":188,"description":204,"badge":15},"AppManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-app-manager","docs\u002F2.working-with-the-rest-api\u002F53.helper-app-manager","Parsed `app.info` REST response: app id, code, version, status, install flag.",{"title":206,"path":207,"stem":208,"restApiVersion":15,"category":188,"description":209,"badge":15},"PaymentManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-payment-manager","docs\u002F2.working-with-the-rest-api\u002F54.helper-payment-manager","Payment status of a Bitrix24 application — extracted from `app.info`.",{"title":211,"path":212,"stem":213,"restApiVersion":15,"category":188,"description":214,"badge":15},"LicenseManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-license-manager","docs\u002F2.working-with-the-rest-api\u002F55.helper-license-manager","Bitrix24 license info from `app.info` — and an automatic restriction-manager retune for the matching tariff plan.",{"title":216,"path":217,"stem":218,"restApiVersion":15,"category":188,"description":219,"badge":15},"CurrencyManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-currency-manager","docs\u002F2.working-with-the-rest-api\u002F56.helper-currency-manager","Currency catalogue cached in memory — base currency, per-currency formatters, and number-to-string formatter.",{"title":221,"path":222,"stem":223,"restApiVersion":15,"category":188,"description":224,"badge":15},"OptionsManager","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fhelper-options-manager","docs\u002F2.working-with-the-rest-api\u002F57.helper-options-manager","Typed access to `app.option.get` \u002F `user.option.get`, plus a save() that batches `*.option.set` with an optional Pull notification.",{"title":226,"path":227,"stem":228,"restApiVersion":15,"category":15,"description":229,"badge":15},"Errors","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ferrors","docs\u002F2.working-with-the-rest-api\u002F6.errors","Reference for SdkError and AjaxError codes raised by the SDK, plus the Bitrix24 REST error codes that surface through them.",{"title":231,"path":232,"stem":233,"restApiVersion":15,"category":231,"description":234,"badge":15},"Pull","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fpull","docs\u002F2.working-with-the-rest-api\u002F60.pull","Real-time message stream from Bitrix24 to your application — WebSocket primary, long-polling fallback. Frame-only.",{"title":236,"path":237,"stem":238,"restApiVersion":15,"category":239,"description":240,"badge":15},"Logger","\u002Fdocs\u002Fworking-with-the-rest-api\u002Flogger","docs\u002F2.working-with-the-rest-api\u002F66.logger","logger","Logger inspired by PHP Monolog, provides a structured logging system with support for channels, handlers, processors, and formatters. Implementation follows PSR-3 principles and the chain of responsibility pattern.",{"title":242,"path":243,"stem":244,"restApiVersion":15,"category":239,"description":245,"badge":15},"Telegram","\u002Fdocs\u002Fworking-with-the-rest-api\u002Flogger-telegram","docs\u002F2.working-with-the-rest-api\u002F66.logger-telegram","Sending logs to Telegram",{"title":247,"path":248,"stem":249,"restApiVersion":15,"category":250,"description":251,"badge":15},"AjaxResult","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcore-ajax-result","docs\u002F2.working-with-the-rest-api\u002F70.core-ajax-result","Core","Specialised Result returned by every REST helper. Provides `isMore() \u002F getNext() \u002F getTotal() \u002F getStatus()` for paged responses, and immutable data.",{"title":253,"path":254,"stem":255,"restApiVersion":15,"category":250,"description":256,"badge":15},"Http","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcore-http","docs\u002F2.working-with-the-rest-api\u002F70.core-http","Low-level transport interface returned by `b24.getHttpClient(version)`. Direct access to the axios-based clients, restriction params, statistics, and reset.",{"title":258,"path":259,"stem":260,"restApiVersion":15,"category":250,"description":261,"badge":15},"B24LangList","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcore-lang-list","docs\u002F2.working-with-the-rest-api\u002F70.core-lang-list","Enum of Bitrix24 cloud interface languages plus the BCP-47 locale map.",{"title":263,"path":264,"stem":265,"restApiVersion":15,"category":250,"description":266,"badge":15},"RequestIdGenerator","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcore-request-id-generator","docs\u002F2.working-with-the-rest-api\u002F70.core-request-id-generator","Default `IRequestIdGenerator` implementation. Generates UUID v7 request ids and exposes the header \u002F query parameter names used by the SDK.",{"title":268,"path":269,"stem":270,"restApiVersion":15,"category":250,"description":271,"badge":15},"Result","\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcore-result","docs\u002F2.working-with-the-rest-api\u002F70.core-result","Generic operation result with success flag, data, and an error map. Analogue of \\\\Bitrix\\\\Main\\\\Result from the Bitrix Framework.",{"title":273,"path":274,"stem":275,"restApiVersion":15,"category":276,"description":277,"badge":15},"Limiters","\u002Fdocs\u002Fworking-with-the-rest-api\u002Flimiters","docs\u002F2.working-with-the-rest-api\u002F77.limiters","limiters","The restrictions system provides a comprehensive mechanism for managing request frequency, operation execution time, and adaptive delays.",{"title":279,"path":280,"stem":281,"restApiVersion":15,"category":282,"description":283,"badge":15},"Logging & Redaction","\u002Fdocs\u002Fworking-with-the-rest-api\u002Flogging","docs\u002F2.working-with-the-rest-api\u002F78.logging","logging","What the SDK redacts automatically before any request information enters the logger or an AjaxError, what it does not redact, and how to wire a custom logger via setLogger(...) without re-introducing credential leaks.",{"title":285,"path":286,"stem":287,"restApiVersion":15,"category":288,"description":289,"badge":15},"Browser","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-browser","docs\u002F2.working-with-the-rest-api\u002F80.tools-browser","Tools","Cheap user-agent \u002F platform \u002F capability detector. Useful for runtime branches in front-end code.",{"title":291,"path":292,"stem":293,"restApiVersion":15,"category":288,"description":294,"badge":15},"Text","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-text","docs\u002F2.working-with-the-rest-api\u002F80.tools-text","Text and date utilities — UUID v7, encode \u002F decode HTML entities, type conversions, case helpers, Luxon-backed `toDateTime` \u002F `toB24Format`, query-string builder.",{"title":296,"path":297,"stem":298,"restApiVersion":15,"category":288,"description":299,"badge":15},"Type","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-type","docs\u002F2.working-with-the-rest-api\u002F80.tools-type","Runtime type guards — strings, numbers, plain objects, arrays, DOM nodes, Blobs, FormData, JSON-RPC message shapes.",{"title":301,"path":302,"stem":303,"restApiVersion":15,"category":288,"description":304,"badge":15},"useFormatter","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-use-formatters","docs\u002F2.working-with-the-rest-api\u002F80.tools-use-formatters","Composable that returns shared `FormatterNumbers` and `FormatterIban` instances pre-configured with country specifications.",{"title":306,"path":307,"stem":308,"restApiVersion":15,"category":309,"description":310,"badge":15},"IResult","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftypes-iresult","docs\u002F2.working-with-the-rest-api\u002F90.types-iresult","Types","Generic operation-result interface. Implemented by `Result\u003CT>` and (transitively) by `AjaxResult\u003CT>`.",{"title":312,"path":313,"stem":314,"restApiVersion":15,"category":309,"description":315,"badge":15},"TypeB24","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftypes-type-b24","docs\u002F2.working-with-the-rest-api\u002F90.types-type-b24","Public contract implemented by every entry-point class (B24Frame, B24Hook, B24OAuth). Single source of truth for the SDK surface.",{"title":317,"path":318,"stem":319,"restApiVersion":15,"category":250,"description":320,"badge":15},"Telemetry","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftelemetry","docs\u002F2.working-with-the-rest-api\u002F95.telemetry","Request id, SDK version, and SDK type query parameters added to every Bitrix24 REST call.",{"title":322,"path":323,"stem":324,"restApiVersion":15,"category":250,"description":325,"badge":15},"Error Codes","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ferror-codes","docs\u002F2.working-with-the-rest-api\u002F96.error-codes","Catalogue of error codes the SDK recognises — split into \"hard\" (thrown) and \"soft\" (returned as AjaxError inside AjaxResult).",{"title":327,"path":328,"stem":329,"restApiVersion":15,"category":330,"description":331,"badge":15},"HealthCheck","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-health-check","docs\u002F2.working-with-the-rest-api\u002Ftools-health-check","tools","Method for checking the availability of Bitrix24 REST API. Performs a simple request to the REST API to verify service health.",{"title":333,"path":334,"stem":335,"restApiVersion":15,"category":330,"description":336,"badge":15},"Ping","\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-ping","docs\u002F2.working-with-the-rest-api\u002Ftools-ping","Method for measuring Bitrix24 REST API response speed. Performs a test request and returns response time in milliseconds.",{"title":338,"path":339,"stem":340,"children":341,"restApiVersion":15,"category":15,"description":15,"badge":15},"Examples","\u002Fdocs\u002Fexamples","docs\u002F99.examples\u002F0.index",[342,344,350,355,360,365,370,375,380,385,390,395,400,405,410,415,420,425,430,435,440],{"title":79,"path":339,"stem":340,"restApiVersion":15,"category":15,"description":343,"badge":15},"Recipes that pair the SDK with realistic scenarios — CRM analytics, mass messaging, AI assistants, OAuth installs, and more. Each recipe is a single, copy-paste-friendly file.",{"title":345,"path":346,"stem":347,"restApiVersion":15,"category":348,"description":349,"badge":15},"CRM analytics","\u002Fdocs\u002Fexamples\u002Fcrm-analytics","docs\u002F99.examples\u002F1.crm-analytics","examples","Stream all deals via actions.v2.fetchList.make, group by stage, print a funnel report (counts, conversion %, avg ticket, win rate).",{"title":351,"path":352,"stem":353,"restApiVersion":15,"category":348,"description":354,"badge":15},"Deals → CSV","\u002Fdocs\u002Fexamples\u002Fdashboard-deals-csv","docs\u002F99.examples\u002F1.dashboard-deals-csv","Stream every CRM deal that matches a date filter into a CSV file using a webhook and FetchListV2.",{"title":356,"path":357,"stem":358,"restApiVersion":15,"category":15,"description":359,"badge":15},"Entity List","\u002Fdocs\u002Fexamples\u002Fentity-list","docs\u002F99.examples\u002F10.entity-list","Render a paged Bitrix24 entity list with B24UI components and the SDK callList action.",{"title":361,"path":362,"stem":363,"restApiVersion":15,"category":348,"description":364,"badge":15},"Error handling","\u002Fdocs\u002Fexamples\u002Ferror-handling","docs\u002F99.examples\u002F10.error-handling","Demonstrates the four error layers (SdkError \u002F AjaxError \u002F network \u002F soft) and the hardErrorCodes \u002F softErrorCodes \u002F retryOnNetworkError knobs on the restriction manager.",{"title":366,"path":367,"stem":368,"restApiVersion":15,"category":348,"description":369,"badge":15},"Event registration","\u002Fdocs\u002Fexamples\u002Fevent-registration","docs\u002F99.examples\u002F11.event-registration","CLI tool — list, bind, and unbind Bitrix24 outbound webhook events via event.get \u002F event.bind \u002F event.unbind. Pairs with the webhook handler recipe.",{"title":371,"path":372,"stem":373,"restApiVersion":15,"category":348,"description":374,"badge":15},"OAuth install","\u002Fdocs\u002Fexamples\u002Foauth-install","docs\u002F99.examples\u002F12.oauth-install","Express server that handles ONAPPINSTALL \u002F ONAPPUPDATE \u002F ONAPPUNINSTALL events for a Bitrix24 marketplace app, persists tokens per portal, and builds a B24OAuth client on demand with a refresh callback wired to storage.",{"title":376,"path":377,"stem":378,"restApiVersion":15,"category":348,"description":379,"badge":15},"Frame app skeleton","\u002Fdocs\u002Fexamples\u002Fframe-app-skeleton","docs\u002F99.examples\u002F2.frame-app-skeleton","Minimum viable Bitrix24 iframe app: init handshake, set title, persist app state, open a slider, close cleanly.",{"title":381,"path":382,"stem":383,"restApiVersion":15,"category":348,"description":384,"badge":15},"Mass messaging","\u002Fdocs\u002Fexamples\u002Fmass-messaging","docs\u002F99.examples\u002F2.mass-messaging","Filter contacts in CRM, personalise a template, send IM notifications to assigned managers.",{"title":386,"path":387,"stem":388,"restApiVersion":15,"category":15,"description":389,"badge":15},"Installation Wizard","\u002Fdocs\u002Fexamples\u002Fapp-installation-wizard","docs\u002F99.examples\u002F20.app-installation-wizard","Multi-step install flow that creates user fields, registers placements, finalises the installation, and celebrates with confetti.",{"title":391,"path":392,"stem":393,"restApiVersion":15,"category":348,"description":394,"badge":15},"Task automation","\u002Fdocs\u002Fexamples\u002Ftask-automation","docs\u002F99.examples\u002F3.task-automation","Poll deal stages every 60 s. When a watched transition fires, create a task with description, deadline and priority.",{"title":396,"path":397,"stem":398,"restApiVersion":15,"category":348,"description":399,"badge":15},"Webhook CLI","\u002Fdocs\u002Fexamples\u002Fwebhook-cli-node","docs\u002F99.examples\u002F3.webhook-cli-node","A 30-line Node script that authenticates against a Bitrix24 portal via inbound webhook and prints the calling user — useful as the first thing you run after creating a webhook.",{"title":401,"path":402,"stem":403,"restApiVersion":15,"category":15,"description":404,"badge":15},"Node + Hook Export","\u002Fdocs\u002Fexamples\u002Fnode-hook-company-export","docs\u002F99.examples\u002F30.node-hook-company-export","Export Bitrix24 companies into a CSV file from a pure Node.js script using B24Hook.",{"title":406,"path":407,"stem":408,"restApiVersion":15,"category":348,"description":409,"badge":15},"Bulk update","\u002Fdocs\u002Fexamples\u002Fbulk-update-deals","docs\u002F99.examples\u002F4.bulk-update-deals","Migrate thousands of CRM deals to a new stage using BatchByChunkV2 — automatic chunking, partial-error handling, and a single progress line.",{"title":411,"path":412,"stem":413,"restApiVersion":15,"category":348,"description":414,"badge":15},"ERP sync","\u002Fdocs\u002Fexamples\u002Ferp-sync","docs\u002F99.examples\u002F4.erp-sync","Two-way contact sync between Bitrix24 and an external ERP. Match by INN (primary) or email (fallback). Cron every hour.",{"title":416,"path":417,"stem":418,"restApiVersion":15,"category":348,"description":419,"badge":15},"Disk files","\u002Fdocs\u002Fexamples\u002Fdisk-files","docs\u002F99.examples\u002F5.disk-files","List storages and folder children, create subfolders, inspect files. File upload (multipart) is intentionally out of scope.",{"title":421,"path":422,"stem":423,"restApiVersion":15,"category":348,"description":424,"badge":15},"Pull subscribe","\u002Fdocs\u002Fexamples\u002Fpull-subscribe-frame","docs\u002F99.examples\u002F5.pull-subscribe-frame","Open a live channel from a Bitrix24 frame app and react to push events using useB24Helper + the Pull client.",{"title":426,"path":427,"stem":428,"restApiVersion":15,"category":348,"description":429,"badge":15},"Telegram bot","\u002Fdocs\u002Fexamples\u002Ftelegram-bot","docs\u002F99.examples\u002F6.telegram-bot","Poll new CRM deals every two minutes; notify a Telegram chat with an HTML-formatted card.",{"title":431,"path":432,"stem":433,"restApiVersion":15,"category":348,"description":434,"badge":15},"Webhook handler","\u002Fdocs\u002Fexamples\u002Fwebhook-handler","docs\u002F99.examples\u002F7.webhook-handler","Express server that receives Bitrix24 outbound events, fetches details via REST, dispatches by event name. Always returns 200.",{"title":436,"path":437,"stem":438,"restApiVersion":15,"category":348,"description":439,"badge":15},"AI assistant","\u002Fdocs\u002Fexamples\u002Fai-assistant","docs\u002F99.examples\u002F8.ai-assistant","Load a deal and its activities, ask GPT-4o for the next-best action, create a task bound to the deal with priority and deadline.",{"title":441,"path":442,"stem":443,"restApiVersion":15,"category":348,"description":444,"badge":15},"Web search + LLM","\u002Fdocs\u002Fexamples\u002Fweb-search-llm","docs\u002F99.examples\u002F9.web-search-llm","Two-step RAG: ask any web-search provider, run the result through your LLM with [N] citations, post the answer as a CRM timeline comment on a deal.",{"id":446,"title":447,"audited":15,"badge":15,"body":448,"category":112,"description":115,"extension":2286,"links":2287,"meta":2293,"navigation":2294,"path":113,"restApiVersion":15,"seo":2295,"stem":114,"__hash__":2296},"docs\u002Fdocs\u002F2.working-with-the-rest-api\u002F20.hook.md","B24Hook Class",{"type":449,"value":450,"toc":2259},"minimark",[451,503,508,515,549,553,561,566,569,651,656,729,733,815,818,822,825,923,927,977,984,1051,1055,1536,1540,1545,1564,1584,1655,1661,1678,1694,1702,1710,1796,1800,1806,1820,1825,1831,1857,1860,1890,1895,1909,1917,1926,1977,1984,1990,2021,2026,2035,2066,2072,2077,2090,2093,2126,2130,2133,2214,2218,2255],[452,453,455,475],"caution",{"title":454},"⚠️ CAUTION: SECURITY",[456,457,458,459,469,470,474],"p",{},"The ",[460,461,465],"code",{"className":462,"language":463,"style":464},"language-ts-type shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","ts-type","",[466,467,112],"span",{"class":468},"sBMFI"," object is intended ",[471,472,473],"strong",{},"exclusively for use on the server",".",[476,477,478,485,494],"ul",{},[479,480,481,482,474],"li",{},"A webhook URL contains a secret access key. ",[471,483,484],{},"It must never appear in client-side code (browser, mobile app)",[479,486,487,488,474],{},"For the client side, use ",[489,490,492],"a",{"href":491},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fframe\u002F",[460,493,128],{},[479,495,496,497,474],{},"The HTTP client is created with a client-side warning enabled by default — see ",[489,498,500],{"href":499},"#offclientsidewarning",[460,501,502],{},"offClientSideWarning",[504,505,507],"h2",{"id":506},"overview","Overview",[456,509,510,514],{},[460,511,512],{"className":462,"language":463,"style":464},[466,513,112],{"class":468}," is the SDK class for working with the Bitrix24 REST API through an inbound webhook. A webhook is a URL that already carries the user identifier and a secret token, so requests authenticate without an OAuth handshake.",[456,516,517,518,523,524,533,534,537,538,537,541,544,545,548],{},"The class extends ",[460,519,520],{"className":462,"language":463,"style":464},[466,521,522],{"class":468},"AbstractB24"," and implements ",[489,525,529],{"href":526,"rel":527},"https:\u002F\u002Fgithub.com\u002Fbitrix24\u002Fb24jssdk\u002Fblob\u002Fmain\u002Fpackages\u002Fjssdk\u002Fsrc\u002Ftypes\u002Fb24.ts",[528],"nofollow",[460,530,531],{"className":462,"language":463,"style":464},[466,532,312],{"class":468},", so the full REST surface (",[460,535,536],{},"actions.v2.*",", ",[460,539,540],{},"actions.v3.*",[460,542,543],{},"tools.*",") is available immediately after construction — there is no ",[460,546,547],{},"await b24.init()"," step.",[504,550,552],{"id":551},"creating-a-b24hook-instance","Creating a B24Hook Instance",[456,554,555,556,560],{},"There are two ways to create a ",[460,557,558],{"className":462,"language":463,"style":464},[466,559,112],{"class":468}," instance.",[562,563,565],"h3",{"id":564},"from-a-full-webhook-url","From a Full Webhook URL",[456,567,568],{},"Recommended approach when the webhook URL is stored as a single environment variable.",[570,571,575],"pre",{"className":572,"code":573,"language":574,"meta":464,"style":464},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { B24Hook } from '@bitrix24\u002Fb24jssdk'\n\nconst $b24 = B24Hook.fromWebhookUrl('https:\u002F\u002Fyour_domain.bitrix24.com\u002Frest\u002F1\u002Fk32t88gf3azpmwv3\u002F')\n","ts",[460,576,577,609,616],{"__ignoreMap":464},[466,578,581,585,589,593,596,599,602,606],{"class":579,"line":580},"line",1,[466,582,584],{"class":583},"s7zQu","import",[466,586,588],{"class":587},"sMK4o"," {",[466,590,592],{"class":591},"sTEyZ"," B24Hook",[466,594,595],{"class":587}," }",[466,597,598],{"class":583}," from",[466,600,601],{"class":587}," '",[466,603,605],{"class":604},"sfazB","@bitrix24\u002Fb24jssdk",[466,607,608],{"class":587},"'\n",[466,610,612],{"class":579,"line":611},2,[466,613,615],{"emptyLinePlaceholder":614},true,"\n",[466,617,619,623,626,629,631,633,637,640,643,646,648],{"class":579,"line":618},3,[466,620,622],{"class":621},"spNyl","const",[466,624,625],{"class":591}," $b24 ",[466,627,628],{"class":587},"=",[466,630,592],{"class":591},[466,632,474],{"class":587},[466,634,636],{"class":635},"s2Zo4","fromWebhookUrl",[466,638,639],{"class":591},"(",[466,641,642],{"class":587},"'",[466,644,645],{"class":604},"https:\u002F\u002Fyour_domain.bitrix24.com\u002Frest\u002F1\u002Fk32t88gf3azpmwv3\u002F",[466,647,642],{"class":587},[466,649,650],{"class":591},")\n",[652,653,655],"h4",{"id":654},"method-signature","Method Signature",[570,657,659],{"className":462,"code":658,"language":463,"meta":464,"style":464},"static fromWebhookUrl(\n  url: string,\n  options?: { restrictionParams?: Partial\u003CRestrictionParams> }\n): B24Hook\n",[460,660,661,672,687,718],{"__ignoreMap":464},[466,662,663,666,669],{"class":579,"line":580},[466,664,665],{"class":468},"static",[466,667,668],{"class":468}," fromWebhookUrl",[466,670,671],{"class":591},"(\n",[466,673,674,678,681,684],{"class":579,"line":611},[466,675,677],{"class":676},"sHdIc","  url",[466,679,680],{"class":587},":",[466,682,683],{"class":468}," string",[466,685,686],{"class":587},",\n",[466,688,689,692,695,697,701,703,706,709,712,715],{"class":579,"line":618},[466,690,691],{"class":676},"  options",[466,693,694],{"class":587},"?:",[466,696,588],{"class":587},[466,698,700],{"class":699},"swJcz"," restrictionParams",[466,702,694],{"class":587},[466,704,705],{"class":468}," Partial",[466,707,708],{"class":587},"\u003C",[466,710,711],{"class":468},"RestrictionParams",[466,713,714],{"class":587},">",[466,716,717],{"class":587}," }\n",[466,719,721,724,726],{"class":579,"line":720},4,[466,722,723],{"class":591},")",[466,725,680],{"class":587},[466,727,728],{"class":468}," B24Hook\n",[652,730,732],{"id":731},"parameters","Parameters",[734,735,736,754],"table",{},[737,738,739],"thead",{},[740,741,742,746,748,751],"tr",{},[743,744,745],"th",{},"Parameter",[743,747,296],{},[743,749,750],{},"Required",[743,752,753],{},"Description",[755,756,757,786],"tbody",{},[740,758,759,765,772,775],{},[760,761,762],"td",{},[460,763,764],{},"url",[760,766,767],{},[460,768,769],{"className":462,"language":463,"style":464},[466,770,771],{"class":468},"string",[760,773,774],{},"Yes",[760,776,777,778,781,782,785],{},"Full webhook URL. Both URL formats are supported: ",[460,779,780],{},"\u002Frest\u002F\u003CuserId>\u002F\u003Csecret>"," (REST v2) and ",[460,783,784],{},"\u002Frest\u002Fapi\u002F\u003CuserId>\u002F\u003Csecret>"," (REST v3).",[740,787,788,793,806,809],{},[760,789,790],{},[460,791,792],{},"options.restrictionParams",[760,794,795],{},[460,796,797,800,802,804],{"className":462,"language":463,"style":464},[466,798,799],{"class":468},"Partial",[466,801,708],{"class":587},[466,803,711],{"class":468},[466,805,714],{"class":587},[760,807,808],{},"No",[760,810,811,812,474],{},"Override of the default rate-limit \u002F operating-limit \u002F adaptive-delay configuration. See ",[489,813,273],{"href":814},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Flimiters\u002F",[456,816,817],{},"The static factory validates the URL: HTTPS is required, the path must match one of the supported shapes, and the user id must be numeric. Anything else throws synchronously.",[562,819,821],{"id":820},"from-parameters","From Parameters",[456,823,824],{},"Use this constructor when webhook parts are stored separately (for example: portal URL in one env var, token in a secrets manager).",[570,826,828],{"className":572,"code":827,"language":574,"meta":464,"style":464},"import { B24Hook } from '@bitrix24\u002Fb24jssdk'\n\nconst $b24 = new B24Hook({\n  b24Url: 'https:\u002F\u002Fyour_domain.bitrix24.com',\n  userId: 1,\n  secret: 'k32t88gf3azpmwv3'\n})\n",[460,829,830,848,852,870,886,900,915],{"__ignoreMap":464},[466,831,832,834,836,838,840,842,844,846],{"class":579,"line":580},[466,833,584],{"class":583},[466,835,588],{"class":587},[466,837,592],{"class":591},[466,839,595],{"class":587},[466,841,598],{"class":583},[466,843,601],{"class":587},[466,845,605],{"class":604},[466,847,608],{"class":587},[466,849,850],{"class":579,"line":611},[466,851,615],{"emptyLinePlaceholder":614},[466,853,854,856,858,860,863,865,867],{"class":579,"line":618},[466,855,622],{"class":621},[466,857,625],{"class":591},[466,859,628],{"class":587},[466,861,862],{"class":587}," new",[466,864,592],{"class":635},[466,866,639],{"class":591},[466,868,869],{"class":587},"{\n",[466,871,872,875,877,879,882,884],{"class":579,"line":720},[466,873,874],{"class":699},"  b24Url",[466,876,680],{"class":587},[466,878,601],{"class":587},[466,880,881],{"class":604},"https:\u002F\u002Fyour_domain.bitrix24.com",[466,883,642],{"class":587},[466,885,686],{"class":587},[466,887,889,892,894,898],{"class":579,"line":888},5,[466,890,891],{"class":699},"  userId",[466,893,680],{"class":587},[466,895,897],{"class":896},"sbssI"," 1",[466,899,686],{"class":587},[466,901,903,906,908,910,913],{"class":579,"line":902},6,[466,904,905],{"class":699},"  secret",[466,907,680],{"class":587},[466,909,601],{"class":587},[466,911,912],{"class":604},"k32t88gf3azpmwv3",[466,914,608],{"class":587},[466,916,918,921],{"class":579,"line":917},7,[466,919,920],{"class":587},"}",[466,922,650],{"class":591},[652,924,926],{"id":925},"constructor-signature","Constructor Signature",[570,928,930],{"className":462,"code":929,"language":463,"meta":464,"style":464},"constructor(\n  b24HookParams: B24HookParams,\n  options?: { restrictionParams?: Partial\u003CRestrictionParams> }\n)\n",[460,931,932,939,951,973],{"__ignoreMap":464},[466,933,934,937],{"class":579,"line":580},[466,935,936],{"class":468},"constructor",[466,938,671],{"class":591},[466,940,941,944,946,949],{"class":579,"line":611},[466,942,943],{"class":676},"  b24HookParams",[466,945,680],{"class":587},[466,947,948],{"class":468}," B24HookParams",[466,950,686],{"class":587},[466,952,953,955,957,959,961,963,965,967,969,971],{"class":579,"line":618},[466,954,691],{"class":676},[466,956,694],{"class":587},[466,958,588],{"class":587},[466,960,700],{"class":699},[466,962,694],{"class":587},[466,964,705],{"class":468},[466,966,708],{"class":587},[466,968,711],{"class":468},[466,970,714],{"class":587},[466,972,717],{"class":587},[466,974,975],{"class":579,"line":720},[466,976,650],{"class":591},[652,978,980,983],{"id":979},"b24hookparams-fields",[460,981,982],{},"B24HookParams"," Fields",[734,985,986,997],{},[737,987,988],{},[740,989,990,993,995],{},[743,991,992],{},"Field",[743,994,296],{},[743,996,753],{},[755,998,999,1018,1035],{},[740,1000,1001,1006,1012],{},[760,1002,1003],{},[460,1004,1005],{},"b24Url",[760,1007,1008],{},[460,1009,1010],{"className":462,"language":463,"style":464},[466,1011,771],{"class":468},[760,1013,1014,1015,1017],{},"Bitrix24 portal URL (",[460,1016,881],{},").",[740,1019,1020,1025,1032],{},[760,1021,1022],{},[460,1023,1024],{},"userId",[760,1026,1027],{},[460,1028,1029],{"className":462,"language":463,"style":464},[466,1030,1031],{"class":468},"number",[760,1033,1034],{},"Identifier of the user the webhook belongs to.",[740,1036,1037,1042,1048],{},[760,1038,1039],{},[460,1040,1041],{},"secret",[760,1043,1044],{},[460,1045,1046],{"className":462,"language":463,"style":464},[466,1047,771],{"class":468},[760,1049,1050],{},"Webhook secret token.",[504,1052,1054],{"id":1053},"quick-example","Quick Example",[570,1056,1058],{"className":572,"code":1057,"language":574,"meta":464,"style":464},"import { B24Hook, EnumCrmEntityTypeId, LoggerFactory } from '@bitrix24\u002Fb24jssdk'\n\nconst $logger = LoggerFactory.createForBrowser('node:hook', process.env.NODE_ENV === 'development')\n\nif (!process.env.B24_HOOK) {\n  throw new Error('B24_HOOK env variable is required')\n}\n\nconst $b24 = B24Hook.fromWebhookUrl(process.env.B24_HOOK)\n\nconst response = await $b24.actions.v2.call.make\u003C{ id: number, title: string }>({\n  method: 'crm.item.list',\n  params: {\n    entityTypeId: EnumCrmEntityTypeId.company,\n    select: ['id', 'title']\n  },\n  requestId: 'companies-list'\n})\n\nif (!response.isSuccess) {\n  $logger.error('REST error', { messages: response.getErrorMessages() })\n  process.exit(1)\n}\n\n$logger.info('Companies', response.getData()?.result)\n",[460,1059,1060,1089,1093,1145,1149,1174,1195,1200,1205,1232,1237,1299,1316,1327,1344,1374,1380,1395,1402,1407,1426,1470,1488,1493,1498],{"__ignoreMap":464},[466,1061,1062,1064,1066,1068,1071,1074,1076,1079,1081,1083,1085,1087],{"class":579,"line":580},[466,1063,584],{"class":583},[466,1065,588],{"class":587},[466,1067,592],{"class":591},[466,1069,1070],{"class":587},",",[466,1072,1073],{"class":591}," EnumCrmEntityTypeId",[466,1075,1070],{"class":587},[466,1077,1078],{"class":591}," LoggerFactory",[466,1080,595],{"class":587},[466,1082,598],{"class":583},[466,1084,601],{"class":587},[466,1086,605],{"class":604},[466,1088,608],{"class":587},[466,1090,1091],{"class":579,"line":611},[466,1092,615],{"emptyLinePlaceholder":614},[466,1094,1095,1097,1100,1102,1104,1106,1109,1111,1113,1116,1118,1120,1123,1125,1128,1130,1133,1136,1138,1141,1143],{"class":579,"line":618},[466,1096,622],{"class":621},[466,1098,1099],{"class":591}," $logger ",[466,1101,628],{"class":587},[466,1103,1078],{"class":591},[466,1105,474],{"class":587},[466,1107,1108],{"class":635},"createForBrowser",[466,1110,639],{"class":591},[466,1112,642],{"class":587},[466,1114,1115],{"class":604},"node:hook",[466,1117,642],{"class":587},[466,1119,1070],{"class":587},[466,1121,1122],{"class":591}," process",[466,1124,474],{"class":587},[466,1126,1127],{"class":591},"env",[466,1129,474],{"class":587},[466,1131,1132],{"class":591},"NODE_ENV ",[466,1134,1135],{"class":587},"===",[466,1137,601],{"class":587},[466,1139,1140],{"class":604},"development",[466,1142,642],{"class":587},[466,1144,650],{"class":591},[466,1146,1147],{"class":579,"line":720},[466,1148,615],{"emptyLinePlaceholder":614},[466,1150,1151,1154,1157,1160,1163,1165,1167,1169,1172],{"class":579,"line":888},[466,1152,1153],{"class":583},"if",[466,1155,1156],{"class":591}," (",[466,1158,1159],{"class":587},"!",[466,1161,1162],{"class":591},"process",[466,1164,474],{"class":587},[466,1166,1127],{"class":591},[466,1168,474],{"class":587},[466,1170,1171],{"class":591},"B24_HOOK) ",[466,1173,869],{"class":587},[466,1175,1176,1179,1181,1184,1186,1188,1191,1193],{"class":579,"line":902},[466,1177,1178],{"class":583},"  throw",[466,1180,862],{"class":587},[466,1182,1183],{"class":635}," Error",[466,1185,639],{"class":699},[466,1187,642],{"class":587},[466,1189,1190],{"class":604},"B24_HOOK env variable is required",[466,1192,642],{"class":587},[466,1194,650],{"class":699},[466,1196,1197],{"class":579,"line":917},[466,1198,1199],{"class":587},"}\n",[466,1201,1203],{"class":579,"line":1202},8,[466,1204,615],{"emptyLinePlaceholder":614},[466,1206,1208,1210,1212,1214,1216,1218,1220,1223,1225,1227,1229],{"class":579,"line":1207},9,[466,1209,622],{"class":621},[466,1211,625],{"class":591},[466,1213,628],{"class":587},[466,1215,592],{"class":591},[466,1217,474],{"class":587},[466,1219,636],{"class":635},[466,1221,1222],{"class":591},"(process",[466,1224,474],{"class":587},[466,1226,1127],{"class":591},[466,1228,474],{"class":587},[466,1230,1231],{"class":591},"B24_HOOK)\n",[466,1233,1235],{"class":579,"line":1234},10,[466,1236,615],{"emptyLinePlaceholder":614},[466,1238,1240,1242,1245,1247,1250,1253,1255,1257,1259,1262,1264,1267,1269,1272,1275,1278,1280,1283,1285,1288,1290,1292,1295,1297],{"class":579,"line":1239},11,[466,1241,622],{"class":621},[466,1243,1244],{"class":591}," response ",[466,1246,628],{"class":587},[466,1248,1249],{"class":583}," await",[466,1251,1252],{"class":591}," $b24",[466,1254,474],{"class":587},[466,1256,86],{"class":591},[466,1258,474],{"class":587},[466,1260,1261],{"class":591},"v2",[466,1263,474],{"class":587},[466,1265,1266],{"class":591},"call",[466,1268,474],{"class":587},[466,1270,1271],{"class":635},"make",[466,1273,1274],{"class":587},"\u003C{",[466,1276,1277],{"class":699}," id",[466,1279,680],{"class":587},[466,1281,1282],{"class":468}," number",[466,1284,1070],{"class":587},[466,1286,1287],{"class":699}," title",[466,1289,680],{"class":587},[466,1291,683],{"class":468},[466,1293,1294],{"class":587}," }>",[466,1296,639],{"class":591},[466,1298,869],{"class":587},[466,1300,1302,1305,1307,1309,1312,1314],{"class":579,"line":1301},12,[466,1303,1304],{"class":699},"  method",[466,1306,680],{"class":587},[466,1308,601],{"class":587},[466,1310,1311],{"class":604},"crm.item.list",[466,1313,642],{"class":587},[466,1315,686],{"class":587},[466,1317,1319,1322,1324],{"class":579,"line":1318},13,[466,1320,1321],{"class":699},"  params",[466,1323,680],{"class":587},[466,1325,1326],{"class":587}," {\n",[466,1328,1330,1333,1335,1337,1339,1342],{"class":579,"line":1329},14,[466,1331,1332],{"class":699},"    entityTypeId",[466,1334,680],{"class":587},[466,1336,1073],{"class":591},[466,1338,474],{"class":587},[466,1340,1341],{"class":591},"company",[466,1343,686],{"class":587},[466,1345,1347,1350,1352,1355,1357,1360,1362,1364,1366,1369,1371],{"class":579,"line":1346},15,[466,1348,1349],{"class":699},"    select",[466,1351,680],{"class":587},[466,1353,1354],{"class":591}," [",[466,1356,642],{"class":587},[466,1358,1359],{"class":604},"id",[466,1361,642],{"class":587},[466,1363,1070],{"class":587},[466,1365,601],{"class":587},[466,1367,1368],{"class":604},"title",[466,1370,642],{"class":587},[466,1372,1373],{"class":591},"]\n",[466,1375,1377],{"class":579,"line":1376},16,[466,1378,1379],{"class":587},"  },\n",[466,1381,1383,1386,1388,1390,1393],{"class":579,"line":1382},17,[466,1384,1385],{"class":699},"  requestId",[466,1387,680],{"class":587},[466,1389,601],{"class":587},[466,1391,1392],{"class":604},"companies-list",[466,1394,608],{"class":587},[466,1396,1398,1400],{"class":579,"line":1397},18,[466,1399,920],{"class":587},[466,1401,650],{"class":591},[466,1403,1405],{"class":579,"line":1404},19,[466,1406,615],{"emptyLinePlaceholder":614},[466,1408,1410,1412,1414,1416,1419,1421,1424],{"class":579,"line":1409},20,[466,1411,1153],{"class":583},[466,1413,1156],{"class":591},[466,1415,1159],{"class":587},[466,1417,1418],{"class":591},"response",[466,1420,474],{"class":587},[466,1422,1423],{"class":591},"isSuccess) ",[466,1425,869],{"class":587},[466,1427,1429,1432,1434,1437,1439,1441,1444,1446,1448,1450,1453,1455,1458,1460,1463,1466,1468],{"class":579,"line":1428},21,[466,1430,1431],{"class":591},"  $logger",[466,1433,474],{"class":587},[466,1435,1436],{"class":635},"error",[466,1438,639],{"class":699},[466,1440,642],{"class":587},[466,1442,1443],{"class":604},"REST error",[466,1445,642],{"class":587},[466,1447,1070],{"class":587},[466,1449,588],{"class":587},[466,1451,1452],{"class":699}," messages",[466,1454,680],{"class":587},[466,1456,1457],{"class":591}," response",[466,1459,474],{"class":587},[466,1461,1462],{"class":635},"getErrorMessages",[466,1464,1465],{"class":699},"() ",[466,1467,920],{"class":587},[466,1469,650],{"class":699},[466,1471,1473,1476,1478,1481,1483,1486],{"class":579,"line":1472},22,[466,1474,1475],{"class":591},"  process",[466,1477,474],{"class":587},[466,1479,1480],{"class":635},"exit",[466,1482,639],{"class":699},[466,1484,1485],{"class":896},"1",[466,1487,650],{"class":699},[466,1489,1491],{"class":579,"line":1490},23,[466,1492,1199],{"class":587},[466,1494,1496],{"class":579,"line":1495},24,[466,1497,615],{"emptyLinePlaceholder":614},[466,1499,1501,1504,1506,1509,1511,1513,1516,1518,1520,1522,1524,1527,1530,1533],{"class":579,"line":1500},25,[466,1502,1503],{"class":591},"$logger",[466,1505,474],{"class":587},[466,1507,1508],{"class":635},"info",[466,1510,639],{"class":591},[466,1512,642],{"class":587},[466,1514,1515],{"class":604},"Companies",[466,1517,642],{"class":587},[466,1519,1070],{"class":587},[466,1521,1457],{"class":591},[466,1523,474],{"class":587},[466,1525,1526],{"class":635},"getData",[466,1528,1529],{"class":591},"()",[466,1531,1532],{"class":587},"?.",[466,1534,1535],{"class":591},"result)\n",[504,1537,1539],{"id":1538},"getters","Getters",[562,1541,1543],{"id":1542},"auth",[460,1544,1542],{},[570,1546,1548],{"className":462,"code":1547,"language":463,"meta":464,"style":464},"get auth(): AuthActions\n",[460,1549,1550],{"__ignoreMap":464},[466,1551,1552,1555,1558,1561],{"class":579,"line":580},[466,1553,1554],{"class":468},"get",[466,1556,1557],{"class":468}," auth",[466,1559,1560],{"class":587},"():",[466,1562,1563],{"class":468}," AuthActions\n",[456,1565,1566,1567,1574,1575,680],{},"Returns the ",[489,1568,1571],{"href":1569,"rel":1570},"https:\u002F\u002Fgithub.com\u002Fbitrix24\u002Fb24jssdk\u002Fblob\u002Fmain\u002Fpackages\u002Fjssdk\u002Fsrc\u002Fhook\u002Fauth.ts",[528],[460,1572,1573],{},"AuthHookManager"," instance, which implements ",[489,1576,1579],{"href":1577,"rel":1578},"https:\u002F\u002Fgithub.com\u002Fbitrix24\u002Fb24jssdk\u002Fblob\u002Fmain\u002Fpackages\u002Fjssdk\u002Fsrc\u002Ftypes\u002Fauth.ts",[528],[460,1580,1581],{"className":462,"language":463,"style":464},[466,1582,1583],{"class":468},"AuthActions",[476,1585,1586,1606,1617,1643],{},[479,1587,1588,1591,1592,1597,1598,1601,1602,1605],{},[460,1589,1590],{},"getAuthData()"," — returns synthetic ",[460,1593,1594],{"className":462,"language":463,"style":464},[466,1595,1596],{"class":468},"AuthData"," composed from the webhook secret. ",[460,1599,1600],{},"expires"," is always ",[460,1603,1604],{},"0"," (webhook tokens do not expire).",[479,1607,1608,1611,1612,1616],{},[460,1609,1610],{},"refreshAuth()"," — for compatibility with ",[460,1613,1614],{"className":462,"language":463,"style":464},[466,1615,175],{"class":468},"; returns the same data without performing a network call.",[479,1618,1619,1622,1623,1642],{},[460,1620,1621],{},"getUniq(prefix: string)"," — returns ",[460,1624,1625,1627,1630,1632,1635,1637,1640],{"className":462,"language":463,"style":464},[466,1626,708],{"class":587},[466,1628,1629],{"class":468},"prefix",[466,1631,714],{"class":587},[466,1633,1634],{"class":468},"_",[466,1636,708],{"class":587},[466,1638,1639],{"class":468},"member_id",[466,1641,714],{"class":587},", used by the Pull client and other helpers.",[479,1644,1645,1648,1649,1654],{},[460,1646,1647],{},"isAdmin"," — always ",[460,1650,1651],{"className":462,"language":463,"style":464},[466,1652,1653],{"class":468},"true"," (webhooks are assumed to be created by admins).",[562,1656,1658],{"id":1657},"isinit",[460,1659,1660],{},"isInit",[570,1662,1664],{"className":462,"code":1663,"language":463,"meta":464,"style":464},"get isInit(): boolean\n",[460,1665,1666],{"__ignoreMap":464},[466,1667,1668,1670,1673,1675],{"class":579,"line":580},[466,1669,1554],{"class":468},[466,1671,1672],{"class":468}," isInit",[466,1674,1560],{"class":587},[466,1676,1677],{"class":468}," boolean\n",[456,1679,1680,1681,1685,1686,1689,1690,474],{},"Always ",[460,1682,1683],{"className":462,"language":463,"style":464},[466,1684,1653],{"class":468}," immediately after construction — no ",[460,1687,1688],{},"init()"," call is required for ",[460,1691,1692],{"className":462,"language":463,"style":464},[466,1693,112],{"class":468},[562,1695,1697,1699,1700],{"id":1696},"actions-tools",[460,1698,86],{}," \u002F ",[460,1701,330],{},[456,1703,1704,1705,1709],{},"Same shape as on every ",[460,1706,1707],{"className":462,"language":463,"style":464},[466,1708,312],{"class":468}," class. See:",[476,1711,1712,1726,1740,1754,1768,1782],{},[479,1713,1714,1699,1720],{},[489,1715,1717],{"href":1716},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-rest-api-ver2\u002F",[460,1718,1719],{},"CallV2.make",[489,1721,1723],{"href":1722},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-rest-api-ver3\u002F",[460,1724,1725],{},"CallV3.make",[479,1727,1728,1699,1734],{},[489,1729,1731],{"href":1730},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-list-rest-api-ver2\u002F",[460,1732,1733],{},"CallListV2.make",[489,1735,1737],{"href":1736},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcall-list-rest-api-ver3\u002F",[460,1738,1739],{},"CallListV3.make",[479,1741,1742,1699,1748],{},[489,1743,1745],{"href":1744},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Ffetch-list-rest-api-ver2\u002F",[460,1746,1747],{},"FetchListV2.make",[489,1749,1751],{"href":1750},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Ffetch-list-rest-api-ver3\u002F",[460,1752,1753],{},"FetchListV3.make",[479,1755,1756,1699,1762],{},[489,1757,1759],{"href":1758},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-rest-api-ver2\u002F",[460,1760,1761],{},"BatchV2.make",[489,1763,1765],{"href":1764},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-rest-api-ver3\u002F",[460,1766,1767],{},"BatchV3.make",[479,1769,1770,1699,1776],{},[489,1771,1773],{"href":1772},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-by-chunk-rest-api-ver2\u002F",[460,1774,1775],{},"BatchByChunkV2.make",[489,1777,1779],{"href":1778},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fbatch-by-chunk-rest-api-ver3\u002F",[460,1780,1781],{},"BatchByChunkV3.make",[479,1783,1784,537,1790],{},[489,1785,1787],{"href":1786},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-health-check\u002F",[460,1788,1789],{},"tools.healthCheck.make",[489,1791,1793],{"href":1792},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Ftools-ping\u002F",[460,1794,1795],{},"tools.ping.make",[504,1797,1799],{"id":1798},"methods","Methods",[562,1801,1803],{"id":1802},"gettargetorigin",[460,1804,1805],{},"getTargetOrigin",[570,1807,1809],{"className":462,"code":1808,"language":463,"meta":464,"style":464},"getTargetOrigin(): string\n",[460,1810,1811],{"__ignoreMap":464},[466,1812,1813,1815,1817],{"class":579,"line":580},[466,1814,1805],{"class":468},[466,1816,1560],{"class":587},[466,1818,1819],{"class":468}," string\n",[456,1821,1822,1823,1017],{},"Returns the portal origin (",[460,1824,881],{},[562,1826,1828],{"id":1827},"gettargetoriginwithpath",[460,1829,1830],{},"getTargetOriginWithPath",[570,1832,1834],{"className":462,"code":1833,"language":463,"meta":464,"style":464},"getTargetOriginWithPath(): Map\u003CApiVersion, string>\n",[460,1835,1836],{"__ignoreMap":464},[466,1837,1838,1840,1842,1845,1847,1850,1852,1854],{"class":579,"line":580},[466,1839,1830],{"class":468},[466,1841,1560],{"class":587},[466,1843,1844],{"class":468}," Map",[466,1846,708],{"class":587},[466,1848,1849],{"class":468},"ApiVersion",[466,1851,1070],{"class":587},[466,1853,683],{"class":468},[466,1855,1856],{"class":587},">\n",[456,1858,1859],{},"Returns the per-version REST endpoint:",[476,1861,1862,1876],{},[479,1863,1864,1872,1873],{},[460,1865,1866,1868,1870],{"className":462,"language":463,"style":464},[466,1867,1849],{"class":468},[466,1869,474],{"class":587},[466,1871,1261],{"class":468}," → ",[460,1874,1875],{},"https:\u002F\u002Fyour_domain.bitrix24.com\u002Frest\u002F\u003CuserId>\u002F\u003Csecret>",[479,1877,1878,1872,1887],{},[460,1879,1880,1882,1884],{"className":462,"language":463,"style":464},[466,1881,1849],{"class":468},[466,1883,474],{"class":587},[466,1885,1886],{"class":468},"v3",[460,1888,1889],{},"https:\u002F\u002Fyour_domain.bitrix24.com\u002Frest\u002Fapi\u002F\u003CuserId>\u002F\u003Csecret>",[562,1891,1893],{"id":1892},"offclientsidewarning",[460,1894,502],{},[570,1896,1898],{"className":462,"code":1897,"language":463,"meta":464,"style":464},"offClientSideWarning(): void\n",[460,1899,1900],{"__ignoreMap":464},[466,1901,1902,1904,1906],{"class":579,"line":580},[466,1903,502],{"class":468},[466,1905,1560],{"class":587},[466,1907,1908],{"class":468}," void\n",[456,1910,1911,1912,1916],{},"Disables the runtime warning emitted by both HTTP clients when ",[460,1913,1914],{"className":462,"language":463,"style":464},[466,1915,112],{"class":468}," is detected in a browser environment. Use only when you intentionally proxy the webhook through a server-side wrapper that strips the secret before any browser request.",[562,1918,1920,1699,1923],{"id":1919},"gethttpclient-sethttpclient",[460,1921,1922],{},"getHttpClient",[460,1924,1925],{},"setHttpClient",[570,1927,1929],{"className":462,"code":1928,"language":463,"meta":464,"style":464},"getHttpClient(version: ApiVersion): TypeHttp\nsetHttpClient(version: ApiVersion, client: TypeHttp): void\n",[460,1930,1931,1951],{"__ignoreMap":464},[466,1932,1933,1935,1937,1940,1942,1945,1948],{"class":579,"line":580},[466,1934,1922],{"class":468},[466,1936,639],{"class":587},[466,1938,1939],{"class":676},"version",[466,1941,680],{"class":587},[466,1943,1944],{"class":468}," ApiVersion",[466,1946,1947],{"class":587},"):",[466,1949,1950],{"class":468}," TypeHttp\n",[466,1952,1953,1955,1957,1959,1961,1963,1965,1968,1970,1973,1975],{"class":579,"line":611},[466,1954,1925],{"class":468},[466,1956,639],{"class":587},[466,1958,1939],{"class":676},[466,1960,680],{"class":587},[466,1962,1944],{"class":468},[466,1964,1070],{"class":587},[466,1966,1967],{"class":676}," client",[466,1969,680],{"class":587},[466,1971,1972],{"class":468}," TypeHttp",[466,1974,1947],{"class":587},[466,1976,1908],{"class":468},[456,1978,1979,1980,474],{},"Direct access to the underlying HTTP transports (one per REST API version). See ",[489,1981,1983],{"href":1982},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Fcore-http\u002F","Http reference",[562,1985,1987],{"id":1986},"setrestrictionmanagerparams",[460,1988,1989],{},"setRestrictionManagerParams",[570,1991,1993],{"className":462,"code":1992,"language":463,"meta":464,"style":464},"setRestrictionManagerParams(params: RestrictionParams): Promise\u003Cvoid>\n",[460,1994,1995],{"__ignoreMap":464},[466,1996,1997,1999,2001,2004,2006,2009,2011,2014,2016,2019],{"class":579,"line":580},[466,1998,1989],{"class":468},[466,2000,639],{"class":587},[466,2002,2003],{"class":676},"params",[466,2005,680],{"class":587},[466,2007,2008],{"class":468}," RestrictionParams",[466,2010,1947],{"class":587},[466,2012,2013],{"class":468}," Promise",[466,2015,708],{"class":587},[466,2017,2018],{"class":468},"void",[466,2020,1856],{"class":587},[456,2022,2023,2024,474],{},"Replaces the rate-limit \u002F operating-limit \u002F adaptive-delay configuration on both v2 and v3 clients at once. See ",[489,2025,273],{"href":814},[562,2027,2029,1699,2032],{"id":2028},"getlogger-setlogger",[460,2030,2031],{},"getLogger",[460,2033,2034],{},"setLogger",[570,2036,2038],{"className":462,"code":2037,"language":463,"meta":464,"style":464},"getLogger(): LoggerInterface\nsetLogger(logger: LoggerInterface): void\n",[460,2039,2040,2049],{"__ignoreMap":464},[466,2041,2042,2044,2046],{"class":579,"line":580},[466,2043,2031],{"class":468},[466,2045,1560],{"class":587},[466,2047,2048],{"class":468}," LoggerInterface\n",[466,2050,2051,2053,2055,2057,2059,2062,2064],{"class":579,"line":611},[466,2052,2034],{"class":468},[466,2054,639],{"class":587},[466,2056,239],{"class":676},[466,2058,680],{"class":587},[466,2060,2061],{"class":468}," LoggerInterface",[466,2063,1947],{"class":587},[466,2065,1908],{"class":468},[456,2067,2068,2069,474],{},"Get or replace the logger used by the SDK and propagated into the HTTP clients. See ",[489,2070,236],{"href":2071},"\u002Fdocs\u002Fworking-with-the-rest-api\u002Flogger\u002F",[562,2073,2075],{"id":2074},"destroy",[460,2076,2074],{},[570,2078,2080],{"className":462,"code":2079,"language":463,"meta":464,"style":464},"destroy(): void\n",[460,2081,2082],{"__ignoreMap":464},[466,2083,2084,2086,2088],{"class":579,"line":580},[466,2085,2074],{"class":468},[466,2087,1560],{"class":587},[466,2089,1908],{"class":468},[456,2091,2092],{},"Releases internal references. Call before the process exits or when discarding a long-lived instance.",[570,2094,2096],{"className":572,"code":2095,"language":574,"meta":464,"style":464},"function shutdown() {\n  $b24.destroy()\n}\n",[460,2097,2098,2110,2122],{"__ignoreMap":464},[466,2099,2100,2103,2106,2108],{"class":579,"line":580},[466,2101,2102],{"class":621},"function",[466,2104,2105],{"class":635}," shutdown",[466,2107,1529],{"class":587},[466,2109,1326],{"class":587},[466,2111,2112,2115,2117,2119],{"class":579,"line":611},[466,2113,2114],{"class":591},"  $b24",[466,2116,474],{"class":587},[466,2118,2074],{"class":635},[466,2120,2121],{"class":699},"()\n",[466,2123,2124],{"class":579,"line":618},[466,2125,1199],{"class":587},[504,2127,2129],{"id":2128},"storing-the-webhook-secret","Storing the Webhook Secret",[456,2131,2132],{},"\u002F\u002F @check-ignore: partial snippet — illustrates env vs inline URL pattern",[570,2134,2136],{"className":572,"code":2135,"language":574,"meta":464,"style":464},"\u002F\u002F ✅ Server-side env variable\nconst $b24ok = B24Hook.fromWebhookUrl(process.env.BITRIX24_WEBHOOK_URL!)\n\n\u002F\u002F ❌ Never inline the URL in client code or commit it to Git\nconst $b24bad = B24Hook.fromWebhookUrl(\n  'https:\u002F\u002Fcompany.bitrix24.com\u002Frest\u002F1\u002Fabcdef123456\u002F'\n)\n",[460,2137,2138,2144,2174,2178,2183,2200,2210],{"__ignoreMap":464},[466,2139,2140],{"class":579,"line":580},[466,2141,2143],{"class":2142},"sHwdD","\u002F\u002F ✅ Server-side env variable\n",[466,2145,2146,2148,2151,2153,2155,2157,2159,2161,2163,2165,2167,2170,2172],{"class":579,"line":611},[466,2147,622],{"class":621},[466,2149,2150],{"class":591}," $b24ok ",[466,2152,628],{"class":587},[466,2154,592],{"class":591},[466,2156,474],{"class":587},[466,2158,636],{"class":635},[466,2160,1222],{"class":591},[466,2162,474],{"class":587},[466,2164,1127],{"class":591},[466,2166,474],{"class":587},[466,2168,2169],{"class":591},"BITRIX24_WEBHOOK_URL",[466,2171,1159],{"class":587},[466,2173,650],{"class":591},[466,2175,2176],{"class":579,"line":618},[466,2177,615],{"emptyLinePlaceholder":614},[466,2179,2180],{"class":579,"line":720},[466,2181,2182],{"class":2142},"\u002F\u002F ❌ Never inline the URL in client code or commit it to Git\n",[466,2184,2185,2187,2190,2192,2194,2196,2198],{"class":579,"line":888},[466,2186,622],{"class":621},[466,2188,2189],{"class":591}," $b24bad ",[466,2191,628],{"class":587},[466,2193,592],{"class":591},[466,2195,474],{"class":587},[466,2197,636],{"class":635},[466,2199,671],{"class":591},[466,2201,2202,2205,2208],{"class":579,"line":902},[466,2203,2204],{"class":587},"  '",[466,2206,2207],{"class":604},"https:\u002F\u002Fcompany.bitrix24.com\u002Frest\u002F1\u002Fabcdef123456\u002F",[466,2209,608],{"class":587},[466,2211,2212],{"class":579,"line":917},[466,2213,650],{"class":591},[504,2215,2217],{"id":2216},"faq","FAQ",[2219,2220,2221,2233,2239,2249],"accordion",{},[2222,2223,2225],"accordion-item",{"label":2224},"Where do I get the webhook URL?",[456,2226,2227,2228,474],{},"Bitrix24 → Settings → Developers → Webhooks → Inbound webhook. See the ",[489,2229,2232],{"href":2230,"rel":2231},"https:\u002F\u002Fapidocs.bitrix24.com\u002Flocal-integrations\u002Flocal-webhooks.html#vhodyashij-vebhuk",[528],"official documentation",[2222,2234,2236],{"label":2235},"Can one B24Hook instance serve the whole server?",[456,2237,2238],{},"Yes. Create the instance once at startup and share it across requests — the HTTP clients reuse the underlying axios instance and the limiter state.",[2222,2240,2242],{"label":2241},"Why does fromWebhookUrl throw 'Webhook requires HTTPS protocol'?",[456,2243,2244,2245,2248],{},"The factory rejects ",[460,2246,2247],{},"http:\u002F\u002F"," URLs by design. Webhook secrets must travel over TLS.",[2222,2250,2252],{"label":2251},"What does 'Access denied' mean?",[456,2253,2254],{},"The webhook user lacks permissions for the called REST method, or the webhook itself was revoked. Recreate the webhook with the required scopes.",[2256,2257,2258],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":464,"searchDepth":611,"depth":611,"links":2260},[2261,2262,2266,2267,2273,2284,2285],{"id":506,"depth":611,"text":507},{"id":551,"depth":611,"text":552,"children":2263},[2264,2265],{"id":564,"depth":618,"text":565},{"id":820,"depth":618,"text":821},{"id":1053,"depth":611,"text":1054},{"id":1538,"depth":611,"text":1539,"children":2268},[2269,2270,2271],{"id":1542,"depth":618,"text":1542},{"id":1657,"depth":618,"text":1660},{"id":1696,"depth":618,"text":2272},"actions \u002F tools",{"id":1798,"depth":611,"text":1799,"children":2274},[2275,2276,2277,2278,2280,2281,2283],{"id":1802,"depth":618,"text":1805},{"id":1827,"depth":618,"text":1830},{"id":1892,"depth":618,"text":502},{"id":1919,"depth":618,"text":2279},"getHttpClient \u002F setHttpClient",{"id":1986,"depth":618,"text":1989},{"id":2028,"depth":618,"text":2282},"getLogger \u002F setLogger",{"id":2074,"depth":618,"text":2074},{"id":2128,"depth":611,"text":2129},{"id":2216,"depth":611,"text":2217},"md",[2288,2291,2292],{"label":112,"iconName":2289,"to":2290},"GitHubIcon","https:\u002F\u002Fgithub.com\u002Fbitrix24\u002Fb24jssdk\u002Fblob\u002Fmain\u002Fpackages\u002Fjssdk\u002Fsrc\u002Fhook\u002Fb24.ts",{"label":1573,"iconName":2289,"to":1569},{"label":312,"iconName":2289,"to":526},{},{"title":112},{"title":447,"description":115},"ywLNkpEFwll6Jdwog9N9c4MrJJdS2BTUPXa8WzlnNsU",{"data":2298,"body":2299},{},{"type":2300,"children":2301},"root",[2302],{"type":2303,"tag":456,"props":2304,"children":2305},"element",{},[2306],{"type":2307,"value":115},"text",1780384103605]