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

# Get Flight Timetables

> Get flight timetables and legs with dates and aircraft types

Retrieve flight timetables and leg information.

<ParamField status="200" type="FlightsResponse">
  <ParamField name="flights" type="array">
    List of flights
  </ParamField>

  <ParamField name="pagination" type="Pagination">
    Pagination information
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on flight scheduling and capacity processes, please refer to:

  * Page 48 of "BRS Future Processes DRAFT": [https://belli.sg/3KqjOfV](https://belli.sg/3KqjOfV)
</Info>


## OpenAPI

````yaml GET /api/flights
openapi: 3.0.3
info:
  title: Mock API
  version: 1.0.0
  description: >-
    Mock OpenAPI spec for QR API Service. All endpoints require API key
    authentication via 'Authorization: Bearer <token>' or 'x-api-key: <token>'
    headers.
servers:
  - url: https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io
    description: Production server
security:
  - ApiKeyAuth: []
  - ApiKeyHeader: []
tags:
  - name: auth-v1
    description: Authentication and user management
  - name: reference-data-v1
    description: Reference data and master data
  - name: flights-v1
    description: Flight schedules and capacity
  - name: quotes-v1
    description: Quotation and pricing
  - name: awb-stock-v1
    description: AWB Stock Management
  - name: bookings-v1
    description: Booking management
  - name: shipments-v1
    description: Shipment documents and tracking
  - name: compliance-v1
    description: Compliance and safety declarations
  - name: operations-v1
    description: Operational events and manifests
  - name: webhooks-v1
    description: Webhook management
  - name: admin-v1
    description: Administrative and audit functions
  - name: qr-exp-cgo-ext-availability-v1
    description: Legacy availability service
  - name: qr-exp-cgo-ext-booking-v1
    description: Legacy booking service
  - name: qr-exp-cgo-ext-flight-schedules-v1
    description: Legacy flight schedules service
  - name: qr-exp-cgo-shipments-v1
    description: Legacy shipments service
  - name: qr-exp-cgo-stock-v1
    description: Legacy stock service
  - name: qr-exp-cgo-tables-v1
    description: Legacy table data service
paths:
  /api/flights:
    get:
      tags:
        - flights-v1
      summary: Get flight timetables
      description: Get flight timetables and legs with dates and aircraft types
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
          description: Page number
        - name: limit
          in: query
          schema:
            type: integer
            default: 10
          description: Items per page
        - name: origin
          in: query
          schema:
            type: string
          description: Filter by origin airport
        - name: destination
          in: query
          schema:
            type: string
          description: Filter by destination airport
        - name: status
          in: query
          schema:
            type: string
          description: Filter by flight status
        - name: date
          in: query
          schema:
            type: string
            format: date
          description: Filter by flight date
      responses:
        '200':
          description: Flight timetables
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlightsResponse'
components:
  schemas:
    FlightsResponse:
      type: object
      properties:
        flights:
          type: array
          items:
            $ref: '#/components/schemas/Flight'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Flight:
      type: object
      properties:
        id:
          type: string
          example: QR001-20240101
        flightNumber:
          type: string
          example: QR001
        origin:
          type: string
          example: DOH
        destination:
          type: string
          example: LHR
        departureDate:
          type: string
          format: date
          example: '2024-01-01'
        departureTime:
          type: string
          example: '08:00'
        arrivalDate:
          type: string
          format: date
          example: '2024-01-01'
        arrivalTime:
          type: string
          example: '12:00'
        aircraftType:
          type: string
          example: B777
        status:
          type: string
          enum:
            - scheduled
            - departed
            - arrived
            - cancelled
          example: scheduled
    Pagination:
      type: object
      properties:
        page:
          type: integer
          example: 1
        limit:
          type: integer
          example: 10
        total:
          type: integer
          example: 100
        totalPages:
          type: integer
          example: 10
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````