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

# List all busy times



## OpenAPI

````yaml GET /busy_times
openapi: 3.1.0
info:
  title: Caspen
  version: 0.0.1
servers:
  - url: https://api.caspen.com/v1
    description: Production
security: []
paths:
  /busy_times:
    get:
      tags:
        - BusyTime
      operationId: busyTime.index
      parameters:
        - name: cursor
          in: query
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Paginated set of `BusyTimeResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/BusyTimeCollection'
                  links:
                    type: object
                    properties:
                      prev:
                        type:
                          - string
                          - 'null'
                      next:
                        type:
                          - string
                          - 'null'
                    required:
                      - prev
                      - next
                required:
                  - data
                  - links
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    BusyTimeCollection:
      type: array
      items:
        $ref: '#/components/schemas/BusyTimeResource'
      title: BusyTimeCollection
    BusyTimeResource:
      type: object
      properties:
        id:
          type: string
          description: The busy time's unique identifier.
          examples:
            - bti_01HQFQ9QWTNNPY58FZ8CB3FWWK
        location_id:
          type: string
          description: The location identifier where the busy time takes place.
          examples:
            - loc_01HQFQ9QWTNNPY58FZ8CB3FWWK
        practitioner_id:
          type: string
          description: The practitioner identifier assigned to the busy time.
          examples:
            - pra_01HQFQ9QWTNNPY58FZ8CB3FWWK
        starts_at:
          type: string
          description: The busy time start time (ISO 8601).
          examples:
            - '2024-01-01T10:00:00Z'
        ends_at:
          type: string
          description: The busy time end time (ISO 8601).
          examples:
            - '2024-01-01T11:00:00Z'
        duration:
          type: integer
          description: The busy time duration in minutes.
          examples:
            - 60
        name:
          type:
            - string
            - 'null'
          description: The busy time name.
          examples:
            - Lunch break
        note:
          type:
            - string
            - 'null'
          description: The busy time note.
          examples:
            - Practitioner unavailable for personal appointment.
        created_at:
          type: string
          description: The timestamp when the busy time was created (ISO 8601).
          examples:
            - '2024-01-01T12:00:00Z'
      title: BusyTimeResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````