[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcalendar-resources\u002Flist":3,"docs-tabs-entities\u002Fcalendar-resources\u002Flist":6},{"content":4,"lastmod":5},"\n## List calendar resources\n\n`GET \u002Fv1\u002Fcalendar-resources`\n\nReturns the calendar resources of the Bitrix24 account — use it to find a resource ID for bookings, renaming and deletion.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `limit` (query) | number | `50` | Number of records, up to 5000 |\n| `offset` (query) | number | `0` | How many records to skip from the start of the list |\n| `select` (query) | string | — | Comma-separated response fields: `?select=id,name`. Field list — [`GET \u002Fv1\u002Fcalendar-resources\u002Ffields`](.\u002Ffields.md) |\n| `withTotal` (query) | boolean | — | Requests the total count. Has no effect: `meta.total` is always returned, including with `false` |\n\n**Pagination.** Vibecode fetches the whole resource list and returns the window `[offset, offset + limit)`. The maximum is 5000 records per call. `meta.total` is the total number of resources; `meta.hasMore` shows whether there are resources beyond the window.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources?limit=3\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources?limit=3\" \\\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\u002Fcalendar-resources?limit=3', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(`Resources in the Bitrix24 account: ${meta.total}`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources?limit=3', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data, meta } = 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 resources |\n| `data[].id` | number | Resource ID |\n| `data[].name` | string | Resource name |\n| `data[].createdBy` | number | ID of the employee who created the resource. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers) |\n| `meta.total` | number | Total number of resources in the Bitrix24 account |\n| `meta.hasMore` | boolean | Whether there are resources beyond the `limit` and `offset` window |\n| `meta.warnings` | array | Warnings about request parameters — objects `{ code, message, field }`. Returned, for example, for `limit=0` with code `LIMIT_ZERO_IGNORED` and for an unknown field in `select` with code `UNKNOWN_SELECT_FIELD` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 7,\n      \"name\": \"Museum hall\",\n      \"createdBy\": 1\n    },\n    {\n      \"id\": 49,\n      \"name\": \"resource 1\",\n      \"createdBy\": 835\n    },\n    {\n      \"id\": 51,\n      \"name\": \"resource 2\",\n      \"createdBy\": 835\n    }\n  ],\n  \"meta\": {\n    \"total\": 9,\n    \"hasMore\": true\n  }\n}\n```\n\n## Error response example\n\n400 — a filter was passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNSUPPORTED_FILTER\",\n    \"message\": \"calendar-resources list does not support filter[]; B24 method \\\"calendar.resource.list\\\" takes no list parameters at all. Filter keys received: name. Filter it on your side.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `UNSUPPORTED_FILTER` | `filter` was passed. The list does not support filtering — filter resources on your side |\n| 400 | `INVALID_SORT_FIELD` | `order` or `sort` was passed. The list does not support sorting |\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied the key owner access to calendar resources |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 429 | `RATE_LIMITED` | Request limit exceeded |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a malformed response |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A single resource is available only through the list.** There is no endpoint for reading a single resource: `GET \u002Fv1\u002Fcalendar-resources\u002F:id` returns `404 ROUTE_NOT_FOUND`. Find the resource you need in this list by `id` or `name`.\n\n**`id` is returned with any `select`.** A request with an unknown name in `select` is not rejected — the response still contains the `id` of each resource.\n\n## See also\n\n- [Create calendar resource](.\u002Fcreate.md)\n- [Resource bookings](.\u002Fbookings.md)\n- [Calendar resource fields](.\u002Ffields.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-13",{},1795415185533]