Untuk ejen AI: markdown halaman ini — /docs-content-en/telephony-users.md indeks dokumentasi — /llms.txt
Artikel dokumentasi kini tersedia dalam bahasa Inggeris.
Employee telephony settings
GET /v1/telephony-users
Scope: telephony | Authentication: X-Api-Key | URL: https://vibecode.bitrix24.com/v1
GET /v1/telephony-users?userIds=42,43 calls voximplant.user.get with a USER_ID array. Requires an OAuth application key; webhook keys receive 403 OAUTH_REQUIRED before a Bitrix24 call. Response fields: id, defaultLine, phoneEnabled, sipServer, sipLogin, hasPassword, innerNumber. SIP_PASSWORD is never exposed. Bitrix24 checks permissions and may require administrator confirmation.
Errors: 400 invalid parameters; 401 key or token; 403 scope, Bitrix24 permissions or READONLY writes; 422 upstream refusal; 429 limits; 502 unavailable Bitrix24 account; 503 timeout or freeze.
Request parameters
| Field | Type | Required | Meaning |
|---|---|---|---|
| userIds | string | yes | Comma separated positive employee IDs from users. |
Response fields
| Field | Meaning |
|---|---|
| success | Boolean result |
| data | Result described above; credentials are omitted |
Examples
cURL OAuth
curl -X GET 'https://vibecode.bitrix24.com/v1/telephony-users?userIds=42,43' \
-H 'X-Api-Key: FAKE_VIBE_API_KEY' \
-H 'Authorization: Bearer FAKE_APP_SESSION_TOKEN'
JavaScript OAuth
const response = await fetch('https://vibecode.bitrix24.com/v1/telephony-users?userIds=42,43', {
method: 'GET',
headers: {"X-Api-Key": "FAKE_VIBE_API_KEY", "Authorization": "Bearer FAKE_APP_SESSION_TOKEN"},
});
console.log(await response.json());
Successful OAuth response was not checked live; no application OAuth key was available.
Errors
| HTTP | Code |
|---|---|
| 400 | INVALID_PARAMS / MISSING_REQUIRED_FIELDS / READONLY_FIELD |
| 401 | MISSING_API_KEY / INVALID_API_KEY / TOKEN_MISSING |
| 403 | SCOPE_DENIED / WRITE_BLOCKED_READONLY_KEY / BITRIX_ACCESS_DENIED |
| 422 | BITRIX_ERROR |
| 429 | RATE_LIMITED |
| 502 | BITRIX_UNAVAILABLE |
| 503 | BITRIX_TIMEOUT |
| 403 | OAUTH_REQUIRED |
403 when using a webhook key:
{
"success": false,
"error": {
"code": "OAUTH_REQUIRED",
"message": "This endpoint requires an OAuth application key; webhook keys have no application context."
}
}