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

# Reserve appointment slot

> Reserve a time slot for an appointment. This is step 1 of the two-step booking process.

**Important**: Reservations are temporary and typically expire after ~10 minutes. You must call `/booking/confirm` to complete the booking.

The `session_id` parameter can be used to link multiple operations together. If not provided, the appointment ID is stored under the key "latest".



## OpenAPI

````yaml /connectors/openapi/brunkhorst-openapi.json post /api/booking/reserve
openapi: 3.1.0
info:
  title: Brunkhorst Connector
  description: >

    ## Zeitmechanik Booking Integration


    This connector provides a REST API for the Zeitmechanik workshop booking
    system used by Autohaus Brunkhorst.


    ### Features


    - **Service Catalog**: Browse available workshop services (inspections,
    maintenance, repairs)

    - **Availability Check**: Find available days and time slots for selected
    services

    - **Appointment Booking**: Two-step reservation and confirmation flow

    - **Customer Lookup**: Search existing customers by phone, name, or license
    plate


    ### Booking Flow


    1. **Get Services** → List available services and select one or more

    2. **Check Days** → Get available days for the selected services (filtered
    to 14+ days out)

    3. **Check Times** → Get available time slots for a specific day

    4. **Reserve** → Reserve a time slot (holds for ~10 minutes)

    5. **Confirm** → Complete booking with customer and vehicle details


    ### Authentication


    All endpoints (except `/health` and `/ready`) require an `X-API-Key` header.
    Requests may also be restricted by IP whitelist.
  contact:
    name: AICO Engineering
    url: https://aicoflow.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://brunkhorst.connectors.aicoflow.com
    description: Production
  - url: http://localhost:8101
    description: Local development
security:
  - ApiKeyAuth: []
tags:
  - name: Services
    description: >-
      Service catalog operations. Browse available workshop services like
      inspections, maintenance, and repairs.
  - name: Availability
    description: >-
      Check appointment availability. Find open days and time slots for selected
      services.
  - name: Booking
    description: >-
      Appointment booking flow. Reserve time slots and confirm appointments with
      customer/vehicle details.
  - name: Lookup
    description: >-
      Customer and vehicle lookup. Search existing records by phone, name, or
      license plate.
  - name: Health
    description: Service health and readiness checks.
paths:
  /api/booking/reserve:
    post:
      tags:
        - Booking
      summary: Reserve appointment slot
      description: >-
        Reserve a time slot for an appointment. This is step 1 of the two-step
        booking process.


        **Important**: Reservations are temporary and typically expire after ~10
        minutes. You must call `/booking/confirm` to complete the booking.


        The `session_id` parameter can be used to link multiple operations
        together. If not provided, the appointment ID is stored under the key
        "latest".
      operationId: reserve_appointment_api_booking_reserve_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReserveRequest'
        required: true
      responses:
        '200':
          description: Reservation details including appointment_id and expiration time
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ReserveRequest:
      properties:
        time:
          type: string
          title: Time
          description: Time in ISO format (YYYY-MM-DDTHH:MM:SS)
        service_ids:
          items:
            type: string
          type: array
          title: Service Ids
          description: List of service IDs
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
          description: Session ID for linking reservation
      type: object
      required:
        - time
        - service_ids
      title: ReserveRequest
      description: Request model for reserving an appointment.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````