APIFlight
Export flights
Export an AirTrail backup visible to the authenticated API key. The JSON response matches the AirTrail import format. Regular users can only export their own flights. Admins and owners can also request a specific user's flights or all flights.
AuthorizationBearer <token>
Go to Settings -> Security and create a new API key. Use the generated key as the bearer token.
In: header
Query Parameters
format?string
The backup format to return.
Default
"json"Value in
"json" | "yaml" | "yml"scope?string
Which flights to export. mine is the default. user and all require an admin or owner API key.
Default
"mine"Value in
"mine" | "user" | "all"userId?string
The user ID whose flights should be exported when scope=user.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://your-instance.com/api/flight/export"{
"users": [
{
"id": "string",
"displayName": "string",
"username": "string"
}
],
"flights": [
{}
]
}{
"success": false,
"message": "Invalid format"
}{
"success": "false",
"message": "Unauthorized"
}{
"success": "false",
"message": "Forbidden"
}{
"success": "false",
"message": "string"
}Edit on GitHub
Last updated on
