Próximas horas disponibles más cercanas
Availability
GET /v1/scheduling/availability/next
Closest upcoming available time slots. Walks forward from a base date until it finds N free slots.
GET
Próximas horas disponibles más cercanas
Returns the next available slots starting from
fromDate (default: today in the branch’s tz), walking forward up to maxDays days and stopping once limit slots per professional have been collected. Designed for “first available time” flows.
Endpoint
Required scope
scheduling:availability:read
Query params
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
serviceId | string | Yes | — | Service to book. |
branchId | string | No | tenant’s first | Branch. |
professionalId | string | No | — | Restrict to a single professional. |
fromDate | string | No | today | Date to start the search from (YYYY-MM-DD). |
maxDays | number | No | 14 | Maximum number of days to walk forward. Range 1..60. |
limit | number | No | 5 | Maximum number of slots to return per professional. Range 1..20. |
Example request
Response
200 OK
| Field | Type | Description |
|---|---|---|
results[].professional | object | Professional with id and name. |
results[].slots[] | array | Free slots ordered from soonest to latest. |
401 Unauthorized · 403 Forbidden
Same semantics as the rest of the public API.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)
Required range:
1 <= x <= 60Required range:
1 <= x <= 20Response
200
Próximas horas disponibles por profesional