List and download the OpenAir files a pilot saved from the XC planner briefing: private, kept 30 days, OpenAir v1 or v2.1.
Pilots finish the XC planner (/xc-planner) with a briefing step that
bundles the airspaces and NOTAMs they picked into one OpenAir file. Besides
downloading it, a signed-in pilot can name it, pick OpenAir v1 or v2.1, and
save it to their account. Saved files are what these endpoints serve, so a
flight instrument or another tool can pull the pilot's planned airspace
without a manual copy.
Private. A pilot only ever sees their own files. Another pilot's id
answers 404, exactly like an id that never existed.
Short-lived. A file is deleted 30 days after it was saved
(expiresAt). An expired file answers 404 straight away, even before the
database purge removes it. Re-list instead of caching ids for weeks.
Immutable. A saved file never changes. Saving again creates a new file
with a new id, so the id doubles as the ETag of the text.
Read-only. Files are created from the planner on the web. The API lists
and downloads them; the pilot deletes them from the planner.
Scope:airspace:read (available to pending apps and personal API keys).
GET /api/v1/airspace/files/6710c3f2a8b4e1d2c3f4a5b6/openair HTTP/1.1
Authorization: Bearer wf_at_...
If-None-Match: "6710c3f2a8b4e1d2c3f4a5b6"
Header
Value
Content-Type
text/plain; charset=utf-8
Content-Disposition
attachment; filename="Annecy task 3.txt"; filename*=UTF-8''Annecy%20task%203.txt. filename is an ASCII fallback (other characters become _); read filename* for the real name
ETag
"<id>". Send it back as If-None-Match to get a body-free 304
X-OpenAir-Version
1 or 2.1
X-Expires-At
Same as expiresAt
The text uses \n line endings and ends with a newline. See the
OpenAir airspace format for the records a v2.1
file may carry.