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

# Get all bookings for the current user

> Retrieves a list of all bookings (past and future) associated with the currently authenticated user.
Each item in the list contains enriched details about the event, hall, and seat.
Requires user authentication.




## OpenAPI

````yaml api-reference/openapi.json get /api/my-bookings
openapi: 3.0.0
info:
  title: Tandem IT API
  version: 1.0.0
  description: API for tandem it backend
servers:
  - url: https://tandem.hlofiys.xyz
    description: Production server
security: []
tags:
  - name: Documentation
    description: API documentation endpoint
paths:
  /api/my-bookings:
    get:
      tags:
        - Bookings
      summary: Get all bookings for the current user
      description: >
        Retrieves a list of all bookings (past and future) associated with the
        currently authenticated user.

        Each item in the list contains enriched details about the event, hall,
        and seat.

        Requires user authentication.
      operationId: getMyBookings
      responses:
        '200':
          description: >-
            A successful response returning a list of the user's bookings. The
            list can be empty if the user has no bookings.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MyBookingDetails'
        '401':
          description: >-
            Unauthorized. Authentication credentials were not provided or are
            invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error. An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    MyBookingDetails:
      type: object
      properties:
        booking_id:
          type: integer
          format: int64
        is_paid:
          type: boolean
        created_at:
          type: string
          format: date-time
          description: The timestamp when the booking was created.
        event_name:
          type: string
        start_time:
          type: string
          format: date-time
          example: '2025-10-20T19:00:00Z'
        end_time:
          type: string
          format: date-time
          example: '2025-10-20T22:30:00Z'
        hall_name:
          type: string
          example: Большой зал
        hall_address:
          type: string
          example: ул. Главная, д. 1
        row_label:
          type: string
          example: '12'
        seat_label:
          type: string
          example: '7'
        price:
          type: number
          format: double
          example: 50
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````