curl --location 'https://us-prod.notte.cc/functions/8ef5333c-b690-4c8b-903e-46718dee82c5/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "8ef5333c-b690-4c8b-903e-46718dee82c5",
"variables": {
"departure_city": "LAX",
"arrival_city": "NYC",
"departure_date": "",
"cabin_class": "Economy",
"adults": 1,
"nonstop_only": false,
"currency": "USD",
"sort_by": "directness"
}
}'
{
"flights": [
{
"score": 0,
"currency": "<string>",
"segments": [
{
"airline_name": "<string>",
"flight_number": "<string>",
"segment_number": 0
}
],
"booking_url": "<string>",
"cabin_class": "<string>",
"airline_name": "<string>",
"average_price": 0,
"flight_number": "<string>",
"transfer_type": "<string>",
"transfer_count": 0,
"flight_duration": 0,
"formatted_price": "<string>",
"arrival_date_time": "<string>",
"departure_date_time": "<string>",
"has_carryon_baggage": true,
"has_checked_baggage": true,
"transfer_count_name": "<string>",
"arrival_airport_code": "<string>",
"arrival_airport_name": "<string>",
"departure_airport_code": "<string>",
"departure_airport_name": "<string>",
"formatted_arr_date_time": "<string>",
"formatted_dep_date_time": "<string>",
"formatted_flight_duration": "<string>"
}
],
"sort_by": "<string>",
"currency": "<string>",
"search_url": "<string>",
"cabin_class": "<string>",
"arrival_city": "<string>",
"flight_count": 0,
"departure_city": "<string>",
"departure_date": "<string>"
}