Pilot Logbook¶
To get the pilot logbook (PDF), make a GET
request to pilot_logbook
.
-
GET
api/latest/pilot_logbook
¶ Example request:
GET /api/latest/pilot_logbook HTTP/1.1 Authorization: Basic NTUyMjk4ZjctY...
curl -i \ -u eyJhbGciOiJIUzI1NiIsImV4cCI6MTQwMjk5MTA2MCwiaWF0IjoxNDAyOTg3NDYwfQ.eyJpZCI6Ijg3YTBlZmViLTEzNjgtNGU4Mi1hYzVkLTZiYWQ0YzYzZGZiYiJ9.c9kn43-6DtQp2qHFaHpztxe6cEWwXDbBOmF4T9yQ_n4: \ -o logbook.pdf \ "https://mycontrol.aero/api/latest/logbook?empty_page=true&documents=true"
Example response:
HTTP/1.0 200 OK Content-Type: application/pdf; charset=UTF-8 %PDF-1.4 ...
Query Parameters: - type – Aircraft type:
AIRPLANE
,HELICOPTER
,GLIDER
,MOTORGLIDER
orSIMULATOR
(default isAIRPLANE
). - date_from – Start date (ISO-8601 format). If not provided, the logbook starts with the first flight.
- date_to – End date (ISO-8601 format). If not provided, the logbook ends with the last flight.
- empty_page – If
true
, an empty page is appended to the logbook (default isfalse
). - documents – If
true
, related documents are appended to the logbook (default isfalse
). Only valid GIF/JPG/PNG/TIFF/PDF files are appended. - monthly_breaks – If
true
, each month starts at a new page (default isfalse
). - past_experience – If
false
, past experience is not included (default istrue
) - rows_per_page – Rows per page (default is 8 for flights, 16 for simulator).
- total_pages – If
false
, the total number of pages is not shown in the footer (default istrue
) - local_time – If
true
, local times are displayed instead of UTC (default isfalse
).
Request Headers: - Authorization – Base64 encoded access token
Status Codes: - 200 OK – No error
- 401 Unauthorized – Invalid or expired token
- type – Aircraft type: