> ## 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/:id

> Fetch one multi-service package by id, with its items, mode, price, branches, and settings.

Returns the requested package as long as it belongs to the PAT's tenant. The response is the same shape as one entry of [`GET /v1/scheduling/packages`](https://docs.keebai.com/dev/endpoints/scheduling-packages-list).

## Endpoint

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

## Required scope

`scheduling:services:read`

## Path params

| Param | Type | Description |
| - | - | - |
| `id` | `string` | Package id. |

## Example request

```bash theme={"system"}
curl https://api.keebai.com/v1/scheduling/packages/66d1c2d3e4f5a6b7c8d9e0f1 \
  -H "Authorization: Bearer kbai_pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
```

## Response

### 200 OK

```json theme={"system"}
{
  "id": "66d1c2d3e4f5a6b7c8d9e0f1",
  "name": "Bronceado + Masaje",
  "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"
}
```

### 404 Not Found

The package doesn't exist or belongs to another company.

### 401 Unauthorized · 403 Forbidden

Same semantics as the rest of the public API.


## OpenAPI

````yaml GET /v1/scheduling/packages/{id}
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/{id}:
    get:
      tags:
        - scheduling-packages
      summary: Get one package by id
      operationId: PublicPackagesController_getById
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicPackageResponseDto'
      security:
        - PAT: []
components:
  schemas:
    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.