For AI agents: markdown of this page — /docs-content-en/openlines/operator/pause.md documentation index — /llms.txt
Read my pause
GET /v1/openlines/operator/pause
Returns the Open Channel operator pause state for the employee the call runs as.
No parameters. The employee is determined by authorization — see On whose behalf the action runs.
Examples
curl — personal key
curl -X GET https://vibecode.bitrix24.com/v1/openlines/operator/pause \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X GET https://vibecode.bitrix24.com/v1/openlines/operator/pause \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/openlines/operator/pause', {
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const { data } = await res.json()
console.log('Pause on:', data.paused)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/openlines/operator/pause', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { data } = await res.json()
console.log('Pause on:', data.paused)
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | Descriptiontrue on a successful request |
Fielddata.paused |
Typeboolean | Descriptiontrue — the pause is on, false — it is off |
Response example
The pause is off:
{
"success": true,
"data": {
"paused": false
}
}
Error response example
401 — the X-Api-Key header is missing:
{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "API key required. Pass via X-Api-Key header."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP422 | CodeBITRIX_ERROR |
DescriptionBitrix24 rejected the request. The refusal text is in message |
| HTTP403 | CodeBITRIX_ACCESS_DENIED |
DescriptionThe employee the call runs as has no permission for the action |
| HTTP502 | CodeOPENLINE_OPERATOR_FAILED |
DescriptionBitrix24 returned a non-boolean value instead of the pause state |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe key has no imopenlines scope |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header is missing |
| HTTP401 | CodeINVALID_API_KEY |
DescriptionThe key is not recognized |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionA personal key has no access to the Bitrix24 portal, or an application key was sent without a session token in Authorization |
| HTTP502 | CodeBITRIX_UNAVAILABLE |
DescriptionBitrix24 is unavailable or the connection to it broke before the response was complete |
Full list of common API errors — Errors.