> ## 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.

# Send travellers

> For your own payment UI. One traveller per seat. International trips also need `passportNumber`, `passportExpiry` and `passportCountry`, valid on the travel date. Send before any payment.



## OpenAPI

````yaml /api-reference/openapi.yaml post /bookings/session/{id}/details
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}/details:
    post:
      tags:
        - Booking sessions
      summary: Send travellers
      description: >-
        For your own payment UI. One traveller per seat. International trips
        also need `passportNumber`, `passportExpiry` and `passportCountry`,
        valid on the travel date. Send before any payment.
      parameters:
        - $ref: '#/components/parameters/SessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DetailsRequest'
      responses:
        '200':
          description: The travellers were saved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  travelerIds:
                    type: array
                    items:
                      type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '410':
          $ref: '#/components/responses/Expired'
components:
  parameters:
    SessionId:
      name: id
      in: path
      required: true
      description: The `sessionId` from `POST /bookings/session`.
      schema:
        type: string
  schemas:
    DetailsRequest:
      type: object
      required:
        - contact
        - travellers
      properties:
        contact:
          type: object
          required:
            - email
          properties:
            email:
              type: string
              format: email
              example: asha@example.com
            phoneNumber:
              type: string
              description: Required before payment.
              example: '9876543210'
        travellers:
          type: array
          description: One traveller per seat (adults, children and infants).
          items:
            $ref: '#/components/schemas/Traveller'
    Traveller:
      type: object
      required:
        - givenName
        - familyName
        - bornOn
      properties:
        title:
          type: string
          example: Ms
        givenName:
          type: string
          example: Asha
        familyName:
          type: string
          example: Rao
        bornOn:
          type: string
          format: date
          example: '1992-04-18'
        gender:
          type: string
          enum:
            - male
            - female
        passportNumber:
          type: string
          description: Required on international trips.
        passportExpiry:
          type: string
          format: date
          description: Valid on the travel date. Required on international trips.
        passportCountry:
          type: string
          description: Issuing country. Required on international trips.
        nationality:
          type: string
          description: When the fare asks for it.
        passportIssueDate:
          type: string
          format: date
          description: When the fare asks for it.
        pan:
          type: string
          description: When the fare asks for it.
    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:
    BadRequest:
      description: '`invalid_json`, `invalid_request` or `traveller_count`.'
      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'
    Conflict:
      description: >-
        The session or booking is not in a state that allows this. See the error
        code.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Expired:
      description: '`session_expired`: sessions last 30 minutes.'
      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.