American Airlines · Capability

American Airlines Runway Developer API — Bookings

American Airlines Runway Developer API — Bookings. 2 operations. Lead operation: Create Booking. Self-contained Naftiko capability covering one American Airlines business surface.

Run with Naftiko American AirlinesBookings

What You Can Do

POST
Createbooking — Create Booking
/v1/bookings
GET
Getbooking — Get Booking
/v1/bookings/{bookingid}

MCP Tools

create-booking

Create Booking

get-booking

Get Booking

read-only idempotent

Capability Spec

runway-developer-bookings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: American Airlines Runway Developer API — Bookings
  description: 'American Airlines Runway Developer API — Bookings. 2 operations. Lead operation: Create Booking. Self-contained
    Naftiko capability covering one American Airlines business surface.'
  tags:
  - American Airlines
  - Bookings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMERICAN_AIRLINES_API_KEY: AMERICAN_AIRLINES_API_KEY
capability:
  consumes:
  - type: http
    namespace: runway-developer-bookings
    baseUri: https://developer.aa.com/api
    description: American Airlines Runway Developer API — Bookings business capability. Self-contained, no shared references.
    resources:
    - name: bookings
      path: /bookings
      operations:
      - name: createbooking
        method: POST
        description: Create Booking
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: bookings-bookingId
      path: /bookings/{bookingId}
      operations:
      - name: getbooking
        method: GET
        description: Get Booking
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bookingId
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: runway-developer-bookings-rest
    port: 8080
    description: REST adapter for American Airlines Runway Developer API — Bookings. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/bookings
      name: bookings
      description: REST surface for bookings.
      operations:
      - method: POST
        name: createbooking
        description: Create Booking
        call: runway-developer-bookings.createbooking
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/bookings/{bookingid}
      name: bookings-bookingid
      description: REST surface for bookings-bookingId.
      operations:
      - method: GET
        name: getbooking
        description: Get Booking
        call: runway-developer-bookings.getbooking
        with:
          bookingId: rest.bookingId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: runway-developer-bookings-mcp
    port: 9090
    transport: http
    description: MCP adapter for American Airlines Runway Developer API — Bookings. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: create-booking
      description: Create Booking
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: runway-developer-bookings.createbooking
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-booking
      description: Get Booking
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: runway-developer-bookings.getbooking
      with:
        bookingId: tools.bookingId
      outputParameters:
      - type: object
        mapping: $.