Search booking slots
Find the nearest real slots e-Oficlinic offers for one payer, service, program and attention type, in one call: it opens an availability flow, reads the professionals the provider schedules for the service, their rooms and each combination's agenda days, then the slots of the earliest days, and answers up to slotsPerRoom future slots for each room with the professional, the room, the day and the flowId and slotId that book it. Use it instead of walking list_booking_professionals, list_booking_rooms, list_booking_days and list_booking_slots. Without from it starts today in Colombia; for one requested day pass that day as both from and to. professionalIds keeps a named professional; roomIds keeps the rooms of one site, since a room is the place of care and this provider names the site only in the room's name. dates lists every agenda day with availability found in those days, at most 60, so another date can be offered and searched next. Slots already past are left out. complete false means a bound stopped the search early (at most 40 professionals, 60 professional and room combinations, 16 agenda days read for slots, and 8 seconds): narrow the filters, and never present the result as the nearest. An empty slots list concerns this payer, service and filters only. The payer must be one list_payers answers, or PAYER_NOT_FOUND; the program and attention type come from list_programs, or BOOKING_OPTION_NOT_FOUND, and an attention type that is not exactly one unit answers PROGRAM_UNITS_NOT_SUPPORTED. Read-only: nothing is locked or reserved. The flow expires 30 minutes after the search; for create_appointment or reschedule_appointment, copy the selected slot's flowId and slotId verbatim. agentMode true answers concise Spanish text instead.
- Scope:
oficlinic:availability:read - Credentials: an API key, a client-credentials token or a person's access token
- Effect: read-only; safe to retry
- Limits: request body up to 8 KB, response up to 64 KB
- CLI:
arbol oficlinic booking-slots search· MCP tool:oficlinic_booking_slots_search
https://api.getarbol.com/v1/oficlinic/booking-slots/searchAuthorization
Request body JSON required
Returns
200
Successful operation.
400
INVALID_INPUT: The request does not match the published schema.INVALID_CURSOR: The cursor is invalid or belongs to another list.
401
UNAUTHORIZED: A valid access token is required.
403
FORBIDDEN: The token does not authorize this operation.
404
CONNECTION_NOT_FOUND: The connection does not exist in this organization.PAYER_NOT_FOUND: The payer is not configured for the connection's company and IPS.BOOKING_OPTION_NOT_FOUND: The program, attention type, regime, affiliate type, relationship or cancellation reason is not one the provider lists.
409
CONNECTION_REQUIRED: The organization has several active connections: select one.CONNECTION_NOT_ACTIVE: The connection is not active.CONNECTION_BUSY: Another operation is using this connection or signing in for the organization.REAUTHENTICATION_REQUIRED: Provider sign-in is stopped for this connection. Verify the connection again.SELECTION_NOT_AVAILABLE: The professional, room, day or slot is not offered in this availability flow, or is no longer offered.
410
SELECTION_EXPIRED: The availability flow expired or does not exist. List booking professionals again.
413
REQUEST_TOO_LARGE: The request exceeds the allowed size.
415
UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
422
CREDENTIALS_REJECTED: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.CONTEXT_NOT_AVAILABLE: The selected company, site or IPS is not available to the provider account.PROVIDER_IDENTITY_MISMATCH: The provider session does not belong to the connection's user and selected context.PROGRAM_UNITS_NOT_SUPPORTED: The attention type's source unit count is not exactly one, and this service books one-unit programs only.
429
RATE_LIMITED: The request rate limit was exceeded. Try again later.LOGIN_COOLING_DOWN: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
500
INTERNAL_ERROR: The service could not complete the operation.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.SIGN_IN_OUTCOME_UNKNOWN: The provider did not confirm a sign-in. It is not repeated automatically.PROVIDER_PROTOCOL_CHANGED: The provider returned an unrecognized response.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.PROVIDER_UNAVAILABLE: The provider could not complete the request.