[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fservice\u002Ftariff-restrictions":3,"docs-tabs-chats\u002Fservice\u002Ftariff-restrictions":6},{"content":4,"lastmod":5},"## Plan restrictions\n\n`GET \u002Fv1\u002Fchats\u002Ftariff-restrictions`\n\nMessenger restrictions on the Bitrix24 plan: whether the full chat history, collabs and other features are available. The client uses the response to decide what to show the user.\n\n## Parameters\n\nThere are no parameters. Any query parameter is rejected with `400 INVALID_PARAMS`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ftariff-restrictions\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ftariff-restrictions\" \\\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\u002Fchats\u002Ftariff-restrictions', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconst history = data.fullChatHistory\nconsole.log(history.isAvailable ? 'Full history available' : `History for ${history.limitDays} days`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ftariff-restrictions', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Collabs available:', data.collab?.isAvailable)\n```\n\n## Response fields\n\n`data` is the restrictions object. The key is the restriction code, the value is its data. Bitrix24 and its modules define the set of codes.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.fullChatHistory.isAvailable` | boolean | `true` — the full chat history is available |\n| `data.fullChatHistory.limitDays` | number \\| null | How many days of history are available if not all of it. `null` — no limit |\n| `data.collab.isAvailable` | boolean | `true` — collabs are available on the plan or can be enabled with a trial |\n| `data.collab.isCopyAvailable` | boolean | `true` — copying projects and groups is available on the plan |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"fullChatHistory\": { \"isAvailable\": true, \"limitDays\": null },\n    \"collab\": { \"isAvailable\": true, \"isCopyAvailable\": true }\n  }\n}\n```\n\n## Error response example\n\n400 — a query parameter was passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Query parameter `code` is not accepted by GET \u002Fv1\u002Fchats\u002Ftariff-restrictions. It takes no query parameters.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | A query parameter was passed — the operation accepts none |\n| 401 | `TOKEN_MISSING` | The API key has no Bitrix24 tokens configured |\n| 403 | `SCOPE_DENIED` | The API key does not have the `im` scope |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned an error. The Bitrix24 code is in `error.b24Code` |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a server error |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- Restriction codes (`fullChatHistory`, `collab`) arrive as is; the fields inside them are converted to camelCase.\n- Bitrix24 modules can add their own restrictions — do not rely on a fixed set of codes.\n\n## See also\n\n- [Update state](\u002Fdocs\u002Fchats\u002Fservice\u002Fstate)\n- [Service methods](\u002Fdocs\u002Fchats\u002Fservice)\n","2026-10-07",{},1794739552214]