sandbox

Sandbox: parse-query — stub response, same schema

Returns a stub parse result to verify your request/response wiring. Use the production POST /flights/parse-query for real Gemini NL parsing.

post/sandbox/flights/parse-query

Request

  • Base URL: https://letsfg.co/developers/api/v1
  • URL: https://letsfg.co/developers/api/v1/sandbox/flights/parse-query
  • Auth: API key in header X-API-Key

Request body

querystring required

Natural language flight query.

todaystring date

Override today's date (YYYY-MM-DD). Defaults to server date.

mode'full' | 'clarify'

full = parse everything; clarify = return only missing fields.

Example request

{
  "query": "morning flight from New York to LA next Friday, 2 adults"
}

Response

Stub parse result with _sandbox flag.

originstring nullable

Resolved origin IATA code.

destinationstring nullable

Resolved destination IATA code.

departure_datestring date nullable
return_datestring date nullable
adultsinteger nullable
depart_afterstring nullable

Earliest departure HH:MM (24h).

depart_beforestring nullable

Latest departure HH:MM (24h).

cabin_classstring nullable
follow_up_topicsstring[]

Fields still missing from the query.

follow_up_questionsobject[]
date_is_flexibleboolean

Changes

No recorded changes to this operation across all 1 revision of this API.