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

# GET /v1/meet/availability

> Open slots of a meeting type, grouped by day in the company time zone, each with the host who would take it.

Returns the open slots of a meeting type between `from` and `to`. The hosts' working hours, time off, connected calendars, and the type's rules (minimum notice, horizon, buffer) are already applied. Each slot names the host who would take it under the type's [assignment](https://docs.keebai.com/dev/meet/overview.md#how-hosts-are-assigned).

A slot is a snapshot, not a hold. See [availability is a snapshot](https://docs.keebai.com/dev/meet/overview.md#availability-is-a-snapshot-not-a-hold).

## Endpoint

```
GET https://api.keebai.com/v1/meet/availability
```

## Required scope

`meet:availability:read`

## Query params

| Param | Type | Required | Default | Description |
| - | - | - | - | - |
| `type_id` | `string` | Yes | — | Meeting type, from [`GET /v1/meet/types`](https://docs.keebai.com/dev/endpoints/meet-types-list). |
| `from` | `string` | No | now | Window start, ISO 8601: `YYYY-MM-DD` or a full UTC date-time. |
| `to` | `string` | No | the type's horizon | Window end, ISO 8601. |
| `host_user_id` | `string` | No | — | Only the slots of this host. |
| `customer_chat_user_id` | `string` | No | — | The customer you are booking for. With a `sticky` type, the slots belong to the host who served them before. |

## Example request

```bash curl theme={"system"}
curl -G https://api.keebai.com/v1/meet/availability \
  -H "Authorization: Bearer kbai_pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --data-urlencode "type_id=6731a2b3c4d5e6f7a8b9c0d1" \
  --data-urlencode "from=2026-11-16" \
  --data-urlencode "to=2026-11-20"
```

```js JavaScript theme={"system"}
const url = new URL("https://api.keebai.com/v1/meet/availability");
url.searchParams.set("type_id", typeId);
url.searchParams.set("from", "2026-11-16");
url.searchParams.set("to", "2026-11-20");

const { time_zone, days } = await (
  await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.KEEBAI_API_TOKEN}` },
  })
).json();
```

## Response

### 200 OK

```json theme={"system"}
{
  "time_zone": "America/Santiago",
  "days": [
    {
      "date": "2026-11-16",
      "slots": [
        {
          "start": "2026-11-16T13:00:00.000Z",
          "end": "2026-11-16T13:30:00.000Z",
          "host_user_id": "66c1d2e3f4a5b6c7d8e9f0a1",
          "host_name": "María Soto"
        },
        {
          "start": "2026-11-16T14:00:00.000Z",
          "end": "2026-11-16T14:30:00.000Z",
          "host_user_id": "66c1d2e3f4a5b6c7d8e9f0a2",
          "host_name": "Pedro Rojas"
        }
      ]
    }
  ]
}
```

`date` is the day in `time_zone`, the company's zone. `start` and `end` are UTC: show them to the customer in their own zone, and send `start` back unchanged when you [book](https://docs.keebai.com/dev/endpoints/meet-meeting-create.md).

### 400 Bad Request

`type_id` is missing or not an ObjectId, or `from`/`to` are not ISO 8601.

### 404 Not Found

`MEETING_TYPE_NOT_FOUND`: the type does not exist in your company.

### 401 Unauthorized · 403 Forbidden

Same semantics as the rest of the public API.


## OpenAPI

````yaml GET /v1/meet/availability
openapi: 3.0.0
info:
  title: Keebai Public API
  description: Superficie pública REST autenticada con Personal Access Tokens (PAT).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.keebai.com
    description: Production
security: []
tags: []
paths:
  /v1/meet/availability:
    get:
      tags:
        - meet
      summary: Horarios libres de un tipo de reunión
      description: >-
        Días con sus horarios libres, agrupados en la zona de la empresa. Cada
        horario trae la persona que lo atendería según el reparto. Es una foto,
        no una reserva.
      operationId: PublicMeetController_availability
      parameters:
        - name: type_id
          required: true
          in: query
          description: Tipo de reunión (ObjectId)
          schema:
            type: string
        - name: from
          required: false
          in: query
          description: >-
            Inicio de la ventana, ISO 8601 (`YYYY-MM-DD` o fecha-hora UTC). Por
            defecto, ahora.
          schema:
            example: '2026-11-16'
            type: string
        - name: to
          required: false
          in: query
          description: >-
            Fin de la ventana, ISO 8601. Por defecto, el horizonte del tipo de
            reunión.
          schema:
            example: '2026-11-20'
            type: string
        - name: host_user_id
          required: false
          in: query
          description: Sólo los horarios de esta persona (auth_users._id).
          schema:
            type: string
        - name: customer_chat_user_id
          required: false
          in: query
          description: >-
            Cliente del chat, para que el reparto `sticky` devuelva a quien ya
            lo atendió.
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicMeetingAvailabilityResponseDto'
      security:
        - PAT: []
components:
  schemas:
    PublicMeetingAvailabilityResponseDto:
      type: object
      properties:
        time_zone:
          type: string
          example: America/Santiago
        days:
          type: array
          items:
            $ref: '#/components/schemas/PublicMeetingAvailabilityDayDto'
      required:
        - time_zone
        - days
    PublicMeetingAvailabilityDayDto:
      type: object
      properties:
        date:
          type: string
          example: '2026-11-16'
          description: Día en la zona de la empresa
        slots:
          type: array
          items:
            $ref: '#/components/schemas/PublicMeetingSlotDto'
      required:
        - date
        - slots
    PublicMeetingSlotDto:
      type: object
      properties:
        start:
          type: string
          format: date-time
        end:
          type: string
          format: date-time
        host_user_id:
          type: string
          description: Persona que atendería este horario
        host_name:
          type: string
      required:
        - start
        - end
  securitySchemes:
    PAT:
      scheme: bearer
      bearerFormat: kbai_pk_<hex>
      type: http
      description: >-
        Personal Access Token con prefijo `kbai_pk_`. Generar desde el portal
        con permiso `developer.manage_tokens`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.