TripGain Gateway Log API

The GatewayLog API from TripGain, for gatewaylog.

GitHub OpenAPI

Operations 4

POST /gatewaylog/request Log Flight Search Request #
POST /gatewaylog/requests/bulk Log Flight Search Requests Bulk #
POST /gatewaylog/response Log Flight Search Response #
POST /gatewaylog/responses/bulk Log Flight Search Responses Bulk #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tripgain-com:tripgain-com-gatewaylog-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tripgain-com-gatewaylog-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Flight Analytics Gateway Log API
  description: Protected with x-session-token
  version: 1.0.0
tags:
- name: GatewayLog
paths:
  /gatewaylog/request:
    post:
      tags:
      - GatewayLog
      summary: Log Flight Search Request
      operationId: log_flight_search_request_gatewaylog_request_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlightSearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SessionToken: []
  /gatewaylog/requests/bulk:
    post:
      tags:
      - GatewayLog
      summary: Log Flight Search Requests Bulk
      operationId: log_flight_search_requests_bulk_gatewaylog_requests_bulk_post
      requestBody:
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/FlightSearchRequest'
              type: array
              title: Reqs
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SessionToken: []
  /gatewaylog/response:
    post:
      tags:
      - GatewayLog
      summary: Log Flight Search Response
      operationId: log_flight_search_response_gatewaylog_response_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlightSearchResponse'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SessionToken: []
  /gatewaylog/responses/bulk:
    post:
      tags:
      - GatewayLog
      summary: Log Flight Search Responses Bulk
      operationId: log_flight_search_responses_bulk_gatewaylog_responses_bulk_post
      requestBody:
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/FlightSearchResponse'
              type: array
              title: Responses
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SessionToken: []
components:
  schemas:
    FlightSearchResponse:
      properties:
        trace_id:
          type: string
          title: Trace Id
        sreq_id:
          type: string
          title: Sreq Id
        c_id:
          type: string
          title: C Id
        sres_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Sres Id
        req_time:
          type: string
          format: date-time
          title: Req Time
        res_time:
          type: string
          format: date-time
          title: Res Time
        duration_ms:
          type: integer
          title: Duration Ms
        status_code:
          type: integer
          title: Status Code
        message:
          type: string
          title: Message
        api_name:
          type: string
          title: Api Name
        owcount1:
          type: integer
          title: Owcount1
        rtcount2:
          type: integer
          title: Rtcount2
        ingestion_time:
          type: string
          format: date-time
          title: Ingestion Time
      type: object
      required:
      - trace_id
      - sreq_id
      - c_id
      - req_time
      - res_time
      - duration_ms
      - status_code
      - message
      - api_name
      - owcount1
      - rtcount2
      title: FlightSearchResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    FlightSearchRequest:
      properties:
        trace_id:
          type: string
          title: Trace Id
        sreq_id:
          type: string
          title: Sreq Id
        c_id:
          type: string
          title: C Id
        ori:
          type: string
          title: Ori
        dest:
          type: string
          title: Dest
        o_date:
          type: string
          format: date
          title: O Date
        r_date:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: R Date
        c_class:
          type: string
          title: C Class
        adults:
          type: integer
          title: Adults
        children:
          type: integer
          title: Children
        infants:
          type: integer
          title: Infants
        j_type:
          type: string
          title: J Type
        api_name:
          type: string
          title: Api Name
        ingestion_time:
          type: string
          format: date-time
          title: Ingestion Time
      type: object
      required:
      - trace_id
      - sreq_id
      - c_id
      - ori
      - dest
      - o_date
      - c_class
      - adults
      - children
      - infants
      - j_type
      - api_name
      title: FlightSearchRequest
  securitySchemes:
    SessionToken:
      type: apiKey
      in: header
      name: x-session-token