Get Connection Configuration for RT Servers pull.application.config.get
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Scope:
pullWho can execute the method: a user authorized in the application
The method pull.application.config.get returns the connection configuration for Push&Pull servers for the current application.
The method works only in the context of the application.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
CACHE |
Use cached data:
If the parameter is not provided, the cache is used |
|
REOPEN |
Refresh channels upon expiration:
If the parameter is not provided, refreshing is enabled |
Code Examples
How to Use Examples in Documentation
Example of obtaining Push&Pull configuration for the application, where:
CACHE— cached data is usedREOPEN— refreshes channels
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"CACHE": "Y",
"REOPEN": "Y",
"auth": "**put_access_token_here**"
}' \
"https://**put.your-domain-here**/rest/pull.application.config.get.json"
try
{
const response = await $b24.callMethod(
'pull.application.config.get',
{
CACHE: 'Y',
REOPEN: 'Y'
}
);
const result = response.getData().result;
console.info(result);
}
catch (error)
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'pull.application.config.get',
[
'CACHE' => 'Y',
'REOPEN' => 'Y',
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error getting pull config: ' . $e->getMessage();
}
BX24.callMethod(
'pull.application.config.get',
{
CACHE: 'Y',
REOPEN: 'Y'
},
function(result)
{
if (result.error())
{
console.error(result.error());
}
else
{
console.info(result.data());
}
}
);
$result = CRest::call(
'pull.application.config.get',
[
'CACHE' => 'Y',
'REOPEN' => 'Y',
]
);
echo '<pre>';
print_r($result);
echo '</pre>';
Response Handling
HTTP Status: 200
{
"result": {
"server": {
"version": 4,
"server_enabled": true,
"mode": "personal",
"hostname": "your-account.bitrix24.com",
"long_polling": "https://rtc-**.bitrix24.com/sub2/",
"long_pooling_secure": "https://rtc-**.bitrix24.com/sub2/",
"websocket_enabled": true,
"websocket": "wss://rtc-**.bitrix24.com/subws2/",
"websocket_secure": "wss://rtc-**.bitrix24.com/subws2/",
"publish_enabled": true,
"publish": "https://rtc-**.bitrix24.com/rest/",
"publish_secure": "https://rtc-**.bitrix24.com/rest/",
"config_timestamp": 1774886062
},
"api": {
"revision_web": 19,
"revision_mobile": 3
},
"channels": {
"shared": {
"id": "***masked***",
"start": "2026-03-31T17:05:18+02:00",
"end": "2026-04-01T05:05:23+02:00",
"type": "shared"
},
"private": {
"id": "***masked***",
"public_id": "***masked***",
"start": "2026-03-31T17:05:18+02:00",
"end": "2026-04-01T05:05:23+02:00",
"type": "private"
}
},
"exp": 1775052318,
"publicChannels": {
"<user_id>": {
"user_id": 577,
"public_id": "***masked***",
"signature": "***masked***",
"start": "2026-03-31T10:06:39+02:00",
"end": "2026-03-31T22:06:44+02:00"
}
}
},
"time": {
"start": 1774965918,
"finish": 1774965918.322255,
"duration": 0.32225489616394043,
"processing": 0,
"date_start": "2026-03-31T17:05:18+02:00",
"date_finish": "2026-03-31T17:05:18+02:00",
"operating_reset_at": 1774966518,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Object format:
where:
See the fields of the The composition of fields may vary and depends on the Push&Pull server configuration |
|
time |
Information about the request execution time |
Result Type
|
Name |
Description |
|
server |
Push&Pull server parameters more details |
|
api |
Push&Pull API versions: |
|
channels |
Application channels. Contains two channel types: See the channel field descriptions in the Shared/Private Channel Type section |
|
exp |
Expiration time of the configuration in Unix timestamp format |
|
publicChannels |
Public user channels in the format:
where:
|
|
clientId |
Public client identifier. Returned in shared mode of the server |
|
jwt |
JWT token for connection. Returned if JWT issuance is enabled in the server configuration |
Server Type
|
Name |
Description |
|
version |
Push&Pull server version |
|
server_enabled |
Server availability indicator |
|
mode |
Server mode:
|
|
hostname |
Account hostname |
|
long_polling |
Long polling URL |
|
long_pooling_secure |
Long polling URL for secure connection |
|
websocket_enabled |
WebSocket availability indicator |
|
websocket |
WebSocket URL |
|
websocket_secure |
WebSocket URL for secure connection |
|
publish_enabled |
Publish API availability indicator |
|
publish |
Publish API URL |
|
publish_secure |
Publish API URL for secure connection |
|
config_timestamp |
Configuration version timestamp |
Shared/Private Channel Type
|
Name |
Description |
|
id |
Channel identifier |
|
Public channel identifier. May be absent for |
|
|
start |
Channel activation start time |
|
end |
Channel activation end time |
|
type |
Channel type:
|
Error Handling
HTTP Status: 403
{
"error": "WRONG_AUTH_TYPE",
"error_description": "Get access to application config available only for application authorization."
}
|
Name |
Description |
|
error |
String error code. It consists of digits, Latin letters, and underscores. It may arrive empty — in that case only |
|
error_description |
Error message for the developer. Do not show it to the end user without processing |
Possible Error Codes
|
Status |
Code |
Description |
Value |
|
|
|
Get access to application config available only for application authorization. |
Method call not from the context of an OAuth application |
Statuses and System Error Codes
HTTP Status: 4xx, 5xx
The errors described below are returned by the REST API itself, not by the logic of a specific method. They can arrive in response to any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support |
|
|
|
The server returned an unexpected response. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The method is blocked because the request resource intensity limit has been exceeded. The block is lifted automatically once the accumulated execution time of the method no longer exceeds the limit |
|
|
|
The request contains no authorization data: neither an access token nor a webhook code was passed |
|
|
|
Methods are called over the HTTPS protocol only |
|
|
|
The REST API is blocked due to overload. This is a manual individual block. To have it lifted, contact Bitrix24 technical support |
|
|
|
The REST API is available only on commercial plans. A webhook receives a different error message — |
|
|
|
No active webhook with the specified user identifier and secret code was found |
|
|
|
No method with this name was found. The name is misspelled, the method does not exist in the REST API, or it is unavailable without the required scope |
|
|
|
The request requires broader permissions than the token has: for a webhook these are the permissions granted to it, for an application it is the scope. For an application, the error message ends with |
|
|
|
The access token has expired |
|
|
|
The application is installed, but the Bitrix24 administrator has granted access to it only to specific users |
|
|
|
The public part of the site is closed. To open it on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |