---
title: "Search booking slots"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.getarbol.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search booking slots

Path: Oficlinic API › Booking slots

`POST /v1/oficlinic/booking-slots/search`

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`

## Authentication

Requires one of the following:

- `arbolHuman`, oauth2, scopes: `oficlinic:availability:read`
- `arbolMachine`, oauth2, scopes: `oficlinic:availability:read`
- `arbolApiKey`, http, header `Authorization`

## Request body

_Required._

- `payerId` (`oficlinic.bookingSlots.search.payerId`; string, required) — A payer id from list_payers.
  - pattern `^[0-9A-Za-z._-]{1,32}$`
- `serviceId` (`oficlinic.bookingSlots.search.serviceId`; string, required) — A service id, such as one search_services answers.
  - pattern `^[0-9A-Za-z._-]{1,32}$`
- `programId` (`oficlinic.bookingSlots.search.programId`; string, required) — A program id from list_programs.
  - pattern `^[0-9A-Za-z._-]{1,32}$`
- `attentionTypeId` (`oficlinic.bookingSlots.search.attentionTypeId`; string, required) — An attention type id the program lists in list_programs, with bookable true.
  - pattern `^[0-9A-Za-z._-]{1,32}$`
- `connectionId` (`oficlinic.bookingSlots.search.connectionId`; string, optional) — An Account connection id of the caller's organization.
  - pattern `^con_[0-9A-Za-z]{26}$`
- `professionalIds` (`oficlinic.bookingSlots.search.professionalIds`; array<string>, optional) — Only these professionals. Empty, the default, searches every professional the provider schedules for the service.
  - pattern `^[0-9A-Za-z._-]{1,32}$`; default `[]`
- `roomIds` (`oficlinic.bookingSlots.search.roomIds`; array<string>, optional) — 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` (`oficlinic.bookingSlots.search.from`; string, optional) — 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` (`oficlinic.bookingSlots.search.to`; string, optional) — 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` (`oficlinic.bookingSlots.search.slotsPerRoom`; integer, optional) — The most slots answered for each room, nearest first.
  - min 1; max 20; default `3`
- `agentMode` (`oficlinic.bookingSlots.search.agentMode`; boolean, optional) — 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`

## Example request

```json
{
  "connectionId": "string",
  "payerId": "string",
  "serviceId": "string",
  "programId": "string",
  "attentionTypeId": "string",
  "professionalIds": [],
  "roomIds": [],
  "from": "string",
  "to": "string",
  "slotsPerRoom": 3,
  "agentMode": false
}
```

## Code samples

### cURL

```bash
curl https://api.getarbol.com/v1/oficlinic/booking-slots/search \
  --request POST \
  --header "Authorization: Bearer $ARBOL_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "payerId": "<payerId>",
  "serviceId": "<serviceId>",
  "programId": "<programId>",
  "attentionTypeId": "<attentionTypeId>"
}'
```

### TypeScript

```typescript
import { createClient } from "@arbol-ai/sdk";

const arbol = createClient({
  baseUrl: "https://api.getarbol.com",
  token: process.env.ARBOL_API_KEY!,
});

const { data } = await arbol.oficlinic.bookingSlots.search({
  payerId: "<payerId>",
  serviceId: "<serviceId>",
  programId: "<programId>",
  attentionTypeId: "<attentionTypeId>",
});
```

### Rust

```rust
use arbol_sdk::{types, Client, Credential};

let arbol = Client::new(Credential::ApiKey(std::env::var("ARBOL_API_KEY")?))?;

let data = arbol
    .oficlinic()
    .booking_slots()
    .search(&types::OficlinicBookingSlotsSearchInput {
        payer_id: "<payerId>".into(),
        service_id: "<serviceId>".into(),
        program_id: "<programId>".into(),
        attention_type_id: "<attentionTypeId>".into(),
        connection_id: None,
        professional_ids: None,
        room_ids: None,
        from: None,
        to: None,
        slots_per_room: None,
        agent_mode: None,
    })
    .await?;
```

### CLI

```bash
arbol oficlinic booking-slots search --payer-id '<payerId>' --service-id '<serviceId>' --program-id '<programId>' --attention-type-id '<attentionTypeId>'
```

### MCP

```json
{
  "name": "oficlinic_booking_slots_search",
  "arguments": {
    "payerId": "<payerId>",
    "serviceId": "<serviceId>",
    "programId": "<programId>",
    "attentionTypeId": "<attentionTypeId>"
  }
}
```

## Responses

### 200

Successful operation.

#### Example

```json
{
  "success": true,
  "data": {
    "flowId": "string",
    "flowExpiresAt": "2019-08-24T14:15:22Z",
    "from": "string",
    "to": "string",
    "complete": true,
    "slots": [
      {
        "id": "string",
        "flowId": "string",
        "dayId": "string",
        "date": "string",
        "label": "string",
        "startsAt": "2019-08-24T14:15:22Z",
        "endsAt": "2019-08-24T14:15:22Z",
        "professional": {
          "id": "string",
          "name": "string"
        },
        "room": {
          "id": "string",
          "name": "string"
        }
      }
    ],
    "dates": [
      {
        "dayId": "string",
        "date": "string",
        "availableCount": 0,
        "slotsListed": true,
        "professional": {
          "id": "string",
          "name": "string"
        },
        "room": {
          "id": "string",
          "name": "string"
        }
      }
    ]
  },
  "error": null,
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.200.success`; boolean, required)
  - one of `true`
- `data` (`oficlinic.bookingSlots.search.response.200.data`; OficlinicSearchBookingSlotsResult, required)
  - any of: `OficlinicBookingSlotSearch`, `OficlinicAgentText`
- `error` (`oficlinic.bookingSlots.search.response.200.error`; unknown, required)
- `metadata` (`oficlinic.bookingSlots.search.response.200.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.200.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "INVALID_INPUT",
    "message": "string",
    "retryable": false,
    "data": {
      "issues": [
        {
          "path": "string",
          "message": "string"
        }
      ]
    }
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.400.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.400.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.400.error`; OficlinicSearchBookingSlotsBadRequestFailure, required)
  - one of: `InvalidInputFailure`, `OficlinicInvalidCursorFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.400.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.400.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 401

`UNAUTHORIZED`: A valid access token is required.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.401.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.401.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.401.error`; object, required) — A valid access token is required.
  - `code` (`oficlinic.bookingSlots.search.response.401.error.code`; string, required) — The failure code, stable across releases.
    - one of `"UNAUTHORIZED"`
  - `message` (`oficlinic.bookingSlots.search.response.401.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.401.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`oficlinic.bookingSlots.search.response.401.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.401.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.401.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 403

`FORBIDDEN`: The token does not authorize this operation.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "FORBIDDEN",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.403.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.403.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.403.error`; object, required) — The token does not authorize this operation.
  - `code` (`oficlinic.bookingSlots.search.response.403.error.code`; string, required) — The failure code, stable across releases.
    - one of `"FORBIDDEN"`
  - `message` (`oficlinic.bookingSlots.search.response.403.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.403.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`oficlinic.bookingSlots.search.response.403.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.403.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.403.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "CONNECTION_NOT_FOUND",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.404.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.404.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.404.error`; OficlinicSearchBookingSlotsNotFoundFailure, required)
  - one of: `OficlinicConnectionNotFoundFailure`, `OficlinicPayerNotFoundFailure`, `OficlinicBookingOptionNotFoundFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.404.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.404.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "CONNECTION_REQUIRED",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.409.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.409.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.409.error`; OficlinicSearchBookingSlotsConflictFailure, required)
  - one of: `OficlinicConnectionRequiredFailure`, `OficlinicConnectionNotActiveFailure`, `OficlinicConnectionBusyFailure`, `OficlinicReauthenticationRequiredFailure`, `OficlinicSelectionNotAvailableFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.409.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.409.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "SELECTION_EXPIRED",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.410.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.410.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.410.error`; object, required) — The availability flow expired or does not exist. List booking professionals again.
  - `code` (`oficlinic.bookingSlots.search.response.410.error.code`; string, required) — The failure code, stable across releases.
    - one of `"SELECTION_EXPIRED"`
  - `message` (`oficlinic.bookingSlots.search.response.410.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.410.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`oficlinic.bookingSlots.search.response.410.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.410.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.410.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 413

`REQUEST_TOO_LARGE`: The request exceeds the allowed size.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "REQUEST_TOO_LARGE",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.413.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.413.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.413.error`; object, required) — The request exceeds the allowed size.
  - `code` (`oficlinic.bookingSlots.search.response.413.error.code`; string, required) — The failure code, stable across releases.
    - one of `"REQUEST_TOO_LARGE"`
  - `message` (`oficlinic.bookingSlots.search.response.413.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.413.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`oficlinic.bookingSlots.search.response.413.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.413.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.413.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 415

`UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UNSUPPORTED_MEDIA_TYPE",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.415.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.415.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.415.error`; object, required) — The request content type is not supported.
  - `code` (`oficlinic.bookingSlots.search.response.415.error.code`; string, required) — The failure code, stable across releases.
    - one of `"UNSUPPORTED_MEDIA_TYPE"`
  - `message` (`oficlinic.bookingSlots.search.response.415.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.415.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`oficlinic.bookingSlots.search.response.415.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.415.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.415.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "CREDENTIALS_REJECTED",
    "message": "string",
    "retryable": false
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.422.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.422.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.422.error`; OficlinicSearchBookingSlotsUnprocessableContentFailure, required)
  - one of: `CredentialsRejectedFailure`, `OficlinicContextNotAvailableFailure`, `OficlinicProviderIdentityMismatchFailure`, `OficlinicProgramUnitsNotSupportedFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.422.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.422.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "RATE_LIMITED",
    "message": "string",
    "retryable": true,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.429.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.429.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.429.error`; OficlinicSearchBookingSlotsTooManyRequestsFailure, required)
  - one of: `RateLimitedFailure`, `OficlinicLoginCoolingDownFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.429.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.429.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 500

`INTERNAL_ERROR`: The service could not complete the operation.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.500.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.500.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.500.error`; object, required) — The service could not complete the operation.
  - `code` (`oficlinic.bookingSlots.search.response.500.error.code`; string, required) — The failure code, stable across releases.
    - one of `"INTERNAL_ERROR"`
  - `message` (`oficlinic.bookingSlots.search.response.500.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.500.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`oficlinic.bookingSlots.search.response.500.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.500.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.500.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "OUTCOME_UNKNOWN",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.502.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.502.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.502.error`; OficlinicSearchBookingSlotsBadGatewayFailure, required)
  - one of: `OutcomeUnknownFailure`, `OficlinicSignInOutcomeUnknownFailure`, `ProviderProtocolChangedFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.502.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.502.metadata.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.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UPSTREAM_UNAVAILABLE",
    "message": "string",
    "retryable": true,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.503.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.503.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.503.error`; OficlinicSearchBookingSlotsServiceUnavailableFailure, required)
  - one of: `UpstreamUnavailableFailure`, `ProviderUnavailableFailure`
  - discriminator: `code`
- `metadata` (`oficlinic.bookingSlots.search.response.503.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.503.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 504

`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UPSTREAM_TIMEOUT",
    "message": "string",
    "retryable": true,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`oficlinic.bookingSlots.search.response.504.success`; boolean, required)
  - one of `false`
- `data` (`oficlinic.bookingSlots.search.response.504.data`; unknown, required)
- `error` (`oficlinic.bookingSlots.search.response.504.error`; object, required) — The upstream service did not respond before its deadline.
  - `code` (`oficlinic.bookingSlots.search.response.504.error.code`; string, required) — The failure code, stable across releases.
    - one of `"UPSTREAM_TIMEOUT"`
  - `message` (`oficlinic.bookingSlots.search.response.504.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`oficlinic.bookingSlots.search.response.504.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `true`
  - `data` (`oficlinic.bookingSlots.search.response.504.error.data`; object, required) — No fields.
- `metadata` (`oficlinic.bookingSlots.search.response.504.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`oficlinic.bookingSlots.search.response.504.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.


Source: https://docs.getarbol.com/api/oficlinic/booking-slots/search/index.md
