For AI agents: markdown of this page — /docs-content-en/openlines/config/fields.md documentation index — /llms.txt

Open Channel configuration fields

GET /v1/openline-configs/fields

Returns the schema of fields available for filtering and sorting, as well as the full registry of fields in the list, get, and search responses.

Examples

curl — personal key

Terminal
curl "https://vibecode.bitrix24.com/v1/openline-configs/fields" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl "https://vibecode.bitrix24.com/v1/openline-configs/fields" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/openline-configs/fields', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data } = await res.json()
console.log('Schema fields:', Object.keys(data.fields))

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/openline-configs/fields', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { success, data } = await res.json()

Response fields

The /fields endpoint returns data.fields — a description of all fields in the list, get, and search responses: each field carries type, readonly, a label, and a description. Field names are in camelCase. The full set in get is 95 fields, in list/search — 91 (without the 4 operator queue fields). data additionally contains aggregatable and batch.

Field schema (data.fields)

/fields returns the full field set — each with type, readonly, label, and description. Filtering (filter), sorting (sort), and grouping (groupBy) operate on these camelCase names. Below are the core fields most often used in sort and filter:

Field Type RO Description
Fieldid Typenumber ROyes DescriptionConfiguration identifier
Fieldname Typestring RO DescriptionOpen Channel name
Fieldactive Typeboolean RO DescriptionWhether the channel is active
FieldqueueType Typestring RO DescriptionDistribution algorithm: all — to all operators at once, evenly — evenly, strictly — strictly in the queue order
FieldworkTimeFrom Typestring RO DescriptionStart of working hours (for example, "8" or "9.30")
FieldworkTimeTo Typestring RO DescriptionEnd of working hours

data additionally specifies:

  • aggregatable — fields available for groupBy: ["active", "queueType"]
  • batch — the set of batch operations declared for this entity in the /fields response: empty array []

In get the data object contains 95 fields (all camelCase), in list/search — 91 (without the 4 fields marked "get only": queue, queueFull, queueUsersFields, queueOnline). A field name marked "get only" returns 400 UNSUPPORTED_LIST_FIELD when passed in select, filter or sort of the list and search methods.

Core

Field Type RO Source Description
Fieldid Typenumber ROyes Sourceeverywhere DescriptionConfiguration identifier
Fieldname Typestring RO Sourceeverywhere DescriptionOpen Channel name
Fieldactive Typeboolean RO Sourceeverywhere DescriptionChannel is active (true/false)
Fieldtemporary Typestring RO Sourceeverywhere DescriptionTemporary channel: "Y" / "N"
FieldxmlId Typestring|null RO Sourceeverywhere DescriptionExternal identifier
FieldlanguageId Typestring|null RO Sourceeverywhere DescriptionChannel language (for example, "en"). null if the language is not set

Queue and operators

Field Type RO Source Description
FieldqueueType Typestring RO Sourceeverywhere DescriptionDistribution algorithm: all — to all operators at once, evenly — evenly, strictly — strictly in the queue order
FieldqueueTime Typestring RO Sourceeverywhere DescriptionWait time in the queue (seconds)
FieldnoAnswerTime Typestring RO Sourceeverywhere DescriptionTime without an operator response before switching (seconds)
FieldcheckAvailable Typestring RO Sourceeverywhere DescriptionCheck operator availability: "Y" / "N"
FieldmaxChat Typestring|null RO Sourceeverywhere DescriptionMaximum number of simultaneous chats per operator ("0" — no limit). null if not set
FieldtypeMaxChat Typestring|null RO Sourceeverywhere DescriptionChat-limit counting type: answered — only accepted, total — all. null if not set
Fieldqueue Typestring[] ROyes Sourceget only DescriptionArray of operator IDs in the queue (strings)
FieldqueueFull Typeobject ROyes Sourceget only DescriptionOperator objects with the fields ID, SORT, USER_ID, DEPARTMENT_ID, USER_NAME, USER_WORK_POSITION, USER_AVATAR, USER_AVATAR_ID
FieldqueueUsersFields Typeobject ROyes Sourceget only DescriptionOperator profile data: USER_NAME, USER_WORK_POSITION, USER_AVATAR, USER_AVATAR_ID
FieldqueueOnline Typestring ROyes Sourceget only DescriptionWhether any operators are online at the moment: "Y" / "N"

CRM integration

Field Type RO Source Description
Fieldcrm Typestring RO Sourceeverywhere DescriptionEnable CRM integration: "Y" / "N"
FieldcrmCreate Typestring RO Sourceeverywhere DescriptionType of CRM record created on the first inquiry: none, lead, deal
FieldcrmCreateSecond Typestring RO Sourceeverywhere DescriptionRecord type on repeat inquiries (numeric type identifier)
FieldcrmCreateThird Typestring RO Sourceeverywhere DescriptionRecord type on the third and subsequent inquiries: "Y" / "N"
FieldcrmForward Typestring RO Sourceeverywhere DescriptionForward the inquiry to the responsible person from CRM: "Y" / "N"
FieldcrmChatTracker Typestring RO Sourceeverywhere DescriptionEnable the chat tracker in CRM: "Y" / "N"
FieldcrmTransferChange Typestring RO Sourceeverywhere DescriptionChange the responsible person when transferring the chat: "Y" / "N"
FieldcrmSource Typestring RO Sourceeverywhere DescriptionCRM record source: create — create, any other value — take from history

Welcome message

Field Type RO Source Description
FieldwelcomeMessage Typestring RO Sourceeverywhere DescriptionShow the welcome message: "Y" / "N"
FieldwelcomeMessageText Typestring RO Sourceeverywhere DescriptionWelcome text (supports BB code)
FieldwatchTyping Typestring RO Sourceeverywhere DescriptionShow the typing indicator: "Y" / "N"
FieldsendWelcomeEachSession Typestring RO Sourceeverywhere DescriptionSend the welcome on every new session: "Y" / "N"

Welcome bot

Field Type RO Source Description
FieldwelcomeBotEnable Typestring RO Sourceeverywhere DescriptionEnable the welcome bot: "Y" / "N"
FieldwelcomeBotId Typestring RO Sourceeverywhere DescriptionBitrix24 bot user ID. For an AI agent: bitrixBotId from GET /v1/agents; for a standalone bot: id from GET /v1/bots
FieldwelcomeBotTime Typestring RO Sourceeverywhere DescriptionBot response wait time (seconds)
FieldwelcomeBotJoin Typestring RO Sourceeverywhere DescriptionWhen the bot joins: always — always, other values per configuration
FieldwelcomeBotLeft Typestring RO Sourceeverywhere DescriptionWhen the bot leaves the chat: queue — after being placed in the queue, other values per configuration

Working hours

Field Type RO Source Description
FieldworkTimeEnable Typestring RO Sourceeverywhere DescriptionEnable the working-hours schedule: "Y" / "N"
FieldworkTimeFrom Typestring RO Sourceeverywhere DescriptionStart of the working day (for example, "8", "9.30")
FieldworkTimeTo Typestring RO Sourceeverywhere DescriptionEnd of the working day
FieldworkTimeTimezone Typestring RO Sourceeverywhere DescriptionTime zone (for example, "UTC")
FieldworkTimeHolidays Typestring[] RO Sourceeverywhere DescriptionHoliday non-working days in "DD.MM" format (for example, ["1.01","25.12"])
FieldworkTimeDayoff Typestring[] RO Sourceeverywhere DescriptionNon-working days of the week: "MO", "TU", "WE", "TH", "FR", "SA", "SU"

Non-working-hours, no-answer, and close scenarios

Three groups of four fields each — scenario, form, bot, text:

Field Type RO Source Description
FieldworkTimeDayoffRule Typestring RO Sourceeverywhere DescriptionAction on a day off: text — message, form — form, bot — bot, none — nothing
FieldworkTimeDayoffFormId Typestring RO Sourceeverywhere DescriptionID of the form for non-working hours
FieldworkTimeDayoffBotId Typestring RO Sourceeverywhere DescriptionID of the bot for non-working hours. List: GET /v1/bots
FieldworkTimeDayoffText Typestring RO Sourceeverywhere DescriptionMessage text during non-working hours (supports BB code)
FieldnoAnswerRule Typestring RO Sourceeverywhere DescriptionAction on no answer: text, form, bot, none
FieldnoAnswerFormId Typestring RO Sourceeverywhere DescriptionID of the form on no answer
FieldnoAnswerBotId Typestring RO Sourceeverywhere DescriptionID of the bot on no answer. List: GET /v1/bots
FieldnoAnswerText Typestring RO Sourceeverywhere DescriptionMessage text on no answer
FieldcloseRule Typestring RO Sourceeverywhere DescriptionAction on chat close: text, form, bot, none
FieldcloseFormId Typestring RO Sourceeverywhere DescriptionID of the form on close
FieldcloseBotId Typestring RO Sourceeverywhere DescriptionID of the bot on close. List: GET /v1/bots
FieldcloseText Typestring RO Sourceeverywhere DescriptionMessage text on close
FieldfullCloseTime Typestring RO Sourceeverywhere DescriptionTime until the chat is fully closed (seconds)
FieldconfirmClose Typestring RO Sourceeverywhere DescriptionAsk for confirmation when closing the chat: "Y" / "N"
FieldshowNotificationRedirect Typestring|null RO Sourceeverywhere DescriptionShow a notification on redirect: "Y" / "N" / null

Auto-close on inactivity

Field Type RO Source Description
FieldautoCloseRule Typestring RO Sourceeverywhere DescriptionAction when the inactivity time expires: text, form, bot, none
FieldautoCloseFormId Typestring RO Sourceeverywhere DescriptionID of the form on auto-close
FieldautoCloseBotId Typestring RO Sourceeverywhere DescriptionID of the bot on auto-close. List: GET /v1/bots
FieldautoCloseTime Typestring RO Sourceeverywhere DescriptionTime until the chat auto-closes (seconds)
FieldautoCloseText Typestring|null RO Sourceeverywhere DescriptionText on auto-close. An unset value comes back as null
FieldautoExpireTime Typestring RO Sourceeverywhere DescriptionSession expiration time due to inactivity (seconds)

Quality rating

Field Type RO Source Description
FieldvoteMessage Typestring RO Sourceeverywhere DescriptionEnable the rating request: "Y" / "N"
FieldvoteTimeLimit Typestring RO Sourceeverywhere DescriptionTime limit for the rating (seconds, "0" — no limit)
FieldvoteBeforeFinish Typestring RO Sourceeverywhere DescriptionRequest the rating before finishing the chat: "Y" / "N"
FieldvoteClosingDelay Typestring RO Sourceeverywhere DescriptionDelay closing after the rating: "Y" / "N"
FieldvoteMessage1Text Typestring RO Sourceeverywhere DescriptionRating request text (simple messages with buttons)
FieldvoteMessage1Like Typestring RO Sourceeverywhere DescriptionResponse on a positive rating
FieldvoteMessage1Dislike Typestring RO Sourceeverywhere DescriptionResponse on a negative rating
FieldvoteMessage2Text Typestring RO Sourceeverywhere DescriptionRating request text (text mode, 1/0)
FieldvoteMessage2Like Typestring RO Sourceeverywhere DescriptionResponse on 1 (positive)
FieldvoteMessage2Dislike Typestring RO Sourceeverywhere DescriptionResponse on 0 (negative)

Agreements and categories

Field Type RO Source Description
FieldagreementMessage Typestring RO Sourceeverywhere DescriptionRequest consent to the terms: "Y" / "N"
FieldagreementId Typestring RO Sourceeverywhere DescriptionID of the terms document
FieldcategoryEnable Typestring RO Sourceeverywhere DescriptionEnable inquiry categorization: "Y" / "N"
FieldcategoryId Typestring RO Sourceeverywhere DescriptionID of the default category

Wait form

Field Type RO Source Description
FielduseWelcomeForm Typestring RO Sourceeverywhere DescriptionShow a form before queueing: "Y" / "N"
FieldwelcomeFormId Typestring RO Sourceeverywhere DescriptionID of the wait form
FieldwelcomeFormDelay Typestring RO Sourceeverywhere DescriptionDelay showing the form: "Y" / "N"
FieldignoreWelcomeFormResponsible Typestring RO Sourceeverywhere DescriptionSkip the form for the responsible person from CRM: "Y" / "N"

Operator and session

Field Type RO Source Description
FieldoperatorData Typestring RO Sourceeverywhere DescriptionOperator data in the chat: profile — full profile
FielddefaultOperatorData Typeobject RO Sourceeverywhere DescriptionDefault operator data: an object with NAME and AVATAR. When it is not set, null comes back — not an empty array (the field used to be declared an array, see the changelog)
FieldsessionPriority Typestring RO Sourceeverywhere DescriptionSession priority ("0" — standard)
FieldquickAnswersIblockId Typestring RO Sourceeverywhere DescriptionID of the information block with quick answers

KPI

Field Type RO Source Description
FieldkpiFirstAnswerTime Typestring RO Sourceeverywhere DescriptionFirst-response time target (seconds)
FieldkpiFirstAnswerAlert Typestring RO Sourceeverywhere DescriptionSend an alert when the first-response KPI is breached: "Y" / "N"
FieldkpiFirstAnswerList Typestring[] RO Sourceeverywhere DescriptionList of recipient IDs for the first-response KPI alert. An empty set comes back as []
FieldkpiFirstAnswerText Typestring|null RO Sourceeverywhere DescriptionAlert text template (supports #OPERATOR#, #DIALOG#). null if not set
FieldkpiFurtherAnswerTime Typestring RO Sourceeverywhere DescriptionSubsequent-response time target (seconds)
FieldkpiFurtherAnswerAlert Typestring RO Sourceeverywhere DescriptionSend an alert when the subsequent-response KPI is breached: "Y" / "N"
FieldkpiFurtherAnswerList Typestring[] RO Sourceeverywhere DescriptionList of recipient IDs for the alert. An empty set comes back as []
FieldkpiFurtherAnswerText Typestring|null RO Sourceeverywhere DescriptionAlert text template. null if not set
FieldkpiCheckOperatorActivity Typestring RO Sourceeverywhere DescriptionMonitor operator activity: "Y" / "N"
FieldsendNotificationEmptyQueue Typestring RO Sourceeverywhere DescriptionNotify on an empty queue: "Y" / "N"

Service

Field Type RO Source Description
FielddateCreate Typeobject ROyes Sourceeverywhere DescriptionCreation date — comes back as an empty object {}
FielddateModify Typeobject ROyes Sourceeverywhere DescriptionLast-modification date — comes back as an empty object {}
FieldmodifyUserId Typestring ROyes Sourceeverywhere DescriptionID of the user who made the last change. Lookup: GET /v1/users

Response example

A few representative fields are shown. The full set is larger — 95 fields in get, 91 in list/search.

JSON
{
  "success": true,
  "data": {
    "fields": {
      "id": { "type": "number", "readonly": true, "label": "ID", "description": "Configuration identifier." },
      "name": { "type": "string", "readonly": false, "label": "Line name", "description": "Open line name." },
      "active": { "type": "boolean", "readonly": false, "label": "Line active", "description": "Line is active (true/false)." },
      "queueType": { "type": "string", "readonly": false, "label": "Distribution algorithm", "description": "Distribution algorithm: all — to everyone at once, evenly — evenly, strictly — strictly by queue order." },
      "crmCreate": { "type": "string", "readonly": false, "label": "CRM record to create", "description": "Type of CRM record created on first contact: none, lead, deal." },
      "welcomeMessage": { "type": "string", "readonly": false, "label": "Show welcome", "description": "Show welcome message: Y/N." },
      "workTimeFrom": { "type": "string", "readonly": false, "label": "Work day start", "description": "Work day start (for example 8, 9.30)." }
    },
    "aggregatable": ["active", "queueType"],
    "batch": []
  }
}

Error response example

403 — no scope:

JSON
{
  "success": false,
  "error": {
    "code": "SCOPE_DENIED",
    "message": "Access denied. Required scope: imopenlines"
  }
}

Errors

HTTP Code Description
HTTP401 CodeTOKEN_MISSING DescriptionThe API key was not passed
HTTP403 CodeSCOPE_DENIED DescriptionThe API key lacks the imopenlines scope

Full list of common API errors — Errors.

Known specifics

A single set of names — camelCase. All fields in the list/get/search responses come back in camelCase. The /fields endpoint (data.fields) describes each field with type, readonly, label, and description. filter, sort, groupBy operate on these names. 91 fields total in list/search, 95 in get (the 4 operator queue fields are added). On write (create/update) camelCase is the canonical case. UPPER_SNAKE_CASE names are also accepted for backward compatibility. Boolean fields accept true/false on write (coerced to "Y"/"N").

Numeric fields come as strings. queueTime, noAnswerTime, autoCloseTime, maxChat, kpiFirstAnswerTime, and others — strings ("60", "180"). The exceptions are id (number) and active (boolean): these two fields are transformed by the Vibecode API schema.

dateCreate and dateModify are always empty objects {}. Bitrix24 does not pass date values through these fields.

See also