[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbooking-resources\u002Fslots-list":3,"docs-tabs-entities\u002Fbooking-resources\u002Fslots-list":6},{"content":4,"lastmod":5},"## Get resource work hours\n\n`GET \u002Fv1\u002Fbooking-resources\u002F:id\u002Fslots`\n\nReturns the work hours of a booking resource — time intervals by day of the week when the resource accepts bookings.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Booking resource ID. List: [`GET \u002Fv1\u002Fbooking-resources`](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots\" \\\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\u002Fbooking-resources\u002F65\u002Fslots', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nfor (const slot of data.slots) {\n  console.log(slot.weekDays.join(', '), `${slot.from}–${slot.to}`, slot.timezone)\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots', {\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 | `true` on success |\n| `data.slots` | array | Work hour intervals of the resource. For a resource without work hours — an empty array |\n| `data.slots[].id` | number | Interval ID. Changes every time the work hours are written |\n| `data.slots[].from` | number | Start of the interval in minutes from midnight: `600` is 10:00 |\n| `data.slots[].to` | number | End of the interval in minutes from midnight: `1140` is 19:00 |\n| `data.slots[].weekDays` | array | Days of the week the interval applies to: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun` |\n| `data.slots[].slotSize` | number | Length of one booking slot in minutes |\n| `data.slots[].timezone` | string | Time zone in which `from` and `to` are set — a name from the IANA time zone database |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"slots\": [\n      {\n        \"id\": 67,\n        \"from\": 600,\n        \"to\": 1140,\n        \"weekDays\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n        \"slotSize\": 30,\n        \"timezone\": \"Europe\u002FLondon\"\n      },\n      {\n        \"id\": 69,\n        \"from\": 600,\n        \"to\": 840,\n        \"weekDays\": [\"Sat\"],\n        \"slotSize\": 60,\n        \"timezone\": \"Europe\u002FLondon\"\n      }\n    ]\n  }\n}\n```\n\n## Error response example\n\n404 — no resource with this `id` exists:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Booking resource not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | No resource with this `id` exists. Message `Booking resource not found` |\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer. Message `id must be a positive safe integer` |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens |\n| 403 | `SCOPE_DENIED` | The key does not have the `booking` scope |\n| 429 | `RATE_LIMITED` | Request rate exceeded. The effective cap is in the `x-ratelimit-limit` header |\n| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 returned work hours in an unexpected shape. Message `Bitrix24 returned an invalid booking response` |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**The interval `id` is not stable.** Every write of the work hours via [`PUT \u002Fv1\u002Fbooking-resources\u002F:id\u002Fslots`](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots-set) recreates the intervals with new `id` values. Match intervals by days of the week and time, not by `id`.\n\n## See also\n\n- [Resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots)\n- [Set resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots-set)\n- [Remove resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots-delete)\n- [Get a booking resource](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fget)\n- [List booking resources](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Flist)\n","2026-10-15",{},1795343768852]