Export flights
Deprecated
Deprecated: This endpoint will be removed in the next major AirTrail release. Migrate to GET /api/v1/flights/export. Export an AirTrail backup visible to the authenticated API key. The JSON response matches the AirTrail import format. scope=mine requires flight.export.own. scope=user and scope=all require flight.export.any.
bearerAuthAuthorizationBearer <token>Go to Settings -> Security and create a new API key. Use the generated key as the bearer token.
format?stringThe backup format to return.
"json""json""yaml""yml"scope?stringWhich flights to export. mine is the default. user and all require flight.export.any.
"mine""mine""user""all"userId?stringThe user ID whose flights should be exported when scope=user.
An AirTrail backup export
- response
AirTrail backup export. The JSON representation can be imported using the AirTrail importer.
users?array<>flights?array<>curl -X GET 'https://your-instance.com/api/flight/export'{ "users": [ { "id": "string", "displayName": "string", "username": "string" } ], "flights": [ {} ]}List flights GET
**Deprecated:** This endpoint will be removed in the next major AirTrail release. Migrate to `GET /api/v1/flights`. List flights visible to the authenticated API key. `scope=mine` requires `flight.read.own`. `scope=user` and `scope=all` require `flight.read.any`.
Get flight details GET
**Deprecated:** This endpoint will be removed in the next major AirTrail release. Migrate to `GET /api/v1/flights/{id}`. Get details of a specific flight by ID. A passenger requires `flight.read.own`; access to any flight requires `flight.read.any`.
