[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-voximplant-lines\u002Fdefault":3,"docs-tabs-voximplant-lines\u002Fdefault":6},{"content":4,"lastmod":5},"## Get default outgoing line\n\n`GET \u002Fv1\u002Fvoximplant-lines\u002Fdefault`\n\nReturns the outgoing telephony line that the Bitrix24 account uses by default. The setting is shared across the entire account. To set another line, use [`PUT \u002Fv1\u002Fvoximplant-lines\u002Fdefault`](\u002Fdocs\u002Fvoximplant-lines\u002Fdefault-set).\n\n**Scope:** `telephony` | **Base URL:** `https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1` | **Authorization:** `X-Api-Key`\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-lines\u002Fdefault\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-lines\u002Fdefault\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-lines\u002Fdefault', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\nconst { data } = await res.json()\nconsole.log('Default line:', data.lineId)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-lines\u002Fdefault', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\nconst { data } = await res.json()\nconsole.log('Default line:', data.lineId)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data` | object | Line setting |\n| `data.lineId` | string \\| null | ID of the default outgoing line from [`GET \u002Fv1\u002Fvoximplant-lines`](\u002Fdocs\u002Ftelephony\u002Flines\u002Fvoximplant) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"lineId\": \"reg151083\"\n  }\n}\n```\n\n## Error response example\n\n401 — the `X-Api-Key` header was not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_API_KEY\",\n    \"message\": \"API key required. Pass via X-Api-Key header.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\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 Bitrix24 account: a personal key has no Bitrix24 account webhook, or an application key was sent without an `Authorization: Bearer` header with a session token |\n| 403 | `SCOPE_DENIED` | The key does not have the `telephony` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access — [causes](\u002Fdocs\u002Ferrors\u002Fauth#bitrix_access_denied-403) |\n| 403 | `B24_TARIFF_RESTRICTION` | The operation is not available on the Bitrix24 account plan |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request; the reason is in `error.message` |\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| 503 | `user_self_deletion_pending` | The key owner is deleting their user profile in the Bitrix24 account. The `Retry-After` header equals `604800` — the length of the deletion grace period |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Set default outgoing line](\u002Fdocs\u002Fvoximplant-lines\u002Fdefault-set)\n- [Telephony lines](\u002Fdocs\u002Fvoximplant-lines)\n- [Voximplant lines](\u002Fdocs\u002Ftelephony\u002Flines\u002Fvoximplant)\n- [SIP connections](\u002Fdocs\u002Fvoximplant-sip)\n","2026-10-20",{},1795415521083]