For AI agents: markdown of this page — /docs-content-en/entities/bookings/get.md documentation index — /llms.txt
Get a booking
GET /v1/bookings/:id
Returns a single booking by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | DescriptionBooking ID |
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/bookings/27" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/bookings/27" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/bookings/27', {
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
console.log('Booking:', data.name, data.resourceIds)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/bookings/27', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
Response fields
The object contains 5 fields — all are listed in the table below.
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata.id |
Typenumber | DescriptionBooking ID |
Fielddata.name |
Typestring | null | DescriptionBooking name. May be null |
Fielddata.description |
Typestring | null | DescriptionBooking description. May be null |
Fielddata.resourceIds |
Typenumber[] | DescriptionIDs of the reserved resources |
Fielddata.datePeriod |
Typeobject | DescriptionBooking period: from and to are ISO 8601 date-time strings |
Response example
{
"success": true,
"data": {
"id": 27,
"name": "Meeting room for the demo",
"description": "Meeting room booking",
"resourceIds": [1],
"datePeriod": {
"from": "2026-05-30T09:13:04+00:00",
"to": "2026-05-30T10:13:04+00:00"
}
}
}
Error response example
404 — booking not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Booking not found"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionThe booking with the given id was not found. Message: Booking not found |
| HTTP400 | CodeINVALID_PARAMS |
Descriptionid is not a non-negative integer |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key does not have the booking scope |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe request was sent without the X-Api-Key header |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
Full list of common API errors — Errors.