[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-voximplant-sip":3,"docs-tabs-voximplant-sip":6},{"content":4,"lastmod":5},"# SIP connections\n\nManage SIP connections of office and cloud PBXs through which the Bitrix24 account receives and places calls.\n\n**Scope:** `telephony` | **Base URL:** `https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1` | **Authorization:** `X-Api-Key`\n\n## What to know before you start\n\n1. **Two PBX types.** `cloud` is a cloud PBX, `office` is an office PBX. The type is set on creation, defaults to `cloud`, and cannot be changed afterwards. For an office PBX, Bitrix24 issues an address and a login for incoming calls on creation — the `incomingServer` and `incomingLogin` fields.\n2. **Passwords are write-only.** `password` is passed on create and update but never comes back in a response: responses carry the `hasPassword` and `hasIncomingPassword` flags instead of passwords. The list cannot be filtered or sorted by these flags.\n3. **Five fields can be set through the API:** `type`, `title`, `server`, `login`, `password`. All other connection fields are read-only, and an extra field in the request body returns `400 READONLY_FIELD`.\n4. **Only your own application's connections are visible.** The methods in this section work with connections created by the same Bitrix24 application as the key: an application key works with its own application's connections; a personal key works with connections created through the Bitrix24 account's webhooks. Another application's connection does not appear in the list, and the methods return `404 ENTITY_NOT_FOUND` for its `configId`.\n5. **The type of `configId` depends on the method.** List, get, create and update responses return it as a string; the delete response returns it as a number. In the path the ID is passed as a number: `\u002Fv1\u002Fvoximplant-sip\u002F17`.\n\n## Quick start\n\nList the SIP connections available to the key:\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-sip\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\nThe response contains an array of connections in `data` and their count in `meta.total`. Connection fields are described on the [List connections](\u002Fdocs\u002Fvoximplant-sip\u002Flist) page.\n\n## Full example\n\nAn office PBX connection from creation to deletion: create it, read it, change the login and password, delete it. Run the script in Node.js 18+ from a file with the `.mjs` extension.\n\n```javascript\nconst BASE = 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-sip'\nconst API_KEY = 'YOUR_API_KEY'\n\nasync function call(method, path, body) {\n  const headers = { 'X-Api-Key': API_KEY }\n  if (body) headers['Content-Type'] = 'application\u002Fjson'\n  const res = await fetch(BASE + path, { method, headers, body: body && JSON.stringify(body) })\n  const json = await res.json()\n  if (!json.success) throw new Error(`${json.error.code}: ${json.error.message}`)\n  return json.data\n}\n\n\u002F\u002F 1. Create an office PBX connection\nconst created = await call('POST', '', {\n  type: 'office',\n  title: 'Office PBX',\n  server: 'sip.example.com',\n  login: 'office-line',\n  password: 'EXAMPLE_SIP_PASSWORD',\n})\nconsole.log('Created:', created.configId, 'incoming server:', created.incomingServer)\n\n\u002F\u002F 2. Read the connection\nconst sip = await call('GET', `\u002F${created.configId}`)\nconsole.log('Type:', sip.type, 'password set:', sip.hasPassword)\n\n\u002F\u002F 3. Change the login and password\nconst updated = await call('PATCH', `\u002F${created.configId}`, {\n  login: 'office-line-2',\n  password: 'EXAMPLE_NEW_SIP_PASSWORD',\n})\nconsole.log('New login:', updated.login)\n\n\u002F\u002F 4. Delete the connection\nconst removed = await call('DELETE', `\u002F${created.configId}`)\nconsole.log('Deleted:', removed.deleted)\n```\n\n## Endpoint reference\n\n| Method | Path | Bitrix24 method | Description |\n|-------|------|---------------|----------|\n| GET | [`\u002Fv1\u002Fvoximplant-sip`](\u002Fdocs\u002Fvoximplant-sip\u002Flist) | voximplant.sip.get | List connections with filtering, sorting and pagination |\n| GET | [`\u002Fv1\u002Fvoximplant-sip\u002F:configId`](\u002Fdocs\u002Fvoximplant-sip\u002Fget) | voximplant.sip.get | A single connection by ID |\n| POST | [`\u002Fv1\u002Fvoximplant-sip`](\u002Fdocs\u002Fvoximplant-sip\u002Fcreate) | voximplant.sip.add | Create a connection |\n| PATCH | [`\u002Fv1\u002Fvoximplant-sip\u002F:configId`](\u002Fdocs\u002Fvoximplant-sip\u002Fupdate) | voximplant.sip.update | Change the title, server, login or password |\n| DELETE | [`\u002Fv1\u002Fvoximplant-sip\u002F:configId`](\u002Fdocs\u002Fvoximplant-sip\u002Fdelete) | voximplant.sip.delete | Delete a connection |\n\n## Error codes\n\n### SIP connection errors\n\n| HTTP | Code | When |\n|------|-----|-------|\n| 400 | `INVALID_PARAMS` | Invalid list parameters `filter`, `sort`, `order`, `start`; `configId` is not a positive integer; the body is not a JSON object; `type` is neither `office` nor `cloud`; a field value is not a string; an update contains no field other than `type` |\n| 400 | `MISSING_REQUIRED_FIELDS` | `server` or `login` is missing on create |\n| 400 | `READONLY_FIELD` | The body contains a field other than `type`, `title`, `server`, `login`, `password`; or on update `type` differs from the current one |\n| 404 | `ENTITY_NOT_FOUND` | No connection with this `configId` among the connections available to the key |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request or did not confirm the update or deletion; the reason is in `error.message` |\n\n### System errors\n\n| HTTP | Code | When |\n|------|-----|-------|\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `INVALID_API_KEY` | The platform does not recognize the key string: a typo, a truncated value, or a deleted key |\n| 401 | `TOKEN_MISSING` | The key has no access to the portal: a personal key has no portal webhook, or an application key was sent without a session token in `Authorization: Bearer` |\n| 403 | `SCOPE_DENIED` | The key lacks the `telephony` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | A read-only key attempts to create, update or delete a connection |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access — [causes explained](\u002Fdocs\u002Ferrors\u002Fauth#bitrix_access_denied-403) |\n| 429 | `RATE_LIMITED` | Request rate exceeded |\n| 429 | `QUEUE_OVERFLOW` | The account request queue is full, so the request is rejected without waiting. The `Retry-After` header suggests the delay |\n| 429 | `QUEUE_TIMEOUT` | The request did not get through the account queue in time and was not sent to Bitrix24. The `Retry-After` header suggests the delay |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Default outgoing line](\u002Fdocs\u002Fvoximplant-lines\u002Fdefault)\n- [Employee telephony settings](\u002Fdocs\u002Ftelephony-users)\n- [Calls](\u002Fdocs\u002Fcalls)\n- [Telephony](\u002Fdocs\u002Ftelephony)\n","2026-10-13",{},1795527700483]