Zum Hauptinhalt springen

API for operators

Connect your software to PrivJet Ops, free of charge for your own data.

Authentication

Create a key in the portal under “API & webhooks” (starts with pj_op_) and send it as a bearer token. Keys can be revoked at any time; each key has a limit against abuse.

OpenAPI 3.1 (JSON)

Endpoints

Empty legs

  • GET/api/v1/empty-legsList your empty legs
  • POST/api/v1/empty-legsCreate up to 50 empty legs
  • POST/api/v1/operator/legs/importRead empty legs from text, a PDF or an image into a draft
  • GET/api/v1/operator/legs/draftsOpen leg drafts (portal, API, email, WhatsApp, Telegram)
  • GET/api/v1/operator/legs/drafts/{id}One leg draft
  • POST/api/v1/operator/legs/drafts/{id}Confirm a draft and create the selected legs
  • DELETE/api/v1/operator/legs/drafts/{id}Discard a draft
  • GET/api/v1/operator/statsStatistics of your empty legs

Fleet

  • GET/api/v1/operator/aircraftList your aircraft
  • POST/api/v1/operator/aircraftAdd an aircraft
  • GET/api/v1/operator/aircraft/{id}Get one aircraft
  • PATCH/api/v1/operator/aircraft/{id}Update an aircraft
  • DELETE/api/v1/operator/aircraft/{id}Deactivate an aircraft

Availability

  • GET/api/v1/operator/aircraft/{id}/availabilityCalendar entries of an aircraft
  • POST/api/v1/operator/aircraft/{id}/availabilityAdd a calendar entry (optionally publish a repositioning flight as an empty leg)
  • PATCH/api/v1/operator/availability/{id}Update a calendar entry
  • DELETE/api/v1/operator/availability/{id}Delete a calendar entry (an unbooked empty leg published from it goes offline)
  • POST/api/v1/operator/availability/{id}/publishPublish an existing future repositioning flight as an empty leg

Schedule

  • GET/api/v1/operator/scheduleSchedule of the whole fleet: aircraft, entries with checks, trips, day notes
  • PATCH/api/v1/operator/schedule/entries/{id}Move or change an entry: time, aircraft (null = not assigned), status, route, flight number, passengers
  • POST/api/v1/operator/schedule/swapSwap the flights of two aircraft of the same type in a time window
  • POST/api/v1/operator/schedule/acknowledgeMark new or changed entries as seen
  • POST/api/v1/operator/schedule/notesAdd a day note
  • DELETE/api/v1/operator/schedule/notes/{id}Delete a day note
  • POST/api/v1/operator/tripsCreate a trip with one or more legs (number YYMM/n per month)
  • GET/api/v1/operator/trips/{id}A trip with its legs
  • PATCH/api/v1/operator/trips/{id}Change the trip (a new status applies to all legs)
  • POST/api/v1/operator/schedule/entries/{id}/move-tripMove a leg to another trip `{ tripId }` or a new one `{ tripId: null }`
  • POST/api/v1/operator/trips/{id}/legsAdd a leg to a trip
  • POST/api/v1/operator/trips/{id}/copyCopy a trip to a new date (as option, passengers not copied)

Checklist

  • GET/api/v1/operator/schedule/entries/{id}/checklistChecklist of a leg (operations, sales, client care) with section status
  • PATCH/api/v1/operator/schedule/entries/{id}/checklistChange one item: status, note, fields (e.g. code), due dates
  • POST/api/v1/operator/schedule/entries/{id}/checklistAdd an own item `{ label, section }` or reset all `{ action: "reset" }`
  • GET/api/v1/operator/schedule/entries/{id}/checklist/requestDraft email for an item (subject, text, suggested contacts)
  • POST/api/v1/operator/schedule/entries/{id}/checklist/requestSend the request by email (replies go to you), item becomes "requested"
  • GET/api/v1/operator/schedule/dueOpen checklist items with due dates across the fleet (overdue first)

Passengers

  • GET/api/v1/operator/schedule/entries/{id}/passengersPassengers of a leg (document number masked, validity on the flight date)
  • PUT/api/v1/operator/schedule/entries/{id}/passengersSet the passenger list `{ passengerIds, leadId?, applyToTrip? }`
  • POST/api/v1/operator/schedule/entries/{id}/passengersAdd passengers from a pasted list `{ text }` (one person per line)
  • GET/api/v1/operator/passengersPassenger database (document number masked)
  • POST/api/v1/operator/passengersAdd a passenger (document number stored encrypted)
  • PATCH/api/v1/operator/passengers/{id}Change a passenger
  • DELETE/api/v1/operator/passengers/{id}Delete a passenger and remove them from all legs

Phonebook

  • GET/api/v1/operator/contactsPhonebook (clients, handlers, caterers, hotels, suppliers)
  • POST/api/v1/operator/contactsAdd a contact
  • PATCH/api/v1/operator/contacts/{id}Change a contact
  • DELETE/api/v1/operator/contacts/{id}Delete a contact

Crew roster

  • GET/api/v1/operator/schedule/entries/{id}/crewCrew of a leg (positions to fill, assigned crew, confirmation status)
  • PUT/api/v1/operator/schedule/entries/{id}/crewAssign crew `{ assignments: [{ crewId, position }], applyToTrip? }`; flight duties are rebuilt from the assignments
  • GET/api/v1/operator/schedule/entries/{id}/crew/candidatesSuggested crew per position with issues (busy, off, type rating, licence, medical, passport) and FTL preview
  • POST/api/v1/operator/schedule/entries/{id}/crew/notifyEmail the assigned crew with a confirmation link (no login needed)
  • GET/api/v1/operator/rosterRoster: crew × period, duties (drafts included), totals and FTL checks per person
  • POST/api/v1/operator/rosterAdd a duty (off, standby, reserve, training, simulator, office, positioning, vacation, sick), draft by default
  • POST/api/v1/operator/roster/publishPublish drafts in a period and email the crew
  • POST/api/v1/operator/roster/discardDiscard drafts in a period

Reports

  • GET/api/v1/operator/reportsAll reports for a period (default: last 30 days, at most 400 days)
  • GET/api/v1/operator/reports/exportOne report as CSV (semicolon separated)

Invoices

  • GET/api/v1/operator/invoicesInvoices and credit notes with totals, status, overdue flag; plus company details
  • POST/api/v1/operator/invoicesIssue an invoice; with saleId client and lines come from the chosen quote
  • GET/api/v1/operator/invoices/settingsCompany details printed on invoices, with missing required fields
  • PUT/api/v1/operator/invoices/settingsSet company details, bank account, payment term, number prefix
  • GET/api/v1/operator/invoices/{id}An invoice or credit note
  • PATCH/api/v1/operator/invoices/{id}Change fields while open and not sent, or action pay, reopen, cancel
  • GET/api/v1/operator/invoices/{id}/pdfInvoice as PDF
  • POST/api/v1/operator/invoices/{id}/sendEmail the PDF to the client (or to)
  • POST/api/v1/operator/invoices/{id}/credit-noteCredit note for an invoice, in full or for chosen line indexes

Sales

  • GET/api/v1/operator/salesRequests with stage, route summary, quotes and totals
  • POST/api/v1/operator/salesCreate a request (client, passengers, requested legs)
  • GET/api/v1/operator/sales/{id}A request with all quotes
  • PATCH/api/v1/operator/sales/{id}Change client data or stage (lost needs lostReason)
  • DELETE/api/v1/operator/sales/{id}Delete a request that is not booked
  • POST/api/v1/operator/sales/{id}/quotesAdd a quote; without itinerary or lines it is calculated from the request (block times, positioning, prices)
  • POST/api/v1/operator/sales/{id}/bookBook a quote: creates the trip in the schedule (confirmed or option)
  • PATCH/api/v1/operator/sale-quotes/{id}Change a quote; recalc true recalculates block times and prices
  • DELETE/api/v1/operator/sale-quotes/{id}Delete a quote

Maintenance

  • GET/api/v1/operator/maintenanceOverview per aircraft: counters, limit state, next items, hold items, expiring documents
  • GET/api/v1/operator/aircraft/{id}/maintenanceCounters, maintenance items (also done) and documents of an aircraft
  • POST/api/v1/operator/aircraft/{id}/maintenanceAdd an inspection limit or a hold item
  • POST/api/v1/operator/aircraft/{id}/documentsAdd an aircraft document with expiry date
  • PUT/api/v1/operator/aircraft/{id}/countersSet airframe hours and landings (e.g. taken over from the tech log)
  • PATCH/api/v1/operator/maintenance/{id}Change an item; status done or open
  • DELETE/api/v1/operator/maintenance/{id}Delete an item
  • PATCH/api/v1/operator/aircraft-documents/{id}Change an aircraft document
  • DELETE/api/v1/operator/aircraft-documents/{id}Delete an aircraft document

Flight watch

  • GET/api/v1/operator/schedule/entries/{id}/flight-watchFlight watch, ADS-B suggestion, MVT messages, journey log and airframe counters of a flight
  • PATCH/api/v1/operator/schedule/entries/{id}/flight-watchSet actual times (UTC), delay code, diversion, pax on board, note
  • POST/api/v1/operator/schedule/entries/{id}/flight-watch/syncTake over take-off and landing from ADS-B (entered values stay)
  • PATCH/api/v1/operator/schedule/entries/{id}/journalJourney log: fuel, landings, pilot flying, technical entry, remarks
  • POST/api/v1/operator/schedule/entries/{id}/journal/closeClose the journey log: locks the flight, adds flight time and landings to the aircraft
  • POST/api/v1/operator/schedule/entries/{id}/journal/reopenReopen a closed journey log (admin only), counters are taken back

Documents

  • GET/api/v1/operator/schedule/entries/{id}/documentsDocuments your role may create for this flight, with gaps (no crew, passenger list missing …)
  • GET/api/v1/operator/schedule/entries/{id}/documents/{kind}Document as PDF (trip documents cover all legs of the trip)
  • POST/api/v1/operator/schedule/entries/{id}/documents/sendEmail documents as attachments to the crew of the trip and up to 10 more recipients

Requests

  • GET/api/v1/operator/requestsOpen charter requests matching your fleet and base (anonymous)
  • POST/api/v1/operator/requests/{id}/bidOpen the quote form for a request

Quotes

  • POST/api/v1/operator/requests/{id}/quotesSubmit or update a quick quote on a request
  • DELETE/api/v1/operator/requests/{id}/quotesWithdraw your quick quote
  • POST/api/v1/operator/quoteCalculate a quote from your rates
  • POST/api/v1/operator/quote/pdfQuotation PDF for your client, under your company name: only the client’s flights and the price (no registration, positioning, margin or estimates). Admin/sales.
  • GET/api/v1/operator/quote/settingsYour quote settings
  • PUT/api/v1/operator/quote/settingsSave quote settings (admin/sales)

Integrations

  • GET/api/v1/operator/legs/exportYour empty legs as CSV (same columns as the CSV import, plus status and link; max 1,000)
  • GET/api/v1/operator/availability/exportFleet calendar as CSV (times in UTC)
  • GET/api/v1/operator/icalSecret iCal subscription link (fleet calendar, your empty legs, confirmed bookings, no customer data). A new link is created in the portal.
  • GET/api/v1/operator/aircraft/{id}/ical-importStatus of the calendar import of an aircraft
  • PUT/api/v1/operator/aircraft/{id}/ical-importConnect an iCal calendar (Leon, FL3XX, Google …) to an aircraft and sync it now. Busy times are imported every 30 minutes
  • POST/api/v1/operator/aircraft/{id}/ical-importSync the connected calendar now
  • DELETE/api/v1/operator/aircraft/{id}/ical-importDisconnect the calendar (future imported entries are removed)

Bookings

  • GET/api/v1/operator/contractsYour bookings and quotes
  • POST/api/v1/operator/contracts/{id}/cancelCancel a confirmed booking
  • POST/api/v1/operator/contracts/{id}/crew-confirmConfirm the crew for a booking

Example: create an empty leg

curl -X POST https://www.privjet.net/api/v1/empty-legs \
  -H "Authorization: Bearer pj_op_…" \
  -H "Content-Type: application/json" \
  -d '{"emptyLegs":[{"departureAirport":{"icao":"LSGG"},"arrivalAirport":{"icao":"LFMN"},
       "departureDate":"2026-11-03","departureTime":"14:30",
       "aircraft":{"model":"Citation XLS+","manufacturer":"Cessna"},
       "maxPassengers":8,"price":6400,"currency":"EUR"}]}'

Webhooks report events to your systems (signed with HMAC-SHA256, no client personal data); set them up in the portal under “API & webhooks”. These events exist:

  • contract.signedA client signed a pre-contract for your leg or quote
  • contract.confirmedYou confirmed the booking, service fee pending
  • contract.service_fee_paidService fee paid, the client now pays the flight price to you
  • contract.paidFlight price received (confirmed by you)
  • contract.completedFlight completed
  • contract.cancelledBooking cancelled
  • contract.refundedBooking refunded
  • rfq.createdNew charter request in the marketplace matching your fleet
  • charter.bid_requestedWe asked you directly for a quote
  • charter.bid_submittedYour quote was received
  • charter.bid_wonThe client chose your quote
  • charter.bid_outbidThe client chose another quote
  • charter.no_quotes_receivedRequest closed without quotes
  • leg.approvedLeg approved after review
  • leg.rejectedLeg rejected after review
  • leg.bookedLeg booked (flight price paid)
  • test.pingTest event (“Test” button)

Market data of other providers belongs to the paid broker API. Broker API