# NX Jets Partner API

Add private jet search to your own site: airports, price estimates per aircraft category, flight requests to NX Jets brokers, and open empty legs.

Base URL: https://api.nx-jets.com/v1

## Overview

Your client enters a route and sees price ranges from the engine behind the NX Jets calculator. When they ask for a quote, the request reaches our brokers under your name.

Typical integration: `GET /airports` → `POST /estimates` → `POST /requests`.

### What the API covers

Use all of it or only one call. Each block works on its own.

| Block | What it does |
| --- | --- |
| Airports | Search business aviation airports and cities by name or code, with typo tolerance. |
| Estimates | Price range per aircraft category for a one-way or round-trip flight, seasonality included. |
| Requests | Send a flight request to NX Jets brokers, under your name. |
| Empty legs | List the empty legs currently open and request a booking. |
| Seasonality | Month-by-month price level of a route, to show the cheapest and busiest periods. |

Request tracking and empty leg alerts are planned after v1. They are described here so you can see where the API is going.

### What the API never returns

- Operator names and aircraft registrations.
- Requests or clients of another partner.
- A firm booking or a payment. A broker confirms every flight.

---

## Quickstart

Three calls take a visitor from a city name to a request in our brokers' queue. Use your test key: requests created with it are flagged as tests and never reach the team.

### 1. Find the airports

Routes are expressed with ICAO codes. Search by city, airport name, ICAO or IATA code.

```bash
curl "https://api.nx-jets.com/v1/airports?q=paris" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### 2. Get the price ranges

Send the route, and the date and passenger count when you have them.

```bash
curl -X POST "https://api.nx-jets.com/v1/estimates" \
  -H "Authorization: Bearer $NXJETS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "legs": [
    {
      "from": "LFPB",
      "to": "LFMN",
      "date": "2026-12-20"
    }
  ],
  "passengers": 4,
  "locale": "en"
}'
```

### 3. Send the request

Pass the same route with whatever your form collected. The response carries the id of the request. Mention it when you talk to our brokers.

```bash
curl -X POST "https://api.nx-jets.com/v1/requests" \
  -H "Authorization: Bearer $NXJETS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a9e-4b7d-4c1a-9e0f-2d3b5a7c8e91" \
  -d '{
  "legs": [
    {
      "from": "LFPB",
      "to": "LFMN",
      "date": "2026-12-20",
      "time": "10:00"
    }
  ],
  "passengers": 4,
  "category": "light",
  "priceLow": 10300,
  "priceHigh": 14700,
  "client": {
    "name": "Alex Morgan",
    "phone": "+44 20 7946 0321",
    "email": "alex.morgan@example.com"
  },
  "reference": "TRIP-2291",
  "notes": "Client prefers a morning departure."
}'
```

---

## Authentication

Every call carries your key in the `Authorization` header. NX Jets issues one live key and one test key per partner.

| Key | Prefix | Behaviour |
| --- | --- | --- |
| Live | `nxp_live_` | Requests reach our brokers. |
| Test | `nxp_test_` | Same responses, same limits. Created requests are flagged as tests: no broker is notified and no operator search is started. |

- Call the API from your server. A key must never be shipped to a browser or a mobile app, and the API sends no CORS headers.
- A key is shown once when it is created. If it leaks, ask us for a new one and the old key is revoked.
- A missing, unknown or revoked key returns `401 unauthorized`.
- Keys are issued by your NX Jets contact. Ask them for anything this page does not answer.

---

## Conventions

| Topic | Rule |
| --- | --- |
| Base URL | `https://api.nx-jets.com/v1` |
| Format | JSON in UTF-8, field names in camelCase. Send `Content-Type: application/json` with every body. A body is 16 KB at most. |
| Airports | ICAO code, four characters: `LFPB`. Upper or lower case is accepted. Get codes from `GET /airports`. |
| Dates | `YYYY-MM-DD`. A date before today, judged in UTC, is refused. |
| Times | `HH:MM`, local time of the departure airport. |
| Timestamps | ISO 8601 in UTC, with milliseconds: `2026-11-24T09:42:11.412Z`. |
| Paths | No trailing slash. A method an endpoint does not support answers `405` with an empty body. |
| Language | `locale`: `en` (default), `fr`, `es`, `de`, in lower case. It sets the language of city, country and event names. Any other value is refused. |
| Currency | Estimates are in EUR. An empty leg keeps the currency of its published price. |
| Amounts | Whole units of the currency, never cents: `9300` is €9,300. |
| Unknown fields | Ignored in requests. Ignore the ones you do not know in responses. |
| Versioning | Fields may be added to `/v1` at any time. No field changes meaning or disappears within `/v1`. |

---

## Flight shapes

A flight is always written as a list of `legs`. The same structure covers the three shapes.

| Shape | How to write it | Estimate | Request |
| --- | --- | --- | --- |
| One way | One leg. | Yes | Yes |
| Round trip | One leg and `returnDate`. Optional `returnTime` and `returnPassengers`. | Yes | Yes |
| Multi-leg | Two to six legs. Two legs that mirror each other are stored as a round trip. | No | Yes |

A multi-leg trip is not priced automatically: with two legs or more, `POST /estimates` answers `422 multi_leg_not_estimated`. Send it with `POST /requests` and a broker prices it.

`returnDate` belongs to the single-leg form: on `POST /requests`, with two legs or more it answers `400 invalid_request`. `POST /estimates` answers `422 multi_leg_not_estimated` to any body with two legs or more, whatever else it contains. For a round trip to estimate, send one leg and `returnDate`. `returnTime` and `returnPassengers` need `returnDate`.

In a multi-leg trip, legs go in the order they are flown: a leg dated before the previous one answers `400 invalid_date`.

### A leg

| Field | Type | Description |
| --- | --- | --- |
| `from` (required) | string | ICAO code of the departure airport. |
| `to` (required) | string | ICAO code of the arrival airport. |
| `date` | string | Departure date, today or later. Optional: a request without a date is still handled by a broker, and an estimate without one carries no seasonal adjustment. `returnDate` needs it. |
| `time` | string | Preferred departure time. Used by requests, ignored by estimates. |
| `passengers` | integer | Passengers on this leg, when it differs from the top-level `passengers`. |

---

## Showing prices

Estimates are ranges computed by the NX Jets pricing engine, the one behind the calculator on flynxjets.com. The same input always gives the same output.

- Present them as an estimate, never as an offer. The firm price comes from the broker's quote.
- `priceLow` and `priceHigh` are rounded to the nearest hundred and already include the seasonal adjustment and the passenger tax.
- The passenger count changes the price: per-passenger taxes apply beyond two passengers. Send the real count as soon as you have it.
- Without a date, no seasonal adjustment is applied. `seasonality.events` names what drives the adjustment, so you can explain it to your client.
- Seasonal periods repeat every year. Event dates follow the current calendar and are indicative for later years.
- `label` and `examples` are always in English.
- `quotes` is sorted from the cheapest to the most expensive. `best` marks the cheapest category that covers the distance and the seats.
- A category is left out when one of the two airports has no runway long enough for it. On a short airfield the list can come down to the turboprop alone. This is a floor based on runway length, not a clearance: the broker confirms what can actually operate.
- An empty `quotes` carries a `reason`. `range_exceeded`: no aircraft large enough flies the route non-stop, so send a request and a broker plans the fuel stop. `airfield_limit`: the runways are too short for the aircraft that could fly it, so send a request and a broker proposes a nearby airport.

### Which categories to show

`best` marks the cheapest category able to fly the route. It is rarely the aircraft a client ends up booking: most clients choose a larger or faster category than the cheapest one, and pay well above its lowest figure.

- Do not headline a single "from" price taken from the cheapest category. It sets an expectation the final quote will not meet.
- Send `passengers` as soon as you know it, then show every category returned, or at least the two or three smallest ones that fit the party, each with its full range.
- Show `priceLow` and `priceHigh` together. The price a client pays usually sits inside the range of the category they pick, a little below its middle.
- Ranges are widest in relative terms on very short flights, and least reliable for the two largest categories, where few flights are sold. Say "indicative" next to every figure.

---

## Errors

An error answers with an HTTP status and a body of this shape. `code` is stable and safe to branch on. `field` is the path of the field at fault, present when the error points at one. `message` is written for a developer and may change.

Every response of an endpoint, success or error, carries a `Request-Id` header. Give it to us when you report a problem. The only responses without it are the `405` of an unsupported method and the redirect of a path with a trailing slash.

```json
{
  "error": {
    "code": "unknown_airport",
    "field": "legs[0].from",
    "message": "No airport with ICAO code LFXX."
  }
}
```

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | `invalid_request` | The body or a parameter is malformed or out of bounds. `error.field` names it. |
| 400 | `unknown_airport` | No airport with this ICAO code. |
| 400 | `same_airport` | Departure and arrival are the same airport. |
| 400 | `invalid_passengers` | Passenger count outside 1 to 30. |
| 400 | `invalid_date` | A date is not `YYYY-MM-DD`, is before today (UTC), the return is before the departure, the legs are not in the order they are flown, or `dateTo` is before `dateFrom`. |
| 401 | `unauthorized` | Missing, unknown or revoked key. |
| 404 | `not_found` | The resource does not exist or belongs to another partner. |
| 409 | `offer_unavailable` | The empty leg is taken or expired. |
| 409 | `idempotency_conflict` | This `Idempotency-Key` was already used with a different body. |
| 422 | `multi_leg_not_estimated` | Estimates cover one-way and round-trip flights only. |
| 422 | `not_enough_seats` | The empty leg has fewer seats than the passengers requested. |
| 429 | `rate_limited` | Too many calls. Wait for the number of seconds in `Retry-After`. |
| 503 | `service_unavailable` | Temporary failure on our side. Retry with the same `Idempotency-Key`. |

---

## Limits and retries

| Limit | Value |
| --- | --- |
| All calls | 600 per 10 minutes, per key. |
| Created requests and bookings | 60 per hour, per key. |

Every response to a valid key carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` for the general limit. `RateLimit-Reset` is the number of seconds before the window resets. Beyond either limit the API answers `429 rate_limited` with a `Retry-After` header in seconds.

### Safe retries

Send an `Idempotency-Key` header with any call that creates something. Generate one value per action, such as a UUID, store it, and send the same value on every retry of that action: a new value on each attempt protects nothing. The key is 255 characters at most. It is scoped to your account, to one mode and to one endpoint: the same value used with your test key and with your live key, or on requests and on bookings, names different actions.

If the same key is sent again within 24 hours with the same body, the API returns the first response, with its original status, and creates nothing new. This makes a retry after a timeout safe. The same key with a different body answers `409 idempotency_conflict`. A call refused for its content does not use up the key. While a first call with a key is still being processed, a second one answers `503` with a `Retry-After` header: wait that many seconds and send it again.

Only calls that actually create something count towards the creation limit. A replay, a refusal or a failure does not.

### Changing or cancelling

A request cannot be changed or cancelled through the API. Tell your broker, with the id of the request.

---

## Check a key

`GET /me`

Returns the partner a key belongs to and its mode. Call it once to verify a key before going live.

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `partner` | string | Your name as registered with NX Jets. |
| `mode` | string | `live` or `test`. |
| `rateLimit` | object | The general limit: number of calls allowed per window, and the length of the window in seconds. |

### Request

```bash
curl "https://api.nx-jets.com/v1/me" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "partner": "Example Travel Ltd",
  "mode": "test",
  "rateLimit": {
    "limit": 600,
    "windowSeconds": 600
  }
}
```

---

## List aircraft categories

`GET /categories`

The nine aircraft categories used by estimates and empty legs. Use `key` to match a category across calls.

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `key` | string | Stable identifier of the category. |
| `label` | string | Display name. |
| `examples` | string | Typical aircraft of the category. |
| `seats` | integer | Maximum passengers. |
| `rangeNm` | integer | Published range of the aircraft, in nautical miles. Estimates keep a safety reserve, so a category can be absent from a route shorter than this. A category is also left out when a runway of the route is too short for it. |

### Request

```bash
curl "https://api.nx-jets.com/v1/categories" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "categories": [
    { "key": "turboprop", "label": "Turboprop", "examples": "Pilatus PC-12 · King Air 350", "seats": 8, "rangeNm": 1800 },
    { "key": "very-light", "label": "Very Light", "examples": "Citation Mustang · Citation M2 · Phenom 100", "seats": 5, "rangeNm": 1150 },
    { "key": "light", "label": "Light", "examples": "Citation CJ2 · CJ3 · CJ4 · Hawker 400", "seats": 7, "rangeNm": 1600 },
    { "key": "super-light", "label": "Super Light", "examples": "Phenom 300 · Pilatus PC-24 · Citation XLS+", "seats": 8, "rangeNm": 2000 },
    { "key": "midsize", "label": "Midsize", "examples": "Hawker 800 · Hawker 900 · Learjet 75", "seats": 9, "rangeNm": 2040 },
    { "key": "super-midsize", "label": "Super Midsize", "examples": "Challenger 350 · Praetor 600", "seats": 10, "rangeNm": 3200 },
    { "key": "heavy", "label": "Heavy", "examples": "Falcon 900LX · Gulfstream G450", "seats": 14, "rangeNm": 4000 },
    { "key": "ultra-long", "label": "Ultra Long Range", "examples": "Gulfstream G650 · G700 · Global 7500", "seats": 16, "rangeNm": 7000 },
    { "key": "vip-airliner", "label": "VIP Airliner", "examples": "ERJ 145 VIP · Lineage 1000 · BBJ", "seats": 30, "rangeNm": 6000 }
  ]
}
```

---

## Search airports

`GET /airports`

Business aviation airports and cities matching a search string. The search tolerates typos and understands city names in the four supported languages.

### Query parameters

| Field | Type | Description |
| --- | --- | --- |
| `q` | string | City, airport name, ICAO or IATA code, up to 64 characters. Several words narrow the search: `Paris Le Bourget`, `New York Teterboro`, `Nice airport`. Empty: suggested airports and popular cities. |
| `locale` | string | `en`, `fr`, `es` or `de`, in lower case. |

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `airports` | array | Up to 8 matching airports, most relevant first. `iata` may be empty on small airfields. |
| `cities` | array | Up to 3 cities grouping several airports. `primaryIcao` is the main business aviation airport of the city: use it when your client picks the city rather than an airport. `codes` lists the IATA codes of its airports, for display. `id` is an opaque identifier. |

### Errors

`invalid_request`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl "https://api.nx-jets.com/v1/airports?q=paris" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "airports": [
    {
      "icao": "LFPB",
      "iata": "LBG",
      "name": "Paris-Le Bourget International Airport",
      "city": "Paris",
      "country": "France",
      "lat": 48.9623,
      "lon": 2.4365
    }
  ],
  "cities": [
    {
      "id": "paris",
      "name": "Paris",
      "country": "France",
      "primaryIcao": "LFPB",
      "codes": ["LBG", "ORY"]
    }
  ]
}
```

---

## Estimate a flight

`POST /estimates`

Price range per aircraft category for a one-way or round-trip flight. Nothing is stored and no broker is notified.

### Body

| Field | Type | Description |
| --- | --- | --- |
| `legs` (required) | array | Exactly one leg, with `from`, `to` and optionally `date`, today or later. See [Flight shapes](https://docs.nx-jets.com/#flight-shapes). |
| `returnDate` | string | Makes the estimate a round trip. Needs a departure date. On the same day as the departure, the aircraft waits and the return is priced at half. |
| `passengers` | integer | 1 to 30. Omitted: every category able to fly the route. Given: only categories with enough seats. Estimates read this top-level count only. |
| `locale` | string | `en`, `fr`, `es` or `de`, in lower case. |

Seasonal periods repeat every year: the adjustment depends on the day and month of the departure.

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `from`, `to` | object | The two airports: `icao`, `iata`, `name`, `city`, `country`. |
| `distanceNm` | integer | Great-circle distance in nautical miles. |
| `roundTrip` | boolean | True when `returnDate` was sent. |
| `currency` | string | Always `EUR`. |
| `seasonality.pct` | integer | Adjustment applied for the date, in percent. 0 without a date. |
| `seasonality.events` | array | Names of the events or periods behind the adjustment. |
| `quotes[].category` | string | Category key, see [categories](https://docs.nx-jets.com/#list-categories). |
| `quotes[].label`, `examples` | string | Display name of the category and typical aircraft, in English. |
| `quotes[].seats` | integer | Maximum passengers of the category. |
| `quotes[].flightTime` | object | Flight time of one leg. |
| `quotes[].priceLow`, `priceHigh` | integer | Range for the whole trip, in EUR, rounded to the nearest hundred. |
| `quotes[].passengerTax` | integer | Part of the range due to per-passenger taxes. Already included. It depends on the aircraft category and on the countries of the route. |
| `quotes[].best` | boolean | The cheapest category that fits the distance and the seats. |
| `reason` | string | Present with an empty `quotes`: `range_exceeded` (no aircraft large enough flies the route non-stop) or `airfield_limit` (the runways of the route are too short for the aircraft that could). |
| `routeUrl` | string or null | Page of this route on flynxjets.com, when one exists. |

### Errors

`invalid_request` `unknown_airport` `same_airport` `invalid_passengers` `invalid_date` `multi_leg_not_estimated`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl -X POST "https://api.nx-jets.com/v1/estimates" \
  -H "Authorization: Bearer $NXJETS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "legs": [
    {
      "from": "LFPB",
      "to": "LFMN",
      "date": "2026-12-20"
    }
  ],
  "passengers": 4,
  "locale": "en"
}'
```

### Response 200

```json
{
  "from": {
    "icao": "LFPB",
    "iata": "LBG",
    "name": "Paris-Le Bourget International Airport",
    "city": "Paris",
    "country": "France"
  },
  "to": {
    "icao": "LFMN",
    "iata": "NCE",
    "name": "Nice-Côte d'Azur Airport",
    "city": "Nice",
    "country": "France"
  },
  "distanceNm": 375,
  "roundTrip": false,
  "currency": "EUR",
  "seasonality": {
    "pct": 14,
    "events": ["Year-end holidays"]
  },
  "quotes": [
    {
      "category": "turboprop",
      "label": "Turboprop",
      "examples": "Pilatus PC-12 · King Air 350",
      "seats": 8,
      "flightTime": {
        "hours": 1,
        "minutes": 47
      },
      "priceLow": 9300,
      "priceHigh": 13500,
      "passengerTax": 420,
      "best": true
    },
    {
      "category": "very-light",
      "label": "Very Light",
      "examples": "Citation Mustang · Citation M2 · Phenom 100",
      "seats": 5,
      "flightTime": {
        "hours": 1,
        "minutes": 30
      },
      "priceLow": 9900,
      "priceHigh": 14100,
      "passengerTax": 840,
      "best": false
    },
    {
      "category": "light",
      "label": "Light",
      "examples": "Citation CJ2 · CJ3 · CJ4 · Hawker 400",
      "seats": 7,
      "flightTime": {
        "hours": 1,
        "minutes": 20
      },
      "priceLow": 10300,
      "priceHigh": 14700,
      "passengerTax": 840,
      "best": false
    }
  ],
  "routeUrl": "https://flynxjets.com/en/private-jet/paris-to-nice"
}
```

The example shows the first three of nine categories returned for this route.

---

## Get the seasonality of a route

`GET /routes/{from}/{to}/seasonality`

Price level of a route for each month of the year, with the events that drive it. Useful to show your client the cheapest and busiest periods.

### Path and query parameters

| Field | Type | Description |
| --- | --- | --- |
| `from` (required) | string | ICAO code of the departure airport. |
| `to` (required) | string | ICAO code of the arrival airport. |
| `locale` | string | `en`, `fr`, `es` or `de`, in lower case. |

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `months[].level` | string | `low`, `mid`, `high` or `peak`. |
| `months[].pct` | integer | Typical adjustment of the month, in percent. |
| `months[].events` | array | Names of the events or periods of the month, in the language of `locale`. |
| `months[].month` | integer | 1 for January to 12 for December. |
| `cheapestMonths`, `peakMonths` | array | Month numbers with the lowest and the highest adjustment of the year. Several months can share the `peak` level without being the highest. |

### Errors

`invalid_request` `unknown_airport` `same_airport`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl "https://api.nx-jets.com/v1/routes/LFPB/LFMN/seasonality" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "months": [
    { "month": 1, "level": "low", "pct": -4, "events": ["New Year"] },
    { "month": 2, "level": "mid", "pct": -2, "events": [] },
    { "month": 3, "level": "mid", "pct": 0, "events": ["MIPIM in Cannes"] },
    { "month": 4, "level": "mid", "pct": 2, "events": [] },
    { "month": 5, "level": "peak", "pct": 7, "events": ["Cannes Film Festival"] },
    { "month": 6, "level": "peak", "pct": 10, "events": ["Monaco Grand Prix", "Cannes Lions"] },
    { "month": 7, "level": "peak", "pct": 14, "events": [] },
    { "month": 8, "level": "peak", "pct": 14, "events": [] },
    { "month": 9, "level": "peak", "pct": 9, "events": ["Monaco Yacht Show"] },
    { "month": 10, "level": "mid", "pct": 2, "events": [] },
    { "month": 11, "level": "low", "pct": -4, "events": [] },
    { "month": 12, "level": "high", "pct": 4, "events": ["Year-end holidays"] }
  ],
  "cheapestMonths": [1, 11],
  "peakMonths": [7, 8]
}
```

---

## Send a flight request

`POST /requests`

Puts a flight request in the NX Jets brokers' queue, under your name. This is the call behind the "Request a quote" button of your form.

### Body

| Field | Type | Description |
| --- | --- | --- |
| `legs` (required) | array | One to six legs. See [Flight shapes](https://docs.nx-jets.com/#flight-shapes). |
| `returnDate` | string | Makes the request a round trip. |
| `returnTime` | string | Preferred departure time of the return. |
| `returnPassengers` | integer | Passengers on the return, when the count differs from the outbound. |
| `passengers` | integer | 1 to 30. Default for legs that carry no count of their own. |
| `category` | string | Category your client picked in the results. |
| `priceLow`, `priceHigh` | integer | The range you displayed to your client, in EUR, so the broker knows what they saw. |
| `client` | object | Your client: `name` (80 characters at most), `phone` and `email`, all optional. A malformed phone number or e-mail address is refused. |
| `reference` | string | Your own file reference, up to 80 characters. Returned unchanged in the response. |
| `notes` | string | Free text for the broker, up to 1,000 characters. |
| `locale` | string | Language of your client, so the broker replies in it: `en`, `fr`, `es` or `de`. |

Send an `Idempotency-Key` header so a retry never creates a duplicate. See [Limits and retries](https://docs.nx-jets.com/#limits-retries).

The request always carries your name. With `client.phone` or `client.email`, the broker can reach your client directly. Without them, the broker contacts you and the client name is kept as a note.

### Errors

`invalid_request` `unknown_airport` `same_airport` `invalid_passengers` `invalid_date` `idempotency_conflict`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl -X POST "https://api.nx-jets.com/v1/requests" \
  -H "Authorization: Bearer $NXJETS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a9e-4b7d-4c1a-9e0f-2d3b5a7c8e91" \
  -d '{
  "legs": [
    {
      "from": "LFPB",
      "to": "LFMN",
      "date": "2026-12-20",
      "time": "10:00"
    }
  ],
  "passengers": 4,
  "category": "light",
  "priceLow": 10300,
  "priceHigh": 14700,
  "client": {
    "name": "Alex Morgan",
    "phone": "+44 20 7946 0321",
    "email": "alex.morgan@example.com"
  },
  "reference": "TRIP-2291",
  "notes": "Client prefers a morning departure."
}'
```

### Response 201

```json
{
  "id": "req_8f3k2m9x",
  "type": "charter",
  "status": "received",
  "reference": "TRIP-2291",
  "createdAt": "2026-11-24T09:42:11.889Z"
}
```

---

## List your requests

`GET /requests`

> **Planned after v1.** Not part of the first release: today this call answers `404 not_found`.

Your requests, most recent first: flight requests and empty leg bookings. Only requests created with your keys are returned.

### Query parameters

| Field | Type | Description |
| --- | --- | --- |
| `status` | string | One of the [request statuses](https://docs.nx-jets.com/#request-statuses). |
| `reference` | string | Your own reference, exact match. |
| `createdFrom`, `createdTo` | string | Creation date range. |
| `limit` | integer | 1 to 50. Default 20. |
| `cursor` | string | Value of `nextCursor` from the previous page. |

### Request

```bash
curl "https://api.nx-jets.com/v1/requests?status=in_progress&limit=20" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "requests": [
    {
      "id": "req_8f3k2m9x",
      "type": "charter",
      "reference": "TRIP-2291",
      "status": "in_progress",
      "legs": [
        {
          "from": "LFPB",
          "to": "LFMN",
          "date": "2026-12-20",
          "time": "10:00"
        }
      ],
      "returnDate": null,
      "passengers": 4,
      "createdAt": "2026-11-24T09:42:11.889Z",
      "updatedAt": "2026-11-24T10:15:40.667Z"
    }
  ],
  "nextCursor": null
}
```

---

## Get a request

`GET /requests/{id}`

> **Planned after v1.** Not part of the first release: today this call answers `404 not_found`.

One request and its current status.

### Path parameters

| Field | Type | Description |
| --- | --- | --- |
| `id` (required) | string | The id returned when the request was created. |

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `type` | string | `charter` or `empty_leg`. |
| `status` | string | See [Request statuses](https://docs.nx-jets.com/#request-statuses). |
| `updatedAt` | string | Last change of status. |

### Errors

`not_found`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl "https://api.nx-jets.com/v1/requests/req_8f3k2m9x" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "id": "req_8f3k2m9x",
  "type": "charter",
  "reference": "TRIP-2291",
  "status": "in_progress",
  "legs": [
    {
      "from": "LFPB",
      "to": "LFMN",
      "date": "2026-12-20",
      "time": "10:00"
    }
  ],
  "returnDate": null,
  "passengers": 4,
  "createdAt": "2026-11-24T09:42:11.889Z",
  "updatedAt": "2026-11-24T10:15:40.667Z"
}
```

---

## List empty legs

`GET /empty-legs`

The empty legs currently open, soonest first, in one response without pagination. An empty leg is a repositioning flight sold at a reduced price on a fixed route and date.

### Query parameters

| Field | Type | Description |
| --- | --- | --- |
| `from`, `to` | string | ICAO codes, to filter on a departure or an arrival. |
| `dateFrom`, `dateTo` | string | Flight date range. |
| `category` | string | Category key. Offers without a category are left out. |

The list is refreshed every minute: an offer taken a moment ago can still appear here. `GET /empty-legs/{slug}` and a booking are always up to date. A filter never fails on an airport that has no offer: it returns an empty list. Past dates are accepted in `dateFrom` and `dateTo`.

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `checkedAt` | string or null | Last time the operators' lists were checked. |
| `updatedAt` | string or null | Last time an offer was added or changed. |
| `offers[].slug` | string | Identifier of the offer. |
| `offers[].from`, `to` | object | ICAO code and display label of the airport. |
| `offers[].seats` | integer or null | Passenger seats of the aircraft. |
| `offers[].status` | string | `open`, `taken` or `expired`. The list returns open offers only. |
| `offers[].aircraft` | string or null | Aircraft model. Never the registration. |
| `offers[].category` | string or null | Category key, when the model maps to one. |
| `offers[].date` | string | Flight date. The departure time is given by the broker. |
| `offers[].yearBuilt`, `yearRefurbished` | integer or null | Of the exact aircraft, when known. |
| `offers[].photo`, `cabinPhoto` | string or null | Exterior and cabin of the same model, as absolute image URLs. |
| `offers[].price` | object or null | Public price of the offer. `null` when no price is published. |
| `offers[].url` | string | Page of the offer on flynxjets.com. |

### Errors

`invalid_request` `invalid_date`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl "https://api.nx-jets.com/v1/empty-legs?from=LSGG&dateFrom=2026-12-01&dateTo=2026-12-31" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "checkedAt": "2026-11-24T06:00:12.000Z",
  "updatedAt": "2026-11-23T17:31:05.270Z",
  "offers": [
    {
      "slug": "geneva-farnborough-12-dec-k7x2",
      "status": "open",
      "from": {
        "icao": "LSGG",
        "label": "Geneva (LSGG)"
      },
      "to": {
        "icao": "EGLF",
        "label": "Farnborough (EGLF)"
      },
      "date": "2026-12-12",
      "aircraft": "Citation XLS+",
      "seats": 8,
      "category": "super-light",
      "yearBuilt": 2014,
      "yearRefurbished": 2022,
      "photo": "https://admin.nx-jets.com/api/public/aircraft-image/citation-xls-plus-exterior",
      "cabinPhoto": "https://admin.nx-jets.com/api/public/aircraft-image/citation-xls-plus-cabin",
      "price": {
        "amount": 6900,
        "currency": "EUR"
      },
      "url": "https://flynxjets.com/en/empty-legs/geneva-farnborough-12-dec-k7x2"
    }
  ]
}
```

---

## Get an empty leg

`GET /empty-legs/{slug}`

One empty leg. Call it before showing a booking form: an offer can be taken at any moment. A known offer that is taken or expired is still returned, with its `status`.

### Path parameters

| Field | Type | Description |
| --- | --- | --- |
| `slug` (required) | string | The `slug` of the offer. |

### Errors

`not_found`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl "https://api.nx-jets.com/v1/empty-legs/geneva-farnborough-12-dec-k7x2" \
  -H "Authorization: Bearer $NXJETS_API_KEY"
```

### Response 200

```json
{
  "slug": "geneva-farnborough-12-dec-k7x2",
  "status": "open",
  "from": {
    "icao": "LSGG",
    "label": "Geneva (LSGG)"
  },
  "to": {
    "icao": "EGLF",
    "label": "Farnborough (EGLF)"
  },
  "date": "2026-12-12",
  "aircraft": "Citation XLS+",
  "seats": 8,
  "category": "super-light",
  "yearBuilt": 2014,
  "yearRefurbished": 2022,
  "photo": "https://admin.nx-jets.com/api/public/aircraft-image/citation-xls-plus-exterior",
  "cabinPhoto": "https://admin.nx-jets.com/api/public/aircraft-image/citation-xls-plus-cabin",
  "price": {
    "amount": 6900,
    "currency": "EUR"
  },
  "url": "https://flynxjets.com/en/empty-legs/geneva-farnborough-12-dec-k7x2"
}
```

---

## Request an empty leg

`POST /empty-legs/{slug}/bookings`

Asks to book an empty leg for your client. It is a request: a broker confirms availability with the operator before anything is firm.

### Body

| Field | Type | Description |
| --- | --- | --- |
| `passengers` (required) | integer | At least 1, at most the seats of the offer. |
| `client` | object | Your client: `name` (80 characters at most), `phone` and `email`, all optional. A malformed phone number or e-mail address is refused. |
| `reference` | string | Your own file reference, up to 80 characters. Returned unchanged in the response. |
| `notes` | string | Free text for the broker, up to 1,000 characters. |

Send an `Idempotency-Key` header so a retry never creates a duplicate. See [Limits and retries](https://docs.nx-jets.com/#limits-retries).

The request always carries your name. With `client.phone` or `client.email`, the broker can reach your client directly. Without them, the broker contacts you and the client name is kept as a note.

### Errors

`invalid_request` `not_found` `offer_unavailable` `not_enough_seats` `invalid_passengers` `idempotency_conflict`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl -X POST "https://api.nx-jets.com/v1/empty-legs/geneva-farnborough-12-dec-k7x2/bookings" \
  -H "Authorization: Bearer $NXJETS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a9e-4b7d-4c1a-9e0f-2d3b5a7c8e91" \
  -d '{
  "passengers": 3,
  "client": {
    "name": "Alex Morgan",
    "phone": "+44 20 7946 0321",
    "email": "alex.morgan@example.com"
  },
  "reference": "TRIP-2304"
}'
```

### Response 201

```json
{
  "id": "req_2c7n4q1d",
  "type": "empty_leg",
  "status": "received",
  "offer": "geneva-farnborough-12-dec-k7x2",
  "reference": "TRIP-2304",
  "createdAt": "2026-11-24T11:03:27.778Z"
}
```

---

## Set an empty leg alert

`POST /empty-leg-alerts`

> **Planned after v1.** Not part of the first release: today this call answers `404 not_found`.

Registers interest in empty legs on a route. When a matching flight comes up, our team contacts your client, or you when no client contact was given.

### Body

| Field | Type | Description |
| --- | --- | --- |
| `from` (required) | string | ICAO code of the departure airport. |
| `to` (required) | string | ICAO code of the arrival airport. |
| `client` | object | Your client: `name` (80 characters at most), `phone` and `email`, all optional. A malformed phone number or e-mail address is refused. |
| `reference` | string | Your own file reference, up to 80 characters. Returned unchanged in the response. |

Send an `Idempotency-Key` header so a retry never creates a duplicate. See [Limits and retries](https://docs.nx-jets.com/#limits-retries).

### Errors

`invalid_request` `unknown_airport` `same_airport` `idempotency_conflict`. See [Errors](https://docs.nx-jets.com/#errors).

### Request

```bash
curl -X POST "https://api.nx-jets.com/v1/empty-leg-alerts" \
  -H "Authorization: Bearer $NXJETS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a9e-4b7d-4c1a-9e0f-2d3b5a7c8e91" \
  -d '{
  "from": "LSGG",
  "to": "EGLF",
  "client": {
    "name": "Alex Morgan",
    "phone": "+44 20 7946 0321",
    "email": "alex.morgan@example.com"
  },
  "reference": "TRIP-2310"
}'
```

### Response 201

```json
{
  "id": "alt_5t2w8k1c",
  "from": "LSGG",
  "to": "EGLF",
  "reference": "TRIP-2310",
  "createdAt": "2026-11-24T11:20:02.482Z"
}
```

---

## Request statuses

> **Planned after v1.** Tracking comes with `GET /requests`.

A request moves through these statuses.

| Status | Meaning |
| --- | --- |
| `received` | The request is in the brokers' queue. |
| `in_progress` | A broker is working on it: operators have been asked or a quote is being prepared. |
| `booked` | The flight is confirmed and being arranged. |
| `flown` | The last leg of the trip has departed. |
| `closed` | The request ended without a flight. |

Tracking carries no price, no operator and no aircraft. The quote itself is sent to you by the broker. New statuses may be added: treat an unknown one as `in_progress`.

---

## For AI assistants

The documentation is written to be handed to a coding assistant.

- **Copy for LLM** on any section copies that section as Markdown.
- **Copy full docs for LLM** in the top bar copies the whole documentation as one Markdown text.
- [llms.txt](https://docs.nx-jets.com/llms.txt) lists every section with its address, and [llms-full.txt](https://docs.nx-jets.com/llms-full.txt) holds the full text.
- [index.md](https://docs.nx-jets.com/index.md) is this page as Markdown.
- [openapi.json](https://docs.nx-jets.com/openapi.json) is the OpenAPI 3.1 description of the API.

---

## Changelog

| Date | Change |
| --- | --- |
| 2026-11-25 | v1 released at `https://api.nx-jets.com/v1`: airports, estimates, seasonality, requests, empty legs. Airport search accepts several words (`Paris Le Bourget`, `New York Teterboro`). |
| 2026-11-24 | Draft of v1 published for review: airports, estimates, seasonality, requests, empty legs. Request tracking and empty leg alerts described as planned. |
