Get Open Line by ID imopenlines.config.get
Scope:
imopenlinesWho can execute the method: any user
The method imopenlines.config.get retrieves the settings of an open line by its ID.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
CONFIG_ID* |
The ID of the open line. You can obtain the ID of the open line when creating an open line or by using the method to get the list of open lines |
|
WITH_QUEUE |
Return operator queue data. Possible values:
|
|
SHOW_OFFLINE |
Return offline operators in the queue. Possible values:
|
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"CONFIG_ID": 15,
"WITH_QUEUE": "Y",
"SHOW_OFFLINE": "Y"
}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/imopenlines.config.get
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"CONFIG_ID": 15,
"WITH_QUEUE": "Y",
"SHOW_OFFLINE": "Y",
"auth": "**put_access_token_here**"
}' \
https://**put_your_bitrix24_address**/rest/imopenlines.config.get
try
{
const response = await $b24.callMethod(
'imopenlines.config.get',
{
CONFIG_ID: 15,
WITH_QUEUE: 'Y',
SHOW_OFFLINE: 'Y'
}
);
const result = response.getData().result;
console.log(result);
}
catch (error)
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'imopenlines.config.get',
[
'CONFIG_ID' => 15,
'WITH_QUEUE' => 'Y',
'SHOW_OFFLINE' => 'Y',
]
);
$result = $response
->getResponseData()
->getResult();
print_r($result);
} catch (Throwable $e) {
echo $e->getMessage();
}
BX24.callMethod(
'imopenlines.config.get',
{
CONFIG_ID: 15,
WITH_QUEUE: 'Y',
SHOW_OFFLINE: 'Y'
},
function(result)
{
if (result.error())
{
console.error(result.error());
}
else
{
console.log(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'imopenlines.config.get',
[
'CONFIG_ID' => 15,
'WITH_QUEUE' => 'Y',
'SHOW_OFFLINE' => 'Y',
]
);
print_r($result);
Response Handling
HTTP Status: 200
{
"result": {
"ID": "22",
"ACTIVE": "Y",
"LINE_NAME": "Bitrix24 Documentation",
"CRM": "N",
"CRM_CREATE": "lead",
"CRM_CREATE_SECOND": "0",
"CRM_CREATE_THIRD": "Y",
"CRM_FORWARD": "Y",
"CRM_CHAT_TRACKER": "N",
"CRM_TRANSFER_CHANGE": "Y",
"CRM_SOURCE": "create",
"QUEUE_TIME": "60",
"NO_ANSWER_TIME": "60",
"QUEUE_TYPE": "evenly",
"CHECK_AVAILABLE": "Y",
"WATCH_TYPING": "N",
"WELCOME_BOT_ENABLE": "Y",
"WELCOME_MESSAGE": "N",
"WELCOME_MESSAGE_TEXT": "Welcome to the open line [b]«Bitrix24 Documentation»[/b][br]The first available operator will respond to you.",
"VOTE_MESSAGE": "Y",
"VOTE_TIME_LIMIT": "0",
"VOTE_BEFORE_FINISH": "Y",
"VOTE_CLOSING_DELAY": "Y",
"VOTE_MESSAGE_1_TEXT": "Please rate the quality of service.",
"VOTE_MESSAGE_1_LIKE": "Thank you for your feedback!",
"VOTE_MESSAGE_1_DISLIKE": "We are sorry we couldn't assist you, we will strive to improve.",
"VOTE_MESSAGE_2_TEXT": "Please rate the quality of service.\r\n\r\nSend: 1 - good, 0 - bad",
"VOTE_MESSAGE_2_LIKE": "Thank you for your feedback!",
"VOTE_MESSAGE_2_DISLIKE": "We are sorry we couldn't assist you, we will strive to improve.",
"AGREEMENT_MESSAGE": "N",
"AGREEMENT_ID": "0",
"CATEGORY_ENABLE": "N",
"CATEGORY_ID": "0",
"WELCOME_BOT_JOIN": "always",
"WELCOME_BOT_ID": "597",
"WELCOME_BOT_TIME": "180",
"WELCOME_BOT_LEFT": "close",
"NO_ANSWER_RULE": "text",
"NO_ANSWER_FORM_ID": "0",
"NO_ANSWER_BOT_ID": "0",
"NO_ANSWER_TEXT": "Unfortunately, we cannot respond to you at this moment, we will definitely get back to you.",
"WORKTIME_ENABLE": "Y",
"WORKTIME_FROM": "0",
"WORKTIME_TO": "23.59",
"WORKTIME_TIMEZONE": "Europe/Berlin",
"WORKTIME_HOLIDAYS": [
""
],
"WORKTIME_DAYOFF": [
""
],
"WORKTIME_DAYOFF_RULE": "text",
"WORKTIME_DAYOFF_FORM_ID": "0",
"WORKTIME_DAYOFF_BOT_ID": "0",
"WORKTIME_DAYOFF_TEXT": "Unfortunately, we cannot respond to you at this moment.[br][br]Please write your question and we will definitely get back to you during working hours.",
"CLOSE_RULE": "text",
"CLOSE_FORM_ID": "0",
"CLOSE_BOT_ID": "0",
"CLOSE_TEXT": "Thank you for reaching out to us, please rate the quality of service.",
"FULL_CLOSE_TIME": "0",
"AUTO_CLOSE_RULE": "none",
"AUTO_CLOSE_FORM_ID": "0",
"AUTO_CLOSE_BOT_ID": "0",
"AUTO_CLOSE_TIME": "3600",
"AUTO_CLOSE_TEXT": "",
"AUTO_EXPIRE_TIME": "86400",
"DATE_CREATE": {},
"DATE_MODIFY": {},
"MODIFY_USER_ID": "27",
"TEMPORARY": "N",
"XML_ID": null,
"LANGUAGE_ID": "de",
"QUICK_ANSWERS_IBLOCK_ID": "181",
"SESSION_PRIORITY": "0",
"TYPE_MAX_CHAT": "answered_new",
"MAX_CHAT": "0",
"OPERATOR_DATA": "profile",
"DEFAULT_OPERATOR_DATA": [],
"KPI_FIRST_ANSWER_TIME": "0",
"KPI_FIRST_ANSWER_ALERT": "N",
"KPI_FIRST_ANSWER_LIST": null,
"KPI_FIRST_ANSWER_TEXT": "Employee #OPERATOR# exceeded the allowable response time to the client for the first message. Dialog №#DIALOG#.",
"KPI_FURTHER_ANSWER_TIME": "0",
"KPI_FURTHER_ANSWER_ALERT": "N",
"KPI_FURTHER_ANSWER_LIST": null,
"KPI_FURTHER_ANSWER_TEXT": "Employee #OPERATOR# exceeded the allowable response time to the client for the message. Dialog №#DIALOG#.",
"KPI_CHECK_OPERATOR_ACTIVITY": "N",
"SEND_NOTIFICATION_EMPTY_QUEUE": "N",
"USE_WELCOME_FORM": "N",
"WELCOME_FORM_ID": "111",
"WELCOME_FORM_DELAY": "Y",
"SEND_WELCOME_EACH_SESSION": "Y",
"CONFIRM_CLOSE": "Y",
"IGNORE_WELCOME_FORM_RESPONSIBLE": "N",
"QUEUE": [
"27",
"103"
],
"QUEUE_FULL": {
"27": {
"ID": "245",
"SORT": "0",
"USER_ID": "27",
"DEPARTMENT_ID": "0",
"USER_NAME": null,
"USER_WORK_POSITION": null,
"USER_AVATAR": null,
"USER_AVATAR_ID": "0"
},
"103": {
"ID": "251",
"SORT": "1",
"USER_ID": "103",
"DEPARTMENT_ID": "0",
"USER_NAME": null,
"USER_WORK_POSITION": null,
"USER_AVATAR": null,
"USER_AVATAR_ID": "0"
}
},
"QUEUE_USERS_FIELDS": {
"27": {
"USER_NAME": null,
"USER_WORK_POSITION": null,
"USER_AVATAR": null,
"USER_AVATAR_ID": "0"
},
"103": {
"USER_NAME": null,
"USER_WORK_POSITION": null,
"USER_AVATAR": null,
"USER_AVATAR_ID": "0"
}
},
"QUEUE_ONLINE": "Y"
},
"time": {
"start": 1773663905,
"finish": 1773663905.742784,
"duration": 0.7427840232849121,
"processing": 0,
"date_start": "2026-03-16T15:25:05+01:00",
"date_finish": "2026-03-16T15:25:05+01:00",
"operating_reset_at": 1773664505,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
The result value. Possible values:
|
|
time |
Information about the request execution time |
Object result
|
Name |
Description |
|
ID |
The ID of the open line |
|
LINE_NAME |
The name of the open line |
|
ACTIVE |
The status of the line's activity. Possible values:
|
|
CRM |
The CRM operation status. Possible values:
|
|
CRM_CREATE |
The scenario for creating a CRM entity |
|
CRM_CREATE_SECOND |
Additional mode for creating a CRM entity |
|
CRM_CREATE_THIRD |
Additional mode for creating a CRM entity. Possible values:
|
|
CRM_FORWARD |
The status of forwarding to CRM. Possible values:
|
|
CRM_CHAT_TRACKER |
The status of sending the dialog to the CRM tracker. Possible values:
|
|
CRM_TRANSFER_CHANGE |
The status of changing the responsible person during transfer. Possible values:
|
|
CRM_SOURCE |
The mode of working with the source in CRM |
|
QUEUE_TYPE |
The mode of distributing requests |
|
QUEUE_TIME |
The time for a request to move to the next operator |
|
NO_ANSWER_TIME |
The time until the no-answer scenario is triggered |
|
CHECK_AVAILABLE |
Check the availability of operators. Possible values:
|
|
WATCH_TYPING |
Show the operator's typing. Possible values:
|
|
WELCOME_BOT_ENABLE |
The status of using the welcome bot. Possible values:
|
|
WELCOME_MESSAGE |
The status of the welcome message. Possible values:
|
|
WELCOME_MESSAGE_TEXT |
The text of the welcome message |
|
VOTE_MESSAGE |
The status of the feedback request. Possible values:
|
|
VOTE_TIME_LIMIT |
Time limit for feedback |
|
VOTE_BEFORE_FINISH |
Request feedback before the dialog ends. Possible values:
|
|
VOTE_CLOSING_DELAY |
Use a delay for closing after feedback. Possible values:
|
|
VOTE_MESSAGE_1_TEXT |
The text of the first feedback scenario |
|
VOTE_MESSAGE_1_LIKE |
The text for positive feedback in the first scenario |
|
VOTE_MESSAGE_1_DISLIKE |
The text for negative feedback in the first scenario |
|
VOTE_MESSAGE_2_TEXT |
The text of the second feedback scenario |
|
VOTE_MESSAGE_2_LIKE |
The text for positive feedback in the second scenario |
|
VOTE_MESSAGE_2_DISLIKE |
The text for negative feedback in the second scenario |
|
AGREEMENT_MESSAGE |
The status of displaying the agreement message. Possible values:
|
|
AGREEMENT_ID |
The ID of the agreement |
|
CATEGORY_ENABLE |
The status of using categories. Possible values:
|
|
CATEGORY_ID |
The ID of the category |
|
WELCOME_BOT_JOIN |
The mode of connecting the welcome bot |
|
WELCOME_BOT_ID |
The ID of the welcome bot |
|
WELCOME_BOT_TIME |
The waiting time for connecting the welcome bot |
|
WELCOME_BOT_LEFT |
The mode of disconnecting the welcome bot |
|
NO_ANSWER_RULE |
The scenario for no response from the operator |
|
NO_ANSWER_FORM_ID |
The ID of the no-answer scenario form |
|
NO_ANSWER_BOT_ID |
The ID of the no-answer scenario bot |
|
NO_ANSWER_TEXT |
The text of the no-answer message |
|
WORKTIME_ENABLE |
The status of considering working hours. Possible values:
|
|
WORKTIME_FROM |
Start of working hours |
|
WORKTIME_TO |
End of working hours |
|
WORKTIME_TIMEZONE |
Time zone of working hours |
|
WORKTIME_HOLIDAYS |
Array of holidays |
|
WORKTIME_DAYOFF |
Array of days off |
|
WORKTIME_DAYOFF_RULE |
The scenario for handling requests during non-working hours |
|
WORKTIME_DAYOFF_FORM_ID |
The ID of the non-working hours scenario form |
|
WORKTIME_DAYOFF_BOT_ID |
The ID of the non-working hours scenario bot |
|
WORKTIME_DAYOFF_TEXT |
The text of the message during non-working hours |
|
CLOSE_RULE |
The scenario for closing the dialog |
|
CLOSE_FORM_ID |
The ID of the closing form |
|
CLOSE_BOT_ID |
The ID of the closing bot |
|
CLOSE_TEXT |
The text of the closing message |
|
FULL_CLOSE_TIME |
The time for full session closure |
|
AUTO_CLOSE_RULE |
The scenario for auto-closing |
|
AUTO_CLOSE_FORM_ID |
The ID of the auto-closing form |
|
AUTO_CLOSE_BOT_ID |
The ID of the auto-closing bot |
|
AUTO_CLOSE_TIME |
The time until auto-closing |
|
AUTO_CLOSE_TEXT |
The text for auto-closing |
|
AUTO_EXPIRE_TIME |
The time for activity expiration |
|
DATE_CREATE |
The creation date of the setting in serialized form |
|
DATE_MODIFY |
The modification date of the setting in serialized form |
|
MODIFY_USER_ID |
The ID of the user who modified the settings |
|
TEMPORARY |
The status of a temporary line. Possible values:
|
|
XML_ID |
External ID. Possible values:
|
|
LANGUAGE_ID |
The language of the line |
|
QUICK_ANSWERS_IBLOCK_ID |
The ID of the quick answers information block |
|
SESSION_PRIORITY |
The session priority |
|
TYPE_MAX_CHAT |
The mode for limiting active dialogs per operator |
|
MAX_CHAT |
Maximum active dialogs per operator |
|
OPERATOR_DATA |
The mode for displaying operator data |
|
QUEUE |
IDs of operators in the queue |
|
QUEUE_FULL |
Data of queue items. The key of the object is the user ID, the value is the queue (detailed description) |
|
QUEUE_USERS_FIELDS |
User fields in the queue. The key of the object is the user ID, the value is the user description (detailed description) |
|
QUEUE_ONLINE |
The status of checking the online status of operators. Possible values:
|
|
DEFAULT_OPERATOR_DATA |
Set of default operator display fields |
|
KPI_FIRST_ANSWER_TIME |
Norm for the first response time |
|
KPI_FIRST_ANSWER_ALERT |
The status of notification for overdue first response. Possible values:
|
|
KPI_FIRST_ANSWER_LIST |
List of recipients for first response notifications. Possible values:
|
|
KPI_FIRST_ANSWER_TEXT |
Text for overdue first response notification |
|
KPI_FURTHER_ANSWER_TIME |
Norm for subsequent response times |
|
KPI_FURTHER_ANSWER_ALERT |
The status of notification for overdue subsequent responses. Possible values:
|
|
KPI_FURTHER_ANSWER_LIST |
List of recipients for subsequent response notifications. Possible values:
|
|
KPI_FURTHER_ANSWER_TEXT |
Text for overdue subsequent response notification |
|
KPI_CHECK_OPERATOR_ACTIVITY |
The status of monitoring operator activity. Possible values:
|
|
SEND_NOTIFICATION_EMPTY_QUEUE |
The status of notifications for an empty queue. Possible values:
|
|
USE_WELCOME_FORM |
The status of using the welcome form. Possible values:
|
|
WELCOME_FORM_ID |
The ID of the welcome form |
|
WELCOME_FORM_DELAY |
The status of delay in showing the welcome form. Possible values:
|
|
SEND_WELCOME_EACH_SESSION |
Show the welcome message in each session. Possible values:
|
|
CONFIRM_CLOSE |
Require confirmation for closing. Possible values:
|
|
IGNORE_WELCOME_FORM_RESPONSIBLE |
Ignore the responsible person in the welcome form. Possible values:
|
Object QUEUE_FULL
|
Name |
Description |
|
ID |
The ID of the queue item record |
|
SORT |
Position in the queue |
|
USER_ID |
User ID |
|
DEPARTMENT_ID |
Department ID |
|
USER_NAME |
User name. Possible values:
|
|
USER_WORK_POSITION |
User position. Possible values:
|
|
USER_AVATAR |
Link to avatar. Possible values:
|
|
USER_AVATAR_ID |
Avatar file ID |
Object QUEUE_USERS_FIELDS
|
Name |
Description |
|
USER_NAME |
User name. Possible values:
|
|
USER_WORK_POSITION |
User position. Possible values:
|
|
USER_AVATAR |
Link to avatar. Possible values:
|
|
USER_AVATAR_ID |
Avatar file ID |
Error Handling
HTTP Status: 400
{
"error": "CONFIG_ID_EMPTY",
"error_description": "Config ID can't be empty"
}
|
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 |
|
|
|
Config ID can't be empty |
The |
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 allowed to be called using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The methods must be called using the HTTPS protocol |
|
|
|
The REST API is blocked due to overload. This is a manual individual block, to remove it you need to contact Bitrix24 technical support |
|
|
|
The REST API is available only on commercial plans |
|
|
|
The user whose access token or webhook was used to call the method lacks 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 account administrator has allowed access to this application only for specific users |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the option "Temporary closure of the public part of the site". Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Open Lines in Bitrix24
- Add Open Channel imopenlines.config.add
- Update Open Channel imopenlines.config.update
- Get the List of Open Channels imopenlines.config.list.get
- Delete Open Channel imopenlines.config.delete
- Get Link to Public Page of Open Channels imopenlines.config.path.get