getBookings
List bookings of bookable resources like rooms, desks, and parking lots. Omit locationRef and resourceRef to list bookings across all locations, or provide one to scope to a location or resource. Call getLocations to list locations, or getLocation to fetch one by locationId. Get resourceRef from getResources. Call getCustomers to list valid customerRef values. Filter by customerRef, type, status, or startDate/endDate ranges.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getBookings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Resource types of the booked resources to filter by, e.g. `room,hotDesk`. Defaults to all bookable types. Comma-separated, one or more of: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. | |
| limit | No | Maximum number of bookings per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| order | No | Sort order as `<field>:<direction>`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. | |
| status | No | Booking statuses to filter by, e.g. `confirmed,canceled`. `requested` lists the booking requests waiting for an administrator, and `declined` the ones an administrator declined or nobody answered before they started. Defaults to tentative and confirmed, or to canceled when ordering by deleteDate. Comma-separated, one or more of: tentative, confirmed, canceled, requested, declined. | |
| endDate | No | Filter by end date (endDate). Provide gt, gte, lt, lte ISO datetimes. | |
| userRef | No | UUID of the user whose bookings to list, both made and attended. Without locationRef or resourceRef, lists the user's bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRefOwner. | |
| startDate | No | Filter by start date (startDate). Provide gt, gte, lt, lte ISO datetimes. | |
| createDate | No | Filter by create date (createDate). Provide gt, gte, lt, lte ISO datetimes. | |
| customerRef | No | UUID of the customer whose bookings to list, both made and attended. | |
| locationRef | No | UUID of the location whose bookings to list. Omit to list bookings across every location of the network. | |
| resourceRef | No | UUID of the resource whose bookings to list. | |
| userRefOwner | No | UUID of the user whose own bookings to list: bookings the user made, not ones they were added to as an attendee. Without locationRef or resourceRef, lists the user's own bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRef. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. | |
| singleBookings | No | Set to "true" to expand repeating bookings into single occurrences. | |
| companyRefOwner | No | UUID of the company whose own bookings to list: bookings the company or its members made, not ones they were added to as attendees. Cannot be combined with customerRef, userRef, or userRefOwner. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookings | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |