List bookings
Lists the company's bookings, latest start first, 25 to a page. Narrow it with `from` and `to`, a `serviceId`, the `assignedUserId` of the company user assigned to them or a `status`. Without the `bookings.read.all` permission the list holds only bookings assigned to the caller; an API key sees every booking.
Lists the company's bookings, latest start first, 25 to a page. Narrow it with from and to,
a serviceId, the assignedUserId of the company user assigned to them or a status. Without the
bookings.read.all permission the list holds only bookings assigned to the caller; an API key sees
every booking.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Query Parameters
The page to return, starting at 1.
1Bookings per page, at most 100.
1 <= value <= 10025Only bookings starting at or after this instant, as an ISO 8601 date-time.
Only bookings ending at or before this instant, as an ISO 8601 date-time.
Only bookings of this service.
Only bookings assigned to this company user.
Only bookings in this status: ACTIVE or CANCELED.
Value in
- "ACTIVE"
- "CANCELED"
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/bookings"{ "currentPage": 0, "data": [ { "assignedUser": { "email": "string", "firstName": "string", "id": "string", "lastName": "string" }, "attribution": { "firstTouch": { "capturedAt": "string", "fbclid": "string", "gclid": "string", "landingPage": "string", "msclkid": "string", "referrer": "string", "ttclid": "string", "utmCampaign": "string", "utmContent": "string", "utmMedium": "string", "utmSource": "string", "utmTerm": "string" }, "lastTouch": { "capturedAt": "string", "fbclid": "string", "gclid": "string", "landingPage": "string", "msclkid": "string", "referrer": "string", "ttclid": "string", "utmCampaign": "string", "utmContent": "string", "utmMedium": "string", "utmSource": "string", "utmTerm": "string" } }, "cancellationReason": "string", "client": { "address": "string", "contactId": "string", "email": "string", "name": "string", "notes": "string", "phone": "string" }, "duration": 0, "endDateTime": "string", "formData": [ { "label": "string", "value": "string" } ], "id": "string", "service": { "id": "string", "name": "string" }, "startDateTime": "string", "status": "string", "timeZone": "string" } ], "nextPage": 0, "total": 0, "totalPages": 0}Get a service's free windows for a day GET
Returns the availability windows still free on the given day: windows already booked, inside the lead time, on a blackout date, or clashing with the assigned user's connected calendar are left out. Send the `id` of the chosen window as `availabilityId` when creating the booking. A service from another company returns 404.
List booking services GET
Returns the company's active booking services with their form fields and weekly availability windows, along with the lead time and the days the company has closed. This is the first call when rendering a booking flow of your own; follow it with the availability endpoint for the day the client picks.