Flylogs API
The Flylogs API provides programmatic access to your flight operations, crew management, training, safety, and billing data. It follows REST conventions and returns JSON responses.
Base URL
Section titled “Base URL”https://fmc.flylogs.com/v1Authentication
Section titled “Authentication”All endpoints (except a few public ones, such as the countries and timezones lists) require an API key as a Bearer token in the Authorization header:
Authorization: Bearer flk_3pQ8XnX...ZrAPI keys are long-lived, revocable secrets created by a Company Administrator under Company Settings → API. A key authenticates as the user it is bound to and inherits that user’s permissions. There is no login step. The company needs API access (a paid plan with the API add-on, or Unlimited). See API Keys to create one, and Authentication for how to send it.
Request Format
Section titled “Request Format”| Method | Content-Type |
|---|---|
| GET | No body — parameters in the URL path (/name:value/) or the query string |
| POST | application/json or form data (data[Model][field]); multipart/form-data for file uploads |
Every path ends in .json.
Response Format
Section titled “Response Format”All responses return JSON (except PDF and XLS downloads). Successful responses typically contain the requested data directly. Numbers come back as strings, on/off fields as booleans, dates as YYYY-MM-DD and date-times as YYYY-MM-DD HH:MM:SS; many timestamps are Unix seconds, as noted per endpoint.
Error responses have the same shape everywhere. Branch on error, never on message:
{ "code": 404, "error": "NOT_FOUND", "name": "Descriptive error message", "message": "Descriptive error message", "url": "/flights/view/999.json"}Many write endpoints answer a refused change with status 200 and "result": false plus a message; check result as well as the status.
HTTP Status Codes
Section titled “HTTP Status Codes”| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad request — invalid parameters |
| 401 | Unauthorized — missing, invalid, expired or revoked API key |
| 402 | Payment required — API access is not enabled for the company |
| 403 | Forbidden — insufficient permissions, or the company is switched off |
| 404 | Resource not found |
| 405 | Wrong HTTP method |
| 429 | Rate limited — too many requests |
Rate Limiting
Section titled “Rate Limiting”Design your integration to cache responses and avoid unnecessary polling. Requests may be throttled with 429: wait and retry. Flylogs may suspend API access for a company whose traffic harms the service. See Usage.
Quick Links
Section titled “Quick Links”| Section | Description |
|---|---|
| Quick Start | Get up and running in minutes |
| Authentication | Authenticating requests with an API key |
| API Keys | Creating, listing and revoking API keys |
| Users | Own profile, sessions, two-factor, organizations |
| Manager Users | Staff accounts: create, edit, delete, history |
| Company | Company settings, operating hours, subscription, integrations, FTL profiles, support tickets |
| Flights | Flight records, filtering, audit trail |
| Aircraft | Fleet management, logbooks, ADSB tracking |
| Pilots | Pilot records, certificates, currency |
| Schedules | Flight schedules, availability, calendar |
| Messages | Internal messaging system |
| Trainings | Training courses, students, exams |
| Safety Reports | SMS reports, risk matrix |
| Documents | Document library, folders, file uploads |
| News | Company news and announcements |
| Reports | Flight hours, statistics |