[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcalendar-resources\u002Fbookings":3,"docs-tabs-entities\u002Fcalendar-resources\u002Fbookings":6},{"content":4,"lastmod":5},"\n## Resource bookings\n\n`GET \u002Fv1\u002Fcalendar-resources\u002Fbookings`\n\nReturns the occupied intervals of calendar resources for a period — when each resource is occupied and by which booking.\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|:-----:|-----------|---------|\n| `resourceIds` (query) | string | Yes | — | Comma-separated calendar resource IDs: `?resourceIds=57,59`. List: [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md) |\n| `from` (query) | string | No | — | Period start — a date such as `2026-10-01`, or an ISO 8601 date with time. Without `from` and `to`, the period runs from 30 days before the current date to 90 days after it. If only `to` is passed, the period has no start limit |\n| `to` (query) | string | No | — | Period end in the same format. If only `from` is passed, the period has no end limit |\n\nThe generic `filter` parameter is not applied by this endpoint. By default, the API preserves the previous HTTP 200 response and data, adds `Warning: 299 - \"filter is not supported on this endpoint and was ignored\"`, and records unsupported-filter use in the server log.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?resourceIds=59&from=2025-01-21&to=2025-01-22\" \\\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\u002Fbookings?resourceIds=59&from=2025-01-21&to=2025-01-22\" \\\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 params = new URLSearchParams({ resourceIds: '59', from: '2025-01-21', to: '2025-01-22' })\nconst res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?${params}`, {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nfor (const slot of data) console.log(slot.resourceId, slot.from, slot.to)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst params = new URLSearchParams({ resourceIds: '59', from: '2025-01-21', to: '2025-01-22' })\nconst res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?${params}`, {\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`from` and `to` are returned for every interval; the other fields may be absent.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Occupied resource intervals |\n| `data[].id` | number | ID of the calendar event that occupies the resource |\n| `data[].name` | string | Event name |\n| `data[].resourceId` | number | Resource ID from `resourceIds` |\n| `data[].bookingId` | number \\| null | Resource booking ID |\n| `data[].from` | string | Interval start: ISO 8601 date and time with an offset. For an all-day interval — a date without time |\n| `data[].to` | string | Interval end in the same format. For an all-day interval — the last day, inclusive |\n| `data[].timezoneFrom` | string | Start time zone, for example `UTC`. Not returned for an all-day interval |\n| `data[].timezoneTo` | string | End time zone. Not returned for an all-day interval |\n| `data[].skipTime` | boolean | `true` — an all-day interval |\n| `data[].accessibility` | string | Availability status in the event, for example `busy` |\n| `data[].importance` | string | Event importance, for example `normal` |\n| `data[].eventType` | string | Event type. For a resource booking — `#resourcebooking#` |\n| `meta.total` | number | Number of intervals in the response |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"from\": \"2025-01-21T09:30:00+00:00\",\n      \"to\": \"2025-01-21T10:30:00+00:00\",\n      \"id\": 7667,\n      \"name\": \"Booking: client meeting\",\n      \"resourceId\": 59,\n      \"bookingId\": 159,\n      \"accessibility\": \"busy\",\n      \"importance\": \"normal\",\n      \"eventType\": \"#resourcebooking#\",\n      \"timezoneFrom\": \"UTC\",\n      \"timezoneTo\": \"UTC\",\n      \"skipTime\": false\n    },\n    {\n      \"from\": \"2025-01-21T11:00:00+00:00\",\n      \"to\": \"2025-01-21T12:00:00+00:00\",\n      \"id\": 7707,\n      \"name\": \"Booking: product presentation\",\n      \"resourceId\": 59,\n      \"bookingId\": 167,\n      \"accessibility\": \"busy\",\n      \"importance\": \"normal\",\n      \"eventType\": \"#resourcebooking#\",\n      \"timezoneFrom\": \"UTC\",\n      \"timezoneTo\": \"UTC\",\n      \"skipTime\": false\n    }\n  ],\n  \"meta\": {\n    \"total\": 2\n  }\n}\n```\n\nAn all-day interval has dates without time and no `timezoneFrom` or `timezoneTo`:\n\n```json\n{\n  \"from\": \"2024-04-14\",\n  \"to\": \"2024-04-16\",\n  \"id\": 7389,\n  \"name\": \"Booking: lead\",\n  \"resourceId\": 59,\n  \"bookingId\": 155,\n  \"accessibility\": \"busy\",\n  \"importance\": \"normal\",\n  \"eventType\": \"#resourcebooking#\",\n  \"skipTime\": true\n}\n```\n\n## Error response example\n\n400 — `resourceIds` is missing:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_REQUIRED_FIELDS\",\n    \"message\": \"resourceIds must be a comma-separated list of positive safe integers\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 200 | `Warning: 299` | The filter is ignored by default; previous data is preserved and the warning is sent in the `Warning` header. |\n| 400 (strict mode only) | `UNSUPPORTED_FILTER` | The server mode is disabled by default; until it is enabled, the endpoint preserves HTTP 200 and the previous data. |\n| 400 | `MISSING_REQUIRED_FIELDS` | `resourceIds` is missing or contains anything other than comma-separated positive integers |\n| 400 | `INVALID_PARAMS` | `from` or `to` is not an ISO 8601 date |\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 bookings |\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, returned bookings in an invalid shape, or returned an interval without a date and time zone |\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 non-existent resource does not cause an error.** An ID that is not in the resource list returns an empty `data` with `200` — the same as a resource with no bookings. Check IDs against [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md); otherwise a typo in an ID reads as \"the resource is free\".\n\n**All intervals in one response.** There is no pagination: the method returns all intervals for the period. To shorten the response, narrow the period with `from` and `to`.\n\n## See also\n\n- [List calendar resources](.\u002Flist.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n- [Calendar events](\u002Fdocs\u002Fentities\u002Fcalendar-events)\n- [Attendee availability](\u002Fdocs\u002Fcalendar\u002Faccessibility)\n","2026-10-23",{},1795415184975]