[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fsites\u002Fgroup-binding\u002Flist":3,"docs-tabs-entities\u002Fsites\u002Fgroup-binding\u002Flist":6},{"content":4,"lastmod":5},"## List knowledge base bindings to workgroups\n\n`GET \u002Fv1\u002Fsites\u002Fgroup-bindings`\n\nReturns knowledge base bindings to the Bitrix24 account's workgroups, all at once or for one group.\n\nHow a binding affects the site type is described in [Knowledge base bindings to a workgroup](\u002Fdocs\u002Fentities\u002Fsites\u002Fgroup-binding).\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `groupId` (query) | number | no | Workgroup ID. List: `GET \u002Fv1\u002Fworkgroups`. A positive integer. An empty value, zero or a non-numeric string returns `400 INVALID_PARAMS`. Without the parameter, bindings of all groups are returned |\n| `scope` (query) | string | no | Site scope: `KNOWLEDGE`, `GROUP` or `MAINPAGE`. Any other value returns `400 INVALID_SCOPE` |\n\nThere is no pagination: the response contains all bindings matching the filter in a single array. The `limit` and `offset` parameters are ignored.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsites\u002Fgroup-bindings\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsites\u002Fgroup-bindings\" \\\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\u002Fsites\u002Fgroup-bindings', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nconsole.log(`Bindings: ${data.length}`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsites\u002Fgroup-bindings', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Array of bindings. An empty array if no bindings match the filter |\n| `data[].siteId` | number | Knowledge base site ID. Get the site: `GET \u002Fv1\u002Fsites\u002F:id?scope=GROUP` |\n| `data[].groupId` | number | Workgroup ID. Get the group: `GET \u002Fv1\u002Fworkgroups\u002F:id` |\n| `data[].title` | string | Site title. An empty string if no title was returned |\n| `data[].publicUrl` | string | Public URL of the knowledge base site. An empty string if no URL was returned |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"siteId\": 125,\n      \"groupId\": 51,\n      \"title\": \"Knowledge base\",\n      \"publicUrl\": \"https:\u002F\u002Fexample.bitrix24.com\u002Fknowledge\u002Fgroup\u002Fknowledge_base\u002F\"\n    },\n    {\n      \"siteId\": 95,\n      \"groupId\": 7,\n      \"title\": \"Support knowledge base\",\n      \"publicUrl\": \"https:\u002F\u002Fexample.bitrix24.com\u002Fknowledge\u002Fgroup\u002Fsupport_knowledge_base\u002F\"\n    }\n  ]\n}\n```\n\n## Error response example\n\n400 — empty `groupId` value:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"groupId must be a positive safe integer\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `groupId` is passed but is not a positive integer, including an empty value |\n| 400 | `INVALID_SCOPE` | `scope` is not `KNOWLEDGE`, `GROUP` or `MAINPAGE` |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned the list of bindings in an unexpected format |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access to the key owner |\n| 403 | `B24_TARIFF_RESTRICTION` | The portal plan does not allow the call |\n| 403 | `SCOPE_DENIED` | The API key does not have the `landing` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 429 | `RATE_LIMITED` | Bitrix24 throttled requests to the portal. Retry after the delay from the `Retry-After` header |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 responded with a server error or the connection dropped before a complete response. The request only reads data, so a retry is safe |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time. The request only reads data, so a retry is safe |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**The list contains only site bindings.** Bindings of individual knowledge base pages to a group are not included in the response, so `siteId` always points to a site, not a page.\n\n## See also\n\n- [Knowledge base bindings to a workgroup](\u002Fdocs\u002Fentities\u002Fsites\u002Fgroup-binding)\n- [Bind a knowledge base to a workgroup](\u002Fdocs\u002Fentities\u002Fsites\u002Fgroup-binding\u002Fbind)\n- [Unbind a knowledge base from a workgroup](\u002Fdocs\u002Fentities\u002Fsites\u002Fgroup-binding\u002Funbind)\n- [Knowledge base menu bindings](\u002Fdocs\u002Fentities\u002Fsites\u002Fmenu-bindings)\n- [List sites](\u002Fdocs\u002Fentities\u002Fsites\u002Flist)\n- [List workgroups](\u002Fdocs\u002Fentities\u002Fworkgroups\u002Flist)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-19",{},1795415300643]