Skip to main content
GET
Free blocks of block resources
Returns, for each day of the range, the blocks each block resource of the branch still has room for. A block that is outside the resource’s hours, too soon, or already full does not show up. Resources booked by night never appear here. For them use GET resources/stays/availability.

Endpoint

Required scope

scheduling:availability:read

Query params

  • branch_id, date_from, date_to: required. Dates are YYYY-MM-DD in the branch timezone, both included. The range covers at most 31 days (date_to up to 30 days after date_from); a longer one returns 400 INVALID_DATE_RANGE.
  • resource_id: only that resource.
  • party_size: how many people the block must fit. Defaults to 1.
  • duration_minutes: one of the resource’s durations_minutes. Defaults to the first one listed.
  • exclude_booking_id: the booking you are moving. It does not count against the room, so its own block shows up as free.

Example request

curl

Response

200 OK

  • slots[].start_time and end_time are local times in the branch timezone. start and end are the same instants in UTC.
  • remaining: room left in the block. In a shared resource it is the capacity minus the most people booked at the same time inside the block.
  • price: price of the block for the requested duration and party size.
Book a block by sending its date and start_time to POST booking/resource-bookings.

400 Bad Request

404 Not Found

The branch, or the resource_id, does not exist or belongs to another company. On this endpoint the reason comes in message (BRANCH_NOT_FOUND or RESOURCE_NOT_FOUND).

401 Unauthorized · 403 Forbidden

Same semantics as the rest of the public API.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Query Parameters

branch_id
string
required
date_from
string
required
Example:

"2026-12-03"

date_to
string
required

Last day, included. The range covers at most 31 days.

Example:

"2026-12-09"

resource_id
string
party_size
number
Required range: x >= 1
duration_minutes
number
Required range: x >= 15
exclude_booking_id
string

Booking (or legacy resource appointment) being moved: it does not count.

Response

200