Quick Start

Get up and running with the Flylogs API in three steps.

1. Get API Access

API access must be activated by the Flylogs team:

  1. Contact Flylogs Supportarrow-up-right to request API activation

  2. You need a Premium or Unlimited account

  3. Once activated, use your existing Flylogs user credentials

2. Authenticate

Obtain a session token by logging in:

curl -X POST https://fmc.flylogs.com/v1/login.json \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "your-password"
  }'

Response

{
  "response": {
    "result": true,
    "token": "kub0bmm3immamk6q1brojrq527",
    "user_id": 1234,
    "two_factor": "OFF"
  }
}

Save the token value — you'll need it for all subsequent requests.

circle-info

2FA: If two_factor is not "OFF", the server will send a verification code. Make a second login request with the code field included.

3. Make Your First Request

Use the token to fetch your user profile:

Response

Common Patterns

Pagination

List endpoints (flights, pilots) return paginated results:

Check paginate.nextPage in the response to know if more pages exist.

Filters in URL Path

Many endpoints encode filters in the URL path rather than query parameters:

Use empty string for filters you want to skip.

File Downloads

Export endpoints (XLS, PDF) require the token as a query parameter:

Error Handling

All errors return a JSON response with a message field:

Status
Action

401

Token expired or invalid — re-authenticate

403

Insufficient permissions for this endpoint

429

Rate limited — reduce request frequency

Last updated