> ## 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/scheduling/packages

> List multi-service packages the tenant offers. Each package books every service in one reservation.

Returns the packages configured for the tenant resolved from the PAT. A package is a combo of catalog services that books in one reservation, with mode `simultaneous` (all services start at the same time, one professional per service) or `sequential` (one after the other). The package carries its own price covering the group — it is not the sum of the individual services.

Services that compose a package still appear on their own through [`GET /v1/scheduling/services`](https://docs.keebai.com/dev/endpoints/scheduling-services-list); the package is an additional way to book them together.

## Endpoint

```
GET https://api.keebai.com/v1/scheduling/packages
```

## Required scope

`scheduling:services:read`

## Query params

| Param | Type | Default | Description |
| - | - | - | - |
| `branchId` | `string` | — | Filter packages offered at a specific branch. |
| `search` | `string` | — | Full-text search over name. |
| `status` | `string` | — | Filter by status (`active`, `inactive`). |
| `skip` | `number` | `0` | Pagination offset. |
| `limit` | `number` | `50` | Page size (max 200). |

## Example request

```bash curl theme={"system"}
curl -G https://api.keebai.com/v1/scheduling/packages \
  -H "Authorization: Bearer kbai_pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --data-urlencode "branchId=65a1f2b3c4d5e6f7a8b9c0d1" \
  --data-urlencode "status=active"
```

```js JavaScript theme={"system"}
const url = new URL("https://api.keebai.com/v1/scheduling/packages");
url.searchParams.set("branchId", branchId);
const { items } = await (
  await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.KEEBAI_API_TOKEN}` },
  })
).json();
```

```python Python theme={"system"}
import os, requests

resp = requests.get(
    "https://api.keebai.com/v1/scheduling/packages",
    headers={"Authorization": f"Bearer {os.environ['KEEBAI_API_TOKEN']}"},
    params={"branchId": branch_id, "status": "active"},
    timeout=10,
)
resp.raise_for_status()
packages = resp.json()["items"]
```

## Response

### 200 OK

```json theme={"system"}
{
  "items": [
    {
      "id": "66d1c2d3e4f5a6b7c8d9e0f1",
      "name": "Bronceado + Masaje",
      "description": "Combo relax",
      "mode": "simultaneous",
      "duration_minutes": 90,
      "price": { "amount": 45000, "currency": "CLP" },
      "services_total": 60000,
      "branches": ["65a1f2b3c4d5e6f7a8b9c0d1"],
      "items": [
        { "service_id": "65b1...", "name": "Bronceado", "duration_minutes": 60 },
        { "service_id": "65b2...", "name": "Masaje",    "duration_minutes": 90 }
      ],
      "settings": {
        "allow_online_booking": true,
        "show_price": true,
        "requires_confirmation": false,
        "allow_online_payment": false
      },
      "status": "active"
    }
  ],
  "total": 1,
  "skip": 0,
  "limit": 50
}
```

| Field | Type | Description |
| - | - | - |
| `id` | `string` | Package id. Use as `package_id` in availability and when creating appointments. |
| `mode` | `string` | `simultaneous` or `sequential`. |
| `duration_minutes` | `number` | Longest service (simultaneous) or sum of services (sequential). |
| `price` | `object` | Package price `{ amount, currency }`. Absent when `settings.show_price` is false. |
| `services_total` | `number` | Sum of the component services' prices. Absent when `show_price` is false. |
| `items[]` | `array` | Component services in order; the booking payload must mirror that order. |
| `branches` | `string[]` | Branches that offer the package. |

### 401 Unauthorized · 403 Forbidden

Same semantics as the rest of the public API.


## OpenAPI

````yaml GET /v1/scheduling/packages
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/scheduling/packages:
    get:
      tags:
        - scheduling-packages
      summary: List multi-service packages
      description: >-
        Packages registered for the tenant resolved from the PAT. Each package
        carries its mode, duration, price, branches, and composing services.
      operationId: PublicPackagesController_list
      parameters:
        - name: branchId
          required: false
          in: query
          description: Filter by branch.
          schema:
            type: string
        - name: search
          required: false
          in: query
          description: Free-text search over name.
          schema:
            type: string
        - name: status
          required: false
          in: query
          description: Package status (`active`/`inactive`).
          schema:
            type: string
        - name: skip
          required: false
          in: query
          schema:
            type: number
            default: 0
            minimum: 0
        - name: limit
          required: false
          in: query
          schema:
            minimum: 1
            maximum: 200
            default: 50
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicPackageListResponseDto'
      security:
        - PAT: []
components:
  schemas:
    PublicPackageListResponseDto:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/PublicPackageResponseDto'
        total:
          type: number
        skip:
          type: number
        limit:
          type: number
      required:
        - items
        - total
        - skip
        - limit
    PublicPackageResponseDto:
      type: object
      properties:
        id:
          type: string
          description: ObjectId of the package.
        name:
          type: string
        description:
          type: string
        mode:
          type: string
          description: '`simultaneous` or `sequential`.'
        duration_minutes:
          type: number
          description: >-
            Total duration. `simultaneous` is the longest service; `sequential`
            is the sum of every service.
        price:
          type: object
          description: >-
            Package price `{ amount, currency }`. Absent when
            `settings.show_price` is false.
        services_total:
          type: number
          description: >-
            Sum of the component services' individual prices. Absent when
            `show_price` is false.
        branches:
          description: Branches that offer the package.
          type: array
          items:
            type: string
        items:
          description: Services that compose the package, in order.
          type: array
          items:
            $ref: '#/components/schemas/PublicPackageItemResponseDto'
        settings:
          $ref: '#/components/schemas/PublicPackageSettingsResponseDto'
        status:
          type: string
          description: '`active` or `inactive`.'
      required:
        - id
        - name
        - mode
        - duration_minutes
        - branches
        - items
        - status
    PublicPackageItemResponseDto:
      type: object
      properties:
        service_id:
          type: string
          description: Service id of this position in the package.
        name:
          type: string
        duration_minutes:
          type: number
          description: Service duration in minutes.
      required:
        - service_id
        - name
        - duration_minutes
    PublicPackageSettingsResponseDto:
      type: object
      properties:
        allow_online_booking:
          type: boolean
        show_price:
          type: boolean
        requires_confirmation:
          type: boolean
        allow_online_payment:
          type: boolean
        prepayment:
          type: object
          description: Prepayment rule (same shape as `services`).
      required:
        - allow_online_booking
        - show_price
        - requires_confirmation
        - allow_online_payment
  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.