ApiFilter Guide

How to filter results using the operator:value syntax.

Operators

Operator Description SQL Mapping Example
EqEqual to (exact match)=Eq:0 or Eq:some-guid
GtGreater than (exclusive)>Gt:2025-01-01
GteGreater than or equal (inclusive)>=Gte:2025-01-01T00:00:00Z
LtLess than (exclusive)<Lt:2025-12-31
LteLess than or equal (inclusive)<=Lte:2025-12-31

Date Formats

Preferred: ISO‑8601 UTC with Z.

  • Preferred: Gte:2025-10-20T00:00:00Z
  • Also accepted: Gt:2018-01-01 (YYYY‑MM‑DD)
  • Also accepted: Gte:2018-01-01T00:00:00+00:00 (ISO with offset)
  • Also accepted: Gt:2018-1-1 (YYYY-M-D)
  • Also accepted: Gte:1/1/1900 (m/d/yyyy)

Reporting API: send dates without a Z or UTC offset. Each filter is compared in the time zone of the field it filters. See Reporting API time zones.

Note: Operators are case-insensitive; use operator:value with a single colon.

Semantics

  • Gte is inclusive; Gt is exclusive.
  • Combine filters by repeating different parameters (logical AND).
  • Do not repeat the same parameter multiple times; OR is not supported.

Per-field Restrictions

Some fields accept only certain operators based on validation rules. Examples:

  • LastUpdated: Gte only.
  • FlightDate: date comparisons such as Gt, Gte, Lt, Lte.
  • displayTypeId, userId, statusId: Eq only (exact match for IDs or enum values).
  • resolved: Eq only (accepts boolean values: true or false).

Endpoints Using ApiFilter

Core API
  • Aircraft: statusId
  • Maintenance Reminders: statusId
  • Squawks: resolved
  • Instructors: instructorStatusId, locationId
  • Users: statusId
  • Equipment: locationId, statusId
Reporting API
  • Flights: FlightDate, FlightDateRangeEndDate, LastUpdated
  • FlightSegments: FlightDate, LastUpdated
  • Invoices: InvoiceDate, LastUpdated
  • People: CreatedDate, LastUpdated
  • Sessions: SessionDate, LastUpdated
  • WorkOrders/WorkLogs/WorkItems: CreatedDate, LastUpdated
  • Reservation: CreatedDate, CreatedDateRangeEndDate, EndDate, EndDateRangeEndDate, CancelledDate, CancelledDateRangeEndDate, LastUpdated
  • StudentProgress: EnrollmentDate, LastUpdated
  • LogbookEntries: CreatedDate, LastUpdated
  • MaintenanceReminderStatus: DueDate, LastUpdated
Reporting API time zones

Reporting API dates and times are returned without a time zone offset (for example 2026-10-05T08:00:00). Most are in the operator's local time zone. These fields are UTC:

Field Report Time zone
lastUpdatedAll reportsUTC
authorizedOn, acknowledgedOnFlightsUTC
certifiedAtTraining SessionsUTC
merchantTransactionDateInvoicesUTC
Every other date and time field, for example createdAt, start, end, cancelledAt, flightDateAll reportsOperator's local time zone

Filters use the time zone of the field they compare. LastUpdated takes a UTC value. Every other date filter, such as CreatedDate, FlightDate, EndDate and CancelledDate, takes the operator's local time.

  • LastUpdated=Gte:2026-10-05T13:00:00: rows changed at or after 1:00 PM UTC, 5 October 2026
  • CreatedDate=Gte:2026-10-05T08:00:00: reservations created at or after 8:00 AM operator local time, 5 October 2026
Scheduling API
  • Reservations: startTime, endTime, displayTypeId, userId, tailNumber, reservationTypeName, startTimeUtc, endTimeUtc

startTime / endTime — operator local timezone
These filters compare against the reservation's start and end times as stored in the operator's configured local timezone. Supply values in the operator's local timezone without a timezone suffix. The timestamp is optional — a date-only value is treated as midnight — but including it is recommended for precision.

  • startTime=Gte:2020-03-10T00:00:00 — reservations starting on or after midnight, 10 March 2020 (operator local time)
  • endTime=Lte:2020-03-10T23:59:59 — reservations ending on or before 11:59 PM, 10 March 2020 (operator local time)
  • startTime=Gte:2020-03-10 — date-only shorthand; equivalent to Gte:2020-03-10T00:00:00

Do not include a Z or UTC offset in these values — these fields are not UTC-aware.

startTimeUtc / endTimeUtc — UTC
These filters compare against the stored UTC equivalents of the reservation times. Use these if you work in UTC and want to avoid converting to the operator's local timezone yourself. Values must include a Z suffix.

  • startTimeUtc=Gte:2020-03-10T00:00:00Z — reservations starting on or after midnight UTC, 10 March 2020
  • endTimeUtc=Lte:2020-03-10T23:59:59Z — reservations ending on or before 11:59 PM UTC, 10 March 2020

Note: startTimeUtc and endTimeUtc are nullable — reservations without a stored UTC value will not match these filters.

Back to Core API | Back to Reporting | Back to Scheduling