Skip to content
Navigation

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
POST
https://api.getarbol.com/v1/oficlinic/booking-slots/search

Authorization

  • Authorization
    string
    required
    Bearer <token>, where the token is an API key, a client-credentials token or a person's access token with the scope oficlinic:availability:read. Get an API key.

Request body JSON required

  • payerId
    string
    required

    A payer id from list_payers.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • serviceId
    string
    required

    A service id, such as one search_services answers.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • programId
    string
    required

    A program id from list_programs.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • attentionTypeId
    string
    required

    An attention type id the program lists in list_programs, with bookable true.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • connectionId
    optional
    string

    An Account connection id of the caller's organization.

    pattern: ^con_[0-9A-Za-z]{26}$
  • professionalIds
    optional
    array of
    string

    Only these professionals. Empty, the default, searches every professional the provider schedules for the service.

    pattern: ^[0-9A-Za-z._-]{1,32}$ · default: []
  • roomIds
    optional
    array of
    string

    Only these rooms, such as the rooms of one site. Empty, the default, searches every room.

    pattern: ^[0-9A-Za-z._-]{1,32}$ · default: []
  • from
    optional
    string

    The first day to search, YYYY-MM-DD in Colombia. Today when absent or in the past.

    pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • to
    optional
    string

    The last day to search, YYYY-MM-DD, not before from. Open when absent. The same day as from searches one day.

    pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • slotsPerRoom
    optional
    integer

    The most slots answered for each room, nearest first.

    maximum: 20 · minimum: 1 · default: 3
  • agentMode
    optional
    boolean

    true answers { text }: concise Spanish facts for a messaging or voice agent, with the short ids and the cursor needed to continue. false, the default, answers the structured object.

    default: false

Returns

200

Successful operation.

JSON
  • success
    true
    required
  • data
    required

    One of the following:

    • OficlinicBookingSlotSearch
      • flowId
        string
        required

        The availability flow id every booking list item carries (flowId). It expires 30 minutes after the first list.

        pattern: ^bf_[a-z2-7]{16}$
      • flowExpiresAt
        string
        required

        When the flow expires.

        format: date-time
      • from
        string
        required

        The first day searched.

        pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
      • to
        string | null
        required

        The last day searched; null when open.

        pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
      • complete
        boolean
        required

        false when a bound stopped the search before every matching professional, room and day was read: nearer slots may exist.

      • slots
        array of
        object
        required

        The nearest future slots of each room, earliest first.

        • id
          string
          required

          The provider's slot id (citaID): pass it as slotId to book.

        • flowId
          string
          required

          The availability flow of this slot: pass it with slotId to book.

        • dayId
          string
          required

          The provider's agenda id of the slot's day.

        • date
          string
          required

          The slot's day in Colombia.

          pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
        • label
          string | null
          required

          The slot as the provider describes it (citaDescripcion), usually its time.

        • startsAt
          string | null
          required

          The slot's exact start in America/Bogota; null if unrecognized.

          format: date-time
        • endsAt
          string | null
          required

          The slot's exact end; null if unrecognized.

          format: date-time
        • professional
          object
          required
          • id
            string
            required
          • name
            string
            required
        • room
          object
          required
          • id
            string
            required
          • name
            string
            required
      • dates
        array of
        object
        required

        The agenda days with availability in the searched days, earliest first.

        • dayId
          string
          required

          The provider's agenda id (agendaID): pass it as dayId for its slots.

        • date
          string
          required
          pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
        • availableCount
          integer | null
          required

          The provider's Disponibles count; null when not a count.

          minimum: 0
        • slotsListed
          boolean
          required

          Whether this search read the day's slots; its future ones are in slots.

        • professional
          object
          required
          • id
            string
            required
          • name
            string
            required
        • room
          object
          required
          • id
            string
            required
          • name
            string
            required
    • OficlinicAgentText
      • text
        string
        required

        Concise Spanish facts of the answer, with the ids and cursor to continue. Pending or unknown outcomes are stated as such.

  • error
    unknown
    required
  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

400

  • INVALID_INPUT: The request does not match the published schema.
  • INVALID_CURSOR: The cursor is invalid or belongs to another list.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • InvalidInputFailure
      INVALID_INPUT
      • code
        INVALID_INPUT
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required
        • issues
          optional
          array of
          object
          • path
            string
            required

            RFC 6901 JSON Pointer to the refused field; empty for the whole input.

            maxLength: 256
          • message
            string
            required
            maxLength: 256
    • OficlinicInvalidCursorFailure
      INVALID_CURSOR
      • code
        INVALID_CURSOR
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

401

UNAUTHORIZED: A valid access token is required.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    A valid access token is required.

    • code
      UNAUTHORIZED
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

403

FORBIDDEN: The token does not authorize this operation.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The token does not authorize this operation.

    • code
      FORBIDDEN
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

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.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • OficlinicConnectionNotFoundFailure
      CONNECTION_NOT_FOUND
      • code
        CONNECTION_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicPayerNotFoundFailure
      PAYER_NOT_FOUND
      • code
        PAYER_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicBookingOptionNotFoundFailure
      BOOKING_OPTION_NOT_FOUND
      • code
        BOOKING_OPTION_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

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.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • OficlinicConnectionRequiredFailure
      CONNECTION_REQUIRED
      • code
        CONNECTION_REQUIRED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicConnectionNotActiveFailure
      CONNECTION_NOT_ACTIVE
      • code
        CONNECTION_NOT_ACTIVE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicConnectionBusyFailure
      CONNECTION_BUSY
      • code
        CONNECTION_BUSY
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicReauthenticationRequiredFailure
      REAUTHENTICATION_REQUIRED
      • code
        REAUTHENTICATION_REQUIRED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicSelectionNotAvailableFailure
      SELECTION_NOT_AVAILABLE
      • code
        SELECTION_NOT_AVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

410

SELECTION_EXPIRED: The availability flow expired or does not exist. List booking professionals again.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The availability flow expired or does not exist. List booking professionals again.

    • code
      SELECTION_EXPIRED
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

413

REQUEST_TOO_LARGE: The request exceeds the allowed size.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The request exceeds the allowed size.

    • code
      REQUEST_TOO_LARGE
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

415

UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The request content type is not supported.

    • code
      UNSUPPORTED_MEDIA_TYPE
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

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.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • CredentialsRejectedFailure
      CREDENTIALS_REJECTED
      • code
        CREDENTIALS_REJECTED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

    • OficlinicContextNotAvailableFailure
      CONTEXT_NOT_AVAILABLE
      • code
        CONTEXT_NOT_AVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicProviderIdentityMismatchFailure
      PROVIDER_IDENTITY_MISMATCH
      • code
        PROVIDER_IDENTITY_MISMATCH
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicProgramUnitsNotSupportedFailure
      PROGRAM_UNITS_NOT_SUPPORTED
      • code
        PROGRAM_UNITS_NOT_SUPPORTED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

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.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • RateLimitedFailure
      RATE_LIMITED
      • code
        RATE_LIMITED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicLoginCoolingDownFailure
      LOGIN_COOLING_DOWN
      • code
        LOGIN_COOLING_DOWN
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

500

INTERNAL_ERROR: The service could not complete the operation.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The service could not complete the operation.

    • code
      INTERNAL_ERROR
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

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.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • OutcomeUnknownFailure
      OUTCOME_UNKNOWN
      • code
        OUTCOME_UNKNOWN
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicSignInOutcomeUnknownFailure
      SIGN_IN_OUTCOME_UNKNOWN
      • code
        SIGN_IN_OUTCOME_UNKNOWN
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • ProviderProtocolChangedFailure
      PROVIDER_PROTOCOL_CHANGED
      • code
        PROVIDER_PROTOCOL_CHANGED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

503

  • UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.
  • PROVIDER_UNAVAILABLE: The provider could not complete the request.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • UpstreamUnavailableFailure
      UPSTREAM_UNAVAILABLE
      • code
        UPSTREAM_UNAVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • ProviderUnavailableFailure
      PROVIDER_UNAVAILABLE
      • code
        PROVIDER_UNAVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

504

UPSTREAM_TIMEOUT: The upstream service did not respond before its deadline.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The upstream service did not respond before its deadline.

    • code
      UPSTREAM_TIMEOUT
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      true
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

Escribe para buscar…

↑↓ navegar↵ seleccionarEsc cerrar