Listar sucursales activas del tenant
Resources
GET /v1/scheduling/branches
List the tenant’s active branches. Supports full-text search over name and display_name (Spanish text index).
GET
Listar sucursales activas del tenant
Returns branches with
status: active for the tenant resolved from the PAT. Search uses the branch_text_search text index (language spanish), so it tolerates plurals and accents.
Endpoint
Required scope
scheduling:branches:read
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer kbai_pk_<token> |
Query params
| Param | Type | Default | Description |
|---|---|---|---|
search | string | — | Full-text search over name and display_name. |
skip | number | 0 | Pagination offset. Minimum 0. |
limit | number | 50 | Page size. Range 1..200. |
Example request
Response
200 OK
| Field | Type | Description |
|---|---|---|
total | number | Total branches matching the filters (before pagination). |
items[].id | string | Branch ObjectId. Used as branch_id for availability and appointments. |
items[].timezone | string | Branch timezone. All availability and appointments are computed against this tz. |
401 Unauthorized
Token missing, invalid, revoked, or expired.403 Forbidden
The token doesn’t have thescheduling:branches:read scope.Authorizations
Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.
Query Parameters
Búsqueda libre por nombre
Required range:
x >= 0Required range:
1 <= x <= 200Response
200
Listado paginado de sucursales