[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbooking-resources\u002Fget":3,"docs-tabs-entities\u002Fbooking-resources\u002Fget":6},{"content":4,"lastmod":5},"# Get: Booking resources\n\n`GET \u002Fv1\u002Fbooking-resources\u002F:id`\n\nReturns a booking resource by its identifier: name, type and the settings for client messages about bookings.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Resource identifier. 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\u002F51\" \\\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\u002F51\" \\\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\u002F51', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconsole.log(data.name, data.typeId)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F51', {\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(data.name, data.typeId)\n```\n\n## Response fields\n\nThe `isMain` and `is*NotificationOn` switches are always `true` or `false` in the card, even if the strings `\"Y\"` \u002F `\"N\"` were passed on write. Delays are in seconds.\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data.id` | number | Resource identifier. Pass it in `resourceIds` when [creating a booking](\u002Fdocs\u002Fentities\u002Fbookings\u002Fcreate) |\n| `data.name` | string | Resource name |\n| `data.description` | string \\| null | Resource description. `null` — not set |\n| `data.typeId` | number | Resource type identifier. Type card: [`GET \u002Fv1\u002Fbooking-resource-types\u002F:id`](\u002Fdocs\u002Fentities\u002Fbooking-resource-types\u002Fget) |\n| `data.isMain` | boolean | Main resource |\n| `data.senderCode` | string \\| null | Service that sends messages to the client, for example `bitrix24` |\n| `data.isInfoNotificationOn` | boolean | Booking info message to the client |\n| `data.isConfirmationNotificationOn` | boolean | Booking confirmation request |\n| `data.isReminderNotificationOn` | boolean | Booking reminder |\n| `data.isFeedbackNotificationOn` | boolean | Feedback request |\n| `data.isDelayedNotificationOn` | boolean | Message to a client who is running late |\n| `data.isCancellationNotificationOn` | boolean | Booking cancellation message to the client |\n| `data.infoNotificationDelay` | number \\| null | How many seconds after the booking is made to send the booking info message |\n| `data.confirmationNotificationDelay` | number \\| null | How many seconds before the booking to send the first confirmation request |\n| `data.confirmationNotificationRepetitions` | number \\| null | How many times to repeat the confirmation request, not counting the first one |\n| `data.confirmationNotificationRepetitionsInterval` | number \\| null | Interval between repeats of the confirmation request |\n| `data.confirmationCounterDelay` | number \\| null | How many seconds before the booking an unconfirmed booking enters the counter |\n| `data.reminderNotificationDelay` | number \\| null | How many seconds before the booking to send the reminder. `-1` — on the morning of the booking day |\n| `data.delayedNotificationDelay` | number \\| null | After how many seconds of lateness to send the message to the client |\n| `data.delayedCounterDelay` | number \\| null | After how many seconds of lateness the booking enters the calendar counter |\n| `data.cancellationNotificationDelay` | number \\| null | Delay of the booking cancellation message |\n| `data.templateTypeInfo` | string | Booking info message template: `inanimate`, `animate`, `inanimate_long` |\n| `data.templateTypeConfirmation` | string | Confirmation request template: `inanimate`, `animate`, `inanimate_long` |\n| `data.templateTypeReminder` | string | Reminder template, `base` |\n| `data.templateTypeFeedback` | string | Feedback request template: `inanimate`, `animate` |\n| `data.templateTypeDelayed` | string | Late-arrival message template: `inanimate`, `animate` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 51,\n    \"description\": \"Appointments only\",\n    \"typeId\": 1,\n    \"isMain\": true,\n    \"name\": \"Room 3\",\n    \"senderCode\": \"bitrix24\",\n    \"isInfoNotificationOn\": false,\n    \"isConfirmationNotificationOn\": false,\n    \"isReminderNotificationOn\": false,\n    \"isFeedbackNotificationOn\": false,\n    \"isDelayedNotificationOn\": false,\n    \"isCancellationNotificationOn\": false,\n    \"infoNotificationDelay\": null,\n    \"confirmationNotificationDelay\": 86400,\n    \"confirmationNotificationRepetitions\": null,\n    \"confirmationNotificationRepetitionsInterval\": 10800,\n    \"confirmationCounterDelay\": 10800,\n    \"reminderNotificationDelay\": -1,\n    \"delayedNotificationDelay\": 300,\n    \"delayedCounterDelay\": 300,\n    \"cancellationNotificationDelay\": 600,\n    \"templateTypeInfo\": \"inanimate\",\n    \"templateTypeConfirmation\": \"inanimate\",\n    \"templateTypeReminder\": \"base\",\n    \"templateTypeFeedback\": \"inanimate\",\n    \"templateTypeDelayed\": \"inanimate\"\n  }\n}\n```\n\n## Error response example\n\n404 — no resource with this `id`:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Booking record not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | No resource with this `id` |\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 not passed |\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 a card of an unexpected shape |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**`isMain` comes in different forms in the card and in the list.** The card returns `true` \u002F `false`, while the [resource list](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Flist) returns the strings `\"Y\"` \u002F `\"N\"`. Compare the value with its source in mind.\n\n**Work hours come from a separate request.** The card does not include the resource schedule. It is returned by [`GET \u002Fv1\u002Fbooking-resources\u002F:id\u002Fslots`](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots).\n\n## See also\n\n- [List booking resources](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Flist)\n- [Update a booking resource](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fupdate)\n- [Resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots)\n- [Booking resource types](\u002Fdocs\u002Fentities\u002Fbooking-resource-types)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-15",{},1795415178145]