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 may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
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: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not permitted for calls using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The HTTPS protocol is required for method calls |
|
|
|
The REST API is blocked due to overload. This is a manual individual block; please contact Bitrix24 technical support to lift it |
|
|
|
The REST API is only available on commercial plans |
|
|
|
The user associated with the access token or webhook used to call the method lacks the necessary permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the portal administrator has restricted access to this application to specific users only |
|
|
|
The public part of the site is closed. To open the public part of the site 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 |
Continue Learning
- Interactivity in Applications: Overview of Scenarios and Methods
- Send Events to the RT Channel of the pull.application.event.add
- Send Push Notification to Mobile Device via pull.application.push.add