Disponibilidad por rango de fechas (máximo 14 días)
Availability
GET /v1/scheduling/availability/range
Availability grouped day by day between two dates. Useful for powering a weekly or biweekly calendar.
GET
Disponibilidad por rango de fechas (máximo 14 días)
Returns free slots for each day between
Each element of
Also returned if
from and to (both inclusive). Internally expands the range and queries each date in parallel. The range is capped at 14 days to bound per-request cost.
Endpoint
Required scope
scheduling:availability:read
Query params
| Param | Type | Required | Description |
|---|---|---|---|
serviceId | string | Yes | Service to book. |
from | string | Yes | Start date (YYYY-MM-DD). |
to | string | Yes | End date (YYYY-MM-DD). Must be >= from and span at most 14 days. |
branchId | string | No | Branch. If omitted, the tenant’s first branch is used. |
professionalId | string | No | Restrict the computation to a professional. |
Example request
Response
200 OK
days has the same shape as the body of GET /availability.
If one of the dates fails individually (upstream timeout or error for that specific day), results: [] is returned for that date and the rest of the range keeps resolving. The error is logged on Keebai’s side.
409 Conflict
to < from or the dates are otherwise invalid.
401 Unauthorized · 403 Forbidden
Same semantics as the rest of the public API.Common patterns
Weekly calendar with availability
Call once per visible week and cache the result by (service, branch, professional, week). When an appointment is created or cancelled, invalidate the matching cache entry.Authorizations
Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.
Query Parameters
Servicio (requerido)
Fecha desde (YYYY-MM-DD)
Fecha hasta (YYYY-MM-DD, máximo 14 días desde from)
Response
200
Disponibilidad agrupada por día