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

# Get a booking session

> The session's status and quote, and a `missing` list of anything still needed before payment. No traveller data.



## OpenAPI

````yaml /api-reference/openapi.yaml get /bookings/session/{id}
openapi: 3.1.0
info:
  title: Skye Flights API
  version: '1.0'
  description: Search and book real flights for your users. Skye is the Merchant of Record.
servers:
  - url: https://api.flyskye.ai/v1
security:
  - accessToken: []
tags:
  - name: Authentication
  - name: Flights
  - name: Booking sessions
  - name: Payments
  - name: Bookings
paths:
  /bookings/session/{id}:
    get:
      tags:
        - Booking sessions
      summary: Get a booking session
      description: >-
        The session's status and quote, and a `missing` list of anything still
        needed before payment. No traveller data.
      parameters:
        - $ref: '#/components/parameters/SessionId'
      responses:
        '200':
          description: The session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    SessionId:
      name: id
      in: path
      required: true
      description: The `sessionId` from `POST /bookings/session`.
      schema:
        type: string
  schemas:
    SessionStatus:
      type: object
      properties:
        sessionId:
          type: string
        status:
          type: string
          example: created
        quote:
          $ref: '#/components/schemas/Quote'
        expiresAt:
          type: string
          format: date-time
        bookingId:
          type:
            - string
            - 'null'
        test:
          type: boolean
        lodged:
          type: boolean
          description: Travellers were sent with /details.
        missing:
          type: array
          items:
            type: string
          description: Anything still needed before payment.
    Quote:
      type: object
      properties:
        displayAmount:
          type: number
          example: 6412
          description: Exactly what the traveller pays.
        displayCurrency:
          type: string
          example: INR
        route:
          type: string
          example: BLR-DEL
        departDate:
          type: string
          format: date
        returnDate:
          type:
            - string
            - 'null'
          format: date
        passengerCount:
          type: integer
          example: 1
        passengerTypes:
          type: object
          properties:
            adults:
              type: integer
            children:
              type: integer
            infants:
              type: integer
        expiresAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
              example: departDate cannot be in the past
            field:
              type: string
              example: departDate
  responses:
    Unauthorized:
      description: Missing, invalid or expired key or token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key lacks the scope, or the resource belongs to another partner.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such session or booking for your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      description: An access token (`sat_...`) from `POST /token`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.