RotorLab logo RotorLabDocs

API reference

This page lists every endpoint of the RotorLab HTTP API. The base URL is https://app.rotorlab.app/api/v1, and every request authenticates with Authorization: Bearer rl_... (the header X-API-Key is also accepted). If you have not made a call yet, start with the API quickstart.

All endpoints act as the calling user: you see your own builds, your own usage, and your own organization's records, and nothing else. A member's key is held to the member's role, exactly as a signed-in page is: reads need the area's view permission and writes its manage permission. The engine endpoints (/airframes, /catalog, /analyze, /rf, /cg, /crash) and your own builds need no role permission; flights and checklists need Flights & logs; /pilots and /sorties need the Flights manage permission; aircraft need Aircraft & registry; missions need Missions; work orders and components need Maintenance; types and bulletins need Types & bulletins; health needs Fleet health. A build id that belongs to another user returns 404, not 403, so ids cannot be probed.

Conventions#

Errors#

Each status means:

  • 400: Malformed request body, or a value that cannot be read: a number field that is not a number, a whole-number field holding a fraction or a value outside its range, an unknown airframe_type or frame_type, a yes or no field that is not one, a list field that is not a list, a field the call does not take (the error lists the ones it does), links on /rf that is not an object of named links, or a non-positive freq_mhz on /rf. The error names the field.
  • 401: Missing or invalid API key, including a key that has ended, a key whose holder's access end date has passed, and a personal key in an organization that allows no personal keys.
  • 402: The plan is current but the endpoint needs an add-on the account does not have (Crash Analyzer for /crash), or the plan includes no API calls and there are no credits: the body says "quota": "none" and there is no Retry-After, because waiting does not help.
  • 403: Key valid but not permitted: an ended trial or lapsed billing period on a metered endpoint, a credential scoped out of this area of the API (the body carries area, and the error says where to create a key with it), a write with a read-only key (the body carries "read_only": true), a key holder whose role does not see or manage this area, a key holder past their two-factor deadline (the organization's, or the 14 days every organization admin has to set up two-factor whatever the organization requires; the body carries "mfa_setup_required": true), a key holder outside the organization's single sign-on window ("sso": true), a member's key in a suspended organization (an organization admin's own key may still read with GET), or an organization endpoint called from an account with no organization. The error says which.
  • 404: A path that does not exist, or a resource you do not own or that is not there.
  • 405: The path exists but does not take this method; the Allow header lists the methods it takes.
  • 409: Not done because of the record's state: on DELETE /flights/{id}, the flight is on legal hold or a void request is already waiting for an organization admin; on /flights/{id}/log, the same log bytes are already stored with another flight, and duplicate_of names it.
  • 410: A queued /crash reading past its 7-day retention.
  • 413: Upload over the size limit (64 MB on /crash, 512 MB on /flights/{id}/log).
  • 429: Daily quota and credits both exhausted ("quota": "exhausted"), or five logs of yours already waiting to be read (sent here or from the Log, Crash or Security Analyzer pages; the body carries waiting).
  • 503: A /crash log not read in time to answer the call, or sent while many calls are already waiting: the body carries token and status_url to collect the reading. Without them, RotorLab had no room to hold the log; send it again later.

Every error body is JSON with an error string.

A refused call spends nothing. The body is checked whole before the call is counted, so a 400 for a field costs no unit, and a call refused after that (a build that is not there, or a freq_mhz the physics turns away) gives its unit back to the daily quota or the credit balance it came from. The one exception is POST /crash: a log that is accepted and then cannot be read answers 400 and counts as one call.

Metering headers#

Every metered response carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Credits. A call refused before it is counted carries none of them; a call refused after it is counted carries them with its unit already given back. A 429 for the daily quota also carries Retry-After with the seconds until the quota resets at 00:00 UTC, and its body repeats limit, used, and credits. A 429 for five logs already waiting carries waiting instead, with a Retry-After of 30 seconds; send again once one of them has been read.

Credential scopes#

A personal key reaches the areas named when it was created, and within them only what its holder's role reaches. The areas are flights (flights, aircraft, pilots, missions and maintenance reads), checklists, engine (/analyze, /rf, /cg, /crash and the catalog), builds, missions (saving, importing and deleting mission plans), jobs (reading jobs and clients), mcp (the MCP tools) and live (the live relay); version and usage come with every key. A key created read only reads records and calls the engine endpoints, and every other write is refused with 403 and "read_only": true; a read-only key never holds live. A key also ends on the day chosen when it was created (90 days unless chosen otherwise, or never), after which it answers 401. See API keys and credits.

The jobs area is never implied: a key made before it existed, or one with no areas named, does not read jobs or clients until it is given jobs on purpose, and a device credential never holds it.

A device credential (issued for a ground station, belonging to the organization) is scoped to the status, flights and checklists areas: version and usage, flights, checklists, pilots and aircraft, the day's sorties, mission reads, and the work order, component, type, bulletin, health and score reads, and nothing else; a re-keyed device keeps the same scope. A call outside a key's areas returns 403 with area naming the area it needs and an error saying where to get a key that has it (a device credential is told to use a personal key), and costs nothing. Every operation's area is x-area in the OpenAPI file.

Two-factor and single sign-on#

A personal key follows its holder's organization rules. Once the holder's two-factor deadline has passed without two-factor, every call except version and usage is refused until they turn it on; this applies to an org admin's key too. Every organization admin needs two-factor whatever the organization requires, so an organization admin's key is refused 14 days after they became an admin unless they have set it up. In an organization that requires single sign-on, a personal key works only within the SSO re-check period (24 hours unless the organization sets another) after its holder's last sign-in through the identity provider. Device credentials are not bound by either rule, so an unattended integration in such an organization should use one. Every refusal is written to the organization's activity log.

Meta#

Free and unmetered, so a blocked client can always read its own status.

MethodPathPurposeMetered
GET/versionAPI name, version, authorno
GET/usageYour current quota, remaining, and credit balanceno

GET /usage returns limit (requests per day from your plan), used, remaining, credits, the current UTC day, and a key object describing the key that made the call: id, label, prefix, scopes, areas, read_only, created, last_used, expires, expires_at (ISO 8601, UTC), expired and unrestricted. A key with no areas recorded reaches every area: its areas lists them all and unrestricted is true. Every key you create carries the areas ticked when you made it.

It also carries max_file_bytes, the largest flight log file one upload to /flights/{id}/log may carry, in bytes: 536870912 (512 MB). A larger file is refused before it is stored, so a ground station reads this before it sends a log, and uses 512 MB when the field is not there.

Analysis#

The physics engine over HTTP. All of these are metered.

MethodPathPurposeMetered
GET/airframesSupported airframe types and their defaultsyes
GET/catalogPayload parts catalog (controllers, computers, sensors, radios)yes
POST/analyzeAnalyze a build and return full performance resultsyes
POST/rfRadio link budget and range, one link or severalyes
POST/cgCenter of gravity and balance for a buildyes

POST /analyze#

Send a build-parameters object. Every field is optional; missing fields fall back to the example profile's defaults. The same endpoint analyzes any airframe: multirotor fields are ignored on a pure wing and vice versa.

Key request fields: airframe_type (any value from GET /airframes, for example Quad X, Hexa, Fixed wing (tractor), Quadplane (lift + pusher), Tiltrotor (tilt-quad)), motor_count, prop_diameter_in, prop_pitch_in, prop_blades, motor_kv, dry_mass_g, esc_current_a, altitude_m, temp_c, batteries, and for winged builds wing_span_mm, wing_chord_mm, wing_cl_max, cruise_speed_kmh (leave blank to let the engine solve it), plus body_length_mm and frame_preset for the balance frame.

Response fields:

out: headline outputs. Multirotors report these, among the other fields:

  • auw_g, twr, hover_min, hover_current_total_a, wot_current_a, max_speed_kmh, energy_wh
  • sag and thermal figures (pack_ir_mohm, sag_hover_pct, v_hover_load the voltage the pack holds at hover current, hover_sag_limited, twr_mid_pack the thrust-to-weight at mid-pack with no load, twr_sag the thrust-to-weight at mid-pack sagging at full-throttle current, sag_wot_v, sag_wot_pct, v_under_load_wot, wot_current_sag_a, esc_hover_util, thermal_margin_hover)
  • the drive (drive_lossless true while no motor resistance, no-load current or ESC efficiency is entered; wot_shaft_w, drive_loss_wot_w)
  • hover feasibility (hover_feasible, and hover_infeasible_reason twr or sag when it is false, in which case hover_min is not a hover time to use)
  • the max thrust's basis (thrust_basis and thrust_basis_label)
  • the loaded RPM (rpm_loaded, rpm_basis measured, solved, solved_capped or assumed, rpm_basis_label, rpm_solved, prop_ct_static, prop_cp_static, op_current_per_motor_a)
  • prop match (prop_rpm_fraction, prop_load_verdict: over-propped, matched, under-propped, or not judged when the loaded RPM is assumed)
  • coax_thrust_factor on a coaxial layout
  • coax_penalty_offer (null, or for a coaxial build carrying the earlier penalty of 1.20, the stored and measured penalties, thrust_factor_measured and the note's text)
  • the hover pack loss (hover_pack_loss_w, the heat the pack loses in its own resistance at the hover current, which hover_min charges against the pack's energy, and hover_pack_r_mohm)
  • the cruise pack loss (cruise_pack_loss_w, the same heat at the cruise current, which the cruise endurance and range charge, and cruise_pack_r_mohm)
  • prop fit (max_prop_in, prop_fits, prop_fit_prop_in the prop the check measured, and prop_fit_basis ring, lift_layout (the hover rotors of a quadplane or tiltrotor where they sit) or fixed_wing (no fit check: max_prop_in is null and prop_fits is true); max_prop_in is null when the layout places more than one hover rotor on the same spot and the fit is not judged)
  • the speed limits (max_speed_limit thrust, power, pitch or model-bound; pitch_speed_kmh, max_speed_axial_kmh)
  • hover throttle (hover_thrust_fraction, the share of full thrust a hover takes, and hover_band with the band it is judged against and its verdict)
  • basis (pairs of a headline figure's name and what it assumes)
  • the motor_out, wind and weight_class objects

motor_out is the trimmed figure after the worst single failure: applicable, motor_out_twr, survivable (from 1.1:1), reason, untrimmed_twr, usable_rotors, pattern, opposite_unloaded, stopped_rotors, threshold, coaxial, failed, thrust and dual.

Winged builds report stall_speed_kmh, cruise_speed_kmh, climb_rate_ms, thrust_at_stall_n (on a quadplane or tiltrotor, the cruise thrust left at stall speed), v_best_climb_kmh, v_best_range_kmh, v_best_endurance_kmh, wing_loading_n_m2, and aspect_ratio. VTOLs report both sets.

A figure the build does not produce, or that cannot be worked out from what it gives, is null, so check for null before using any of these: hover_min, hover_infeasible_reason, rpm_solved, max_speed_limit, max_speed_axial_kmh, twr_mid_pack, twr_sag, pack_ir_mohm, sag_hover_pct, sag_wot_pct, esc_hover_util, thermal_margin_hover, stall_speed_kmh, climb_rate_ms, v_best_climb_kmh, v_best_range_kmh, v_best_endurance_kmh, wing_loading_n_m2 and aspect_ratio.

  • charts: inline SVG chart strings.
  • checks: [level, message] pairs, level ok, warn, or bad.
  • lint: the same findings, machine readable. Its weight_class finding carries lines, one sentence per regime in that regulator's own words, and regimes, the codes shown: the regimes your organization operates in (primary first), or the United States and the EU when the key belongs to no organization. out.weight_class.lines holds the sentence for every regime (US, GB, EU, CA, AU, NZ, JP, ZA, IN, BR, SG) whichever are shown; the EU and UK lines never name a class from the mass.
  • platform: resolved airframe class, motor groups, and layout.
  • cg: the same balance result POST /cg returns.

Every field you send must be readable. A field left out takes its default, and so does a number field sent blank; a number sent as text, such as "7", is read. A number field that is not a number, an airframe_type or frame_type that does not exist (the 400 lists the types and points to GET /airframes), a yes or no field that is not true or false (it takes true, false, 1 or 0, also as text, so "false" and "0" read as no; "no", "off" and a blank answer 400), or a list field that is not a list answers 400 naming the field.

Every field you send must be one the engine has. A field it does not have, such as a misspelled motors or airframe, answers 400 naming it and listing the accepted names; it is never read as its default. A whole-number field takes a whole number in its range, else 400 naming the field and the range: motor_count 1 to 1000, prop_blades 1 to 16, occupants 0 to 20, lift_motor_count 0 to 1000 and main_wire_awg 0 to 40.

The same rules apply to POST /cg. The params of POST /builds take the same value and range checks, but a field name the engine does not have is not refused there, so a build you read back can always be saved again; that field is left out of the saved build.

Errors: 400 for a field that cannot be read, 402 when the plan includes no API calls and there are no credits, 403 for any refusal in the table above (an ended trial or lapsed billing period, a missing area, the holder's role, two-factor or single sign-on), 429 when quota and credits are gone.

POST /rf#

Pure physics: no build or account data is read. Post a single link's parameters to get {"link": {...}}, or wrap several as {"links": {"control": {...}, "video": {...}}} to resolve each in one request and get {"links": {...}}. At most 16 links per request.

links must be an object of named links, each an object of one link's fields. A links that is a string, a list or a number answers 400 naming links and the shape it takes. With links, every field goes inside a link: a field beside links answers 400 naming it. A field a link does not have, at the top level or inside a link, answers 400 naming it and listing the fields a link takes.

Key request fields per link (all optional, sensible defaults apply; each one sent must be a number, else 400 naming the field and its unit): freq_mhz (must be positive, else 400), tx_power_mw or tx_power_dbm, tx_gain_dbi, rx_gain_dbi, rx_sens_dbm, cable_loss_db, misc_loss_db, fade_margin_db, tx_height_m, rx_height_m.

Each resolved link reports eirp_dbm, free_space_range_km (what the budget alone allows), los_range_km (the geometric line-of-sight horizon, the hard limiter), radio_horizon_km, max_range_km (the shortest of the free-space budget, the two-ray range and line of sight), limiter (which term caps the range: link budget, ground reflection or line-of-sight), the two-ray figures (breakpoint_km, two_ray_range_km, with the received power falling 40 dB per decade past the breakpoint), Fresnel-zone geometry at the usable range (fresnel_radius_m, ground_clearance_m, fresnel_pct), and a curve of received-power-versus-distance samples. The same model backs the RF link and range tool.

POST /cg#

Send a build-parameters object with the same shape as /analyze. Returns {"cg": {...}} with the resolved center of gravity. Distances are millimeters from the build datum, with +x to the right, +y aft and +z up.

  • cg_mm: the center of gravity as {x, y, z}, or null for a build with no mass.
  • datum: what the distances are measured from, rotor ring center for a multirotor or a VTOL transition airframe and wing leading edge (root) for the others.
  • regime: multirotor, quadplane, tiltrotor, vtol_transition or fixed_wing.
  • lift_centroid_mm: the centroid of the hover rotors as {x, y, z}, null for a fixed wing or a build with no mass.
  • offset_mm: the center of gravity's offset from that centroid in plan, as {x, y, d} with d the distance, null for a fixed wing or a build with no mass.
  • rotor_ref_mm: the hover rotors' lever arm the offset is judged against, absent for a fixed wing or a build with no mass; offset_r is offset_mm.d over it (10 mm is little on a large frame and much on a small one), null for a fixed wing or a build with no mass.
  • total_mass_g, unplaced_g (mass not yet given a position), arm_mm, per-item placements in items and resolved rotors.
  • For a fixed wing, quadplane or tiltrotor, cg_pct_mac (balance as a percentage of mean aerodynamic chord) and mac_mm; both are null otherwise.

Each rotor in rotors carries x, y, z and its role, lift or cruise. The same model backs the Balance and CG tool.

Builds#

Your saved build library, per user. A build id that is not yours returns 404 with {"error": "Build not found"}.

MethodPathPurposeMetered
GET/buildsList your saved buildsyes
POST/buildsCreate or overwrite a build by nameyes
GET/builds/{id}Fetch one of your buildsyes
DELETE/builds/{id}Delete one of your buildsyes

GET /builds returns builds, an array of summaries: id, name, notes, created, updated.

POST /builds requires name and params (a build-parameters object), with optional notes. Posting a name you already use overwrites that build. The response carries the saved build's id and the refreshed builds list.

GET /builds/{id} returns the build's name, params, and notes. DELETE /builds/{id} returns ok and the remaining builds list, and 404 when the build is not there or not yours. {id} also takes a build's name.

Forensics#

MethodPathPurposeMetered
POST/crashAnalyze a flight log after an incidentyes

POST /crash#

Requires the Crash Analyzer add-on on the account (402 otherwise). The body is the log file itself: raw binary with Content-Type: application/octet-stream, not multipart and not base64. The format is detected from the file's own bytes (ArduPilot dataflash .bin, MAVLink telemetry .tlog, PX4 ULog .ulg, Betaflight / INAV Blackbox .bbl, DJI .txt, Parrot or GUTMA .json, flight-log .csv), so the extension does not matter. Maximum upload is 64 MB (413 above that). The call costs one metered unit, charged only once the upload is accepted.

Query parameters:

ParameterPurpose
nameOriginal filename, up to 120 characters, echoed back as filename
chartsSet to 1 to include rendered SVG charts; they roughly triple the response, so they are opt-in

Response fields:

  • meta: source_format (dataflash, tlog, or ulg), vehicle, vehicle_label, firmware (a PX4 log reads as its release, such as PX4 v1.16.2, with -dev, -alpha, -beta or -rc on a pre-release build), duration_s, altitude_source, spin_min_pwm and spin_min_source (the motor idle floor and where it came from; spin_min_pwm is null when the log states none), and motor_channels (the outputs the log assigns to motors, [] on a helicopter, null when it cannot be told).
  • crash: the verdict. detected, time (seconds from the start of the log), reason, and confidence: high when the autopilot itself recorded the crash (its crash check, a crash disarm, its crash message, or PX4 flight termination in the air), medium for a tracking-error departure that did not recover or a fall to the ground, low for an attitude-only inference. detected is true only on crash evidence: a failsafe or warning the autopilot logged is reported in diagnostics.flight_events, never here. log_end says how the log ends: state is landed, disarmed, airborne (still armed and in the air at the last record, so the log cannot rule out a crash), armed_on_ground or armed_unknown, with t, height_m and the disarm method where known, or log_end is null when the log records no arming. headline and summary are the verdict in the words the app and the report print.
  • preconditions: what the seconds before the event looked like, with findings as [category, sentence] pairs. Categories starting with not_ are rule-outs. descent_cmd_ms is the descent the autopilot was commanding, and batt_cells and batt_sag_v_per_cell carry the final-seconds sag per cell; power_unjudged states a drop the cell count is not known for.

diagnostics holds these sections:

  • rc_intent (was the aircraft doing what it was told; rc_link_lost_before_departure is true only when the autopilot itself recorded its RC link lost just before the event, with the finding rc_link_lost, while rc_frozen_before_departure records channels holding still as a fact, never as a lost link)
  • battery (pack internal resistance fitted from the flight's own current draw)
  • ekf (estimator innovation test ratios, where 1.0 is the rejection threshold, and autopilot_ruling with the autopilot's own estimator check, its time, count, cleared time, and the log's estimator failsafe threshold and action, finding ekf_autopilot_variance)
  • compass (throttle_field_change_pct, the field change from zero to full throttle as a percentage of the mean field, beside the correlation throttle_field_r)
  • gps
  • clipping (clips_total is the worst single accelerometer, with clips_by_imu, worst_imu and clips_touchdown)
  • flight_events (the autopilot's own failsafes, warnings and sensor errors with findings autopilot_error_*, mode changes it made for a fault with autopilot_mode_*, the links it reported lost with link_rc_lost and link_gcs_lost and their episodes in link, attitude upsets the aircraft recovered from, and how the log ends, each as a finding)

A log that never armed reports the armed-flight sections with available: false. Every section carries available; when it is false the section carries a reason instead of numbers, so check available before reading a section. diagnostics.findings is the flat, severity-sorted list across all sections, each item carrying section, key, level (alert, warn, or info), title, and detail.

The rest of the response:

  • timeline: chronological [t, type, event, class] rows covering modes, events, errors, arming, and autopilot status text.
  • series: downsampled plot series for the flight and for the window around the event.
  • warnings: limits of this particular reading, for example that a telemetry log has no autopilot crash record.

Waiting in line#

Every log uploaded to RotorLab waits in line to be read, and so does this one. By default the call waits for the reading and answers with it, in the shape above. A call whose log is not read within nine minutes, or that arrives while many calls are already waiting, is answered 503 with a Retry-After header, and its body carries token and status_url: the log stays in line, and collecting its reading costs nothing more. One member may have five logs waiting at once, counting logs sent from the analyzer pages in the app; a sixth is answered 429 before it is metered.

To be answered at once instead, add async=1 to the query (or send the header Prefer: respond-async). The answer is 202 with queued, token, status_url, position (1 is next), ahead and wait_s (a rough wait in seconds, or null when there is too little history to estimate one). Then ask GET /crash/{token} with the same key every few seconds:

StatusMeaning
202Still waiting or being read, with its place
200The reading, exactly as the synchronous call answers it
404Not a token this key's member sent
410The reading is past its retention (7 days after it was ready)

Asking is not metered.

The same engine backs the Crash Analyzer in the app; see Log formats for what each format can and cannot answer.

Fleet and flight records#

These endpoints are how a ground station files the operator's own records. They are never metered and never gated on billing state: filing a flight must not fail because a card expired. They require an organization account; a key from an account with no organization gets 403. While an organization is suspended its members' keys get 403 here too, except that an organization admin's own key may still read (GET), so the records can be exported; a ground station's device credential keeps filing, so no flight record is lost. Device credentials scoped to the flights area reach all of them.

MethodPathPurposeMetered
GET/flightsList flights on the organization's recordno
POST/flightsRecord a flight, or correct one already sentno
GET/flights/{id}One flightno
DELETE/flights/{id}Remove a flight from the recordno
POST/flights/{id}/logAttach the log file to a filed flightno
GET/checklistsChecklist templates and completed runsno
POST/checklistsFile a completed checklistno
GET/pilotsYour organization's pilot roster with currency statusno
GET/sortiesThe day's sorties and the crew each plansno
GET/aircraftYour aircraft registryno

GET /flights#

Newest flown first. Filter with asset_id (one registered aircraft), pilot_id (one pilot), since (a date; flights flown on or after it), and limit (default 200, at most 2,000). Each flight carries aircraft: the registered aircraft's name, or the name typed for one that is not registered. Each also carries its legal hold: hold (1 while the flight is on hold), hold_reason, hold_at and hold_by (the user who placed or last lifted it).

A member who has no name on file reads as Member and their handle in pilot_name, and in the labels on work orders, components and health, when the key's holder cannot read members: a device credential, and a key whose member lacks Members (view). An organization admin's key and a key whose member holds Members (view) read the address. pilot_id and every other id never change, so match on pilot_id, not on pilot_name.

POST /flights#

The write path a ground station uses when a flight ends. Supply external_ref, your own id for the flight: repeating a reference you sent before corrects your own flight in place instead of filing a second copy, so re-sending after a dropped link is safe.

Fields and limits#

Name either a registered asset_id or a free-text asset_name for an airframe that is not in the registry (400 if neither is given). pilot_id defaults to the key's owner. A device credential that sends no pilot_id, its own station's id, or the id of someone who is not a member of the organization files the flight all the same, credited to the station, and the reply carries pilot_named as false and a pilot_note to show the crew: "Filed by a station (<name>) with no pilot named. The flight had a remote pilot in command; until they are named, RotorLab counts it in no one's logbook or recent-flying rules. An organization admin, or anyone who manages flights, names the pilot on the flight's page." When a pilot is named the reply carries pilot_named as true and an empty pilot_note, unless the reply notes a crew line left off. A re-send with no pilot_id keeps a pilot the flight already names. A new flight needs flown_at and a flight time; a re-send of an external_ref already on record may leave both out. flown_at is ISO 8601: a date (2026-09-29), optionally with a time (2026-09-29 14:30), optionally with an offset or Z (2026-09-29T19:30:00Z); it is 2000-01-01 or later and not later than now. A time with an offset or Z is kept exactly as sent.

A time with no offset is read as your organization's time zone and stored with that zone's offset (2026-09-29 14:30 from an organization in Chicago is stored as 2026-09-29 14:30-05:00); a time that zone skipped when its clocks went forward is answered 400. A date alone is compared with your organization's today. The same applies to takeoff_at and landing_at. Times the service stamps on a record (created, updated and the other *_at fields) are UTC. Flight time is duration_s (more than 0, at most 86,400) or duration_min (more than 0, at most 1,440).

sorties is a whole number from 1 to 999 and landings from 0 to 999; site takes up to 120 characters, crew 200 and remarks 2,000. Anything outside these is answered 400 with a message saying what is accepted; nothing is clamped or cut. Battery packs follow their own rule, below: a pack problem never refuses a flight.

Other fields:

  • flight_type: one of commercial, training, proficiency, maintenance, survey, inspection, public_safety, test, recreational or other. "Public safety", "DFR" and "first responder" read as public_safety, and any other value is answered 400 with the list.
  • flight_type_other: what an other flight was for, one line of at most 80 characters. It is required with other and answered 400 with any other type; changing a flight to another type clears it.
  • site, night, sorties, landings, conditions, crew and remarks.
  • battery_ids: "The battery packs flown, by RotorLab pack id, in the order named." Each pack's cycle is recorded against the flight, as in the logbook form.
  • battery_serials: the packs flown, by serial, "for a station that does not know the pack ids". Serials are matched ignoring case, spaces, dashes, dots and slashes. It can be combined with battery_ids (duplicates collapse, order kept).
  • battery_id is deprecated: "one pack by RotorLab pack id. Send battery_ids instead."
  • lat and lon: night is derived from civil twilight at the position when night is not given.
  • standing_reason: why the flight was flown when the records say it should not have been, one line of up to 500 characters. A line break or other control character, or a longer reason, is answered 400.

A pack problem never refuses a flight that happened. An id that is not a pack of your organization, a serial with no pack on the register, an entry of the wrong kind (a number that is not whole, such as 1.5, is not a pack id; 2.0 is pack 2), a value that is not a list, or any pack past the 12th is left off the flight and named in the reply's pack_note. pack_note is present only when a pack named on the flight was left off: one or more sentences naming what was left off (the first 10 of each kind by name, the rest counted as "and N more"), for example "No pack with serial TB65-0099 is on the register, so it was left off this flight." The flight is filed either way. It is text to show, not to parse.

On a re-send of the same external_ref, a list with usable packs (in battery_ids or battery_serials) replaces the recorded packs. Only an empty list, "battery_ids": [], with no usable pack in battery_serials, clears them. Leaving the fields out or sending null leaves the recorded packs alone; so does an empty battery_serials list on its own, and so does a re-send whose named packs are all left off. To clear the packs, send "battery_ids": [], never null.

A flight read back carries battery_ids, duration_basis (entered, armed, span or ground) and span_s beside duration_s.

The greatest height the crew declares reached goes in max_height_m (meters) or max_height_ft (feet); send one or the other, or max_height with max_height_unit (m or ft). The record keeps meters and the unit it was entered in, and writes the feet figure in step, so a flight read back carries max_height_m, max_height_ft and max_height_unit together and either figure reads the same height. A blank value clears it, and a negative or out-of-range height is answered 400.

Designations#

For a United States flight over people, over_people_basis records the basis it was flown on: participants (107.39(a)), sheltered (107.39(b)), cat1, cat2, cat3, cat4 (Categories 1 to 4, 107.110 to 107.140) or waiver. Any other value is answered 400.

For an organization with Public Safety Ops, portal_exclude (held or out_of_scope) and portal_note (up to 300 characters) carry the flight's public reporting designation. Any key that files the flight may hold it. Taking a flight out of public reporting (out_of_scope), putting it back, or changing its portal_note takes an organization admin's own key: any other key, a device credential included, is answered 403, and out_of_scope with no portal_note is answered 400. A re-send of an external_ref is judged against the flight already on record, so repeating its designation unchanged is accepted.

Remote pilot in command periods#

pic_periods records who the crew recorded as remote pilot in command (the remote pilot, in EU and UK terms), and who manipulated the flight controls when that was somebody else, period by period. pilot_id on the body stays the remote pilot in command the crew recorded at takeoff, and crew_rows still carries the visual observers ({"user_id": 72, "duty": "vo"}). RotorLab records what was sent; it does not designate, check or approve anyone. What the flight page shows, and how the time is counted, is on Remote pilot in command records.

pic_periods is a list of at most 24 periods:

FieldWhat it holds
roleremote_pic or at_controls (required)
pilot_idA member's id, the same id as /pilots and the body's pilot_id
fromWhen the period began, ISO 8601 to the second with Z or an offset (required); stored as sent, never moved
toWhen it ended; left out, it runs until the next period of the same role, or the landing
reasonWhy command changed, in the crew's words, up to 200 characters; do not enter health or personal details
nameThe name the station showed, up to 80 characters, kept only when pilot_id names nobody who is a member of this organization
sent_atThe station's clock when it recorded the change, kept beside the time RotorLab received it
sysidThe vehicle id the station reported, up to 32 characters
{
  "pilot_id": 41,
  "operating_basis": "part107",
  "pic_periods": [
    {"role": "remote_pic", "pilot_id": 41, "from": "2026-11-20T14:02:10Z", "sent_at": "2026-11-20T14:02:10Z", "sysid": "1"},
    {"role": "at_controls", "pilot_id": 57, "from": "2026-11-20T14:05:00Z", "to": "2026-11-20T14:15:30Z", "reason": "Trainee under supervision"},
    {"role": "remote_pic", "pilot_id": 63, "from": "2026-11-20T14:20:44Z", "reason": "Battery swap"}
  ]
}

The example shows only these fields; the rest of the flight's fields go beside them.

The periods never refuse a flight. A period whose role or time cannot be read is left off, and so are the periods past the 24th. A period naming somebody who is not a member of this organization is recorded with no member named, for an organization admin to name on the flight page. A reason, name, sent_at or sysid that cannot be kept is left off its period. Overlapping remote pilot in command periods are recorded as sent, and the overlapping time counts in no one's hours in RotorLab until an admin corrects it. On a member's own key, a period may name another member only where the key could file a flight for them (an organization admin, or a role that manages members and Flights & logs); any other is left off.

On a re-send of the same external_ref, a body carrying pic_periods supersedes the periods this sender recorded (nothing is deleted; the record keeps its history), "pic_periods": [] clears them, and a body without the field leaves them. A list in which no period can be kept leaves the record as it stands. A member's key replaces the periods on record only when it may correct the flight's pilot. Once an organization admin has corrected the record on the flight page, a re-send keeps the correction as it stands, and so does a flight on legal hold. Either way, what the re-send carried is kept as a row in the flight's history, once for the same periods.

operating_basis records the operating basis for the flight: part107, public_aircraft, s44807, part135, s44809 or other on a US flight; on a Canadian flight, rpas_oc (an operation under an RPAS operator certificate) or other; elsewhere other. Left out on a new flight, the sortie's or the organization's default is recorded, or blank when there is none; a default recorded this way is the organization's setting, not a statement by the crew. A value the flight's regime does not record is recorded blank and said in pic_note. A basis an organization admin set on the flight page is kept on a re-send. Part 107 wording shows on the flight page only for part107.

Time recorded here never counts toward 14 CFR 107.65.

The response#

The response carries the flight's id, the flight as recorded, and work_raised: the maintenance work items this filing opened (an item already open for the same finding is not listed again). Work is raised only for an organization that holds Maintenance Records, so for any other organization work_raised is always empty. It also carries standing: what the records said about the flight for its own day when it was filed, kept with the flight and never recomputed.

Every reply carries pic_recorded, how many pic_periods this call recorded (0 when none were sent, none could be kept, or the record was kept as it stands), and pic_note, one sentence for each period left off or recorded with no member named, for overlapping periods, for an operating basis recorded blank and for a record kept as it stands, or an empty string. For example: "Period 2 was left off: its time could not be read.", "Period 3 names somebody who is not a member of this organization. The time is recorded with no member named; an admin can record whom the crew named." or "The remote pilot in command periods on record were kept as they stand: an organization admin has corrected them." For an EU or UK organization the sentences say "remote pilot", and for a Canadian one "pilot". pic_note is text to show, not to parse; the flight is filed either way.

standing.marks lists aircraft (the aircraft read no go or condition unknown; the aircraft is read only for a flight filed on the day it was flown, and one filed later reads not_stamped for it), pilot (the pilot's currency had lapsed), certificate (the flight was filed with a pilot who has no pilot certificate on file in RotorLab: a record gap, never a lapse), authorization (the flight was outside the authorisation_id it names) and pack (a pack flagged swollen or damaged, retired, or past its cycle ceiling or calendar life), or is empty; standing.aircraft, standing.pilot and standing.authorization give each reading with its reasons, standing.words says it in sentences, and standing.reason is the standing_reason sent, or empty.

When the flight takes part in a timing that cannot be right, the response carries checks, one entry per problem with its kind (pack_overlap: a pack it names is on another flight at an overlapping time; pilot_overlap: its pilot is on another aircraft at an overlapping time; pre_service: it is dated before the aircraft's in-service date), level (check) and a text sentence naming the flights; the flight is filed either way and listed under Records to correct on Retention and Holds. A flight is never refused for its standing; an organization admin sees every marked flight in the logbook with its reason, and a reason not sent with the flight can be given once from the logbook.

GET /flights/{id} returns the same standing beside the flight. When the flight overlaps another flight on the same aircraft in time, it is filed all the same and the response adds possible_duplicates (the ids of the flights it overlaps) and duplicate_note, a sentence saying so; nothing is merged, and the organization's admins decide.

Sending the same flight again#

Your reference#

external_ref is your own id for the record: at most 120 characters, on one line, and never ending in ~s and digits (RotorLab keeps that ending for its own use). Anything else is answered 400 with a message, for example "The reference can be at most 120 characters (this is 130)", and nothing is cut. A reference belongs to the key that sent it, and two stations sharing one key are one sender. When another member or station already used the reference, the record is still filed, as its own, marked for an organization admin to review, and the answer is 200 with external_ref as you sent it, reference_conflict as true and a reference_note: for a flight, "Another member or station already filed a flight with this reference, so this one was recorded as its own flight and marked for an admin to review. The other flight was not changed."; for a checklist run, "Another member or station already filed a checklist run with this reference, so this one was recorded as its own run and marked for an admin to review. The other run was not changed." Every answer carries external_ref and reference_conflict (false when no one else used it). The other sender's record is never changed or shown to you. A reference that cannot be placed because a stored record cannot be told apart from yours is answered 409: "This reference could not be filed: a record already stored under it cannot be told apart from yours. Send it again under a new reference."

On a member's own key pilot_id is the key's owner unless you name another pilot. Naming another pilot follows the logbook's rule: an organization admin, or a role that manages members and Flights & logs, may file for another pilot, and any other key is answered 403 with "You can only file a flight as yourself. An organization admin, or a role that manages members and Flights & logs, can file it for another pilot." A re-send with a blank pilot_id, or one that is not a member's id, keeps the pilot on record. A pilot changed by a re-send is kept in the flight's history. crew_rows (items of user_id and duty, at most 12) never refuses a flight: a line that cannot be kept is left off and the reply's crew_note says so, for example "Crew line 2 was left off: names somebody who is not a member of this organization." crew_note is an empty string when nothing was left off.

A re-send is never an error. Repeating an external_ref you sent before answers 200 with the same id. A flight on record with a type that is not on the list keeps it when the re-send carries the same type, as stored or in the words first sent (Banner Tow for a stored banner_tow); a different type that is not on the list is answered 400. Repeating the external_ref of your own flight that has been voided answers 200 with that flight's id, "voided": true, "flight": null and a message saying the void stands: the flight is not filed again until an admin restores it.

DELETE /flights/{id}#

Removes the flight from the live record; the aircraft's flight count and hours are recomputed from what remains. The flight is voided, not destroyed: it lands in the organization's void ledger with the key's owner and the reason query parameter (required, up to 500 characters; a call without one answers 400), and the answer is 200 with {"ok": true}. A person's key voids that person's own flights, and an organization admin's key any flight in the organization; a pilot's key on another pilot's flight answers 403. A device key voids the flights it filed.

A public-safety flight (its flight_type is public_safety, or it carries a call type, requested by or outcome, now or at any time since it was filed) is voided only with an organization admin's approval. From a key that is not an organization admin's, the call files a request instead and answers 202 with {"ok": true, "pending": true, "request_id": <id>}: the flight stays on the record, and in the public count, until an organization admin approves the void in the My Record. Do not retry a 202. 409 if the flight is on legal hold or a request to void it is already waiting (the error says which), 404 if it is not in the caller's organization.

POST /flights/{id}/log#

Attaches the log file to a flight already on the record. The body is the raw log file in any format the analyzers read (.bin or its .log text export, .tlog, .ulg, Blackbox .bbl, DJI .txt, Parrot or GUTMA .json, flight-log .csv), not JSON and not a multipart form; the optional name query parameter (up to 160 characters) keeps the original filename for the download header, and the format is always read from the file's own bytes. The limit is 512 MB, given in bytes as max_file_bytes on GET /usage.

Storing a log is not analysis, so this call costs no credits and no quota. It stores and queues; it does not parse. The response returns immediately, so branch on analysis_state:

ValueMeaning
queuedThe normal success case; the log will be read shortly
noneStored, but Fleet Health is not on for that aircraft
too_largeStored, but above the automatic-analysis size
doneThese bytes were already read
failedAnalysis failed; log.error carries the reason

File the flight first and attach the log second, as a separate step, so a storage failure can never cost the operator the flight record. Re-sending identical bytes for the same flight returns the existing record: deduplication is on the SHA-256 of the body. The same bytes are one log, so sending them for a different flight is refused with 409, an error naming the flight that already holds them, and duplicate_of, that flight's id.

When the organization keeps no position for its flights (its Retention choice), a stored log is deleted once it has been read, and a log that will not be read here (no Fleet Health on that aircraft, or above the automatic-analysis size) is refused with 400 and an error saying the flight is filed and the file was not stored: treat that 400 as final, not as a reason to retry.

Errors: 400 (not a recognized log, an empty or truncated body, the organization's storage is full, or a log refused as above), 403 (credential not scoped for the flights area), 404 (no such flight in the caller's organization), 409 (the log is already stored with another flight), 413 (over 512 MB).

GET and POST /checklists#

GET /checklists returns the organization's checklist templates and completed runs, filterable with flight_id and limit (default 100).

POST /checklists files a completed checklist, idempotent on external_ref in the same way as a flight, with the same reference limits, and the reply carries id, run, external_ref, reference_conflict and reference_note. Fields: template_id, flight_id, asset_id, completed_at, notes, and results, an array of {text, result, note} items where result is pass, fail, or skip. The run stores the items as they read at the time, so revising the template later never rewrites what was already signed off. An item you do not answer is recorded as not checked; an answer that matches nothing on the current template is kept and flagged rather than discarded, so a tablet completing a cached older card never loses what the crew actually did. 400 if the checklist is empty or unknown.

GET /pilots#

The pilot roster a ground station needs before it can attribute a flight: each pilot's id, name, role and aircrew flag, and their currency status, lapsed items, last_flight, and hours. currency is the one standing every screen shows: current, due_soon, not_met (a training program role whose requirements are not yet met), lapsed, not_on_file (no pilot certificate on file in RotorLab, a record gap and never a lapse) or unknown. A person who is not aircrew (no flight on record, no pilot credential and no flying role; see My Record) has aircrew false and currency not_aircrew, with nothing lapsed. A device credential, an org admin's key and the key of a member whose role carries Members (view) read the whole roster.

Any other member's key (which needs the Flights manage permission) reads every name but only its holder's own currency, lapses, last flight and hours: colleagues' standing is the crew board's. The roster deliberately carries no email addresses. Currency is reported so a crew knows where they stand; it is information, not a gate, and must not be used to prevent a flight.

GET /sorties#

The planned and launched sorties of one day on Dispatch, so a ground station can offer the job's crew first and preselect the planned remote pilot in command; anyone on /pilots stays selectable. day (YYYY-MM-DD) defaults to your organization's today, and asset_id keeps only the sorties planned on that aircraft. A device credential may read it, and a member's key needs the Flights manage permission.

The reply carries day, sorties, roles (the organization's names for the remote_pic, at_controls and visual_observer duties) and note: "The crew this sortie plans. The crew as planned. RotorLab does not designate or approve anyone." Each sortie carries id, day, window, status, asset_id, job_id, job_title, operating_basis (the sortie's, else the organization's default, else empty) and seats. The planned remote pilot in command comes first, with planned_pic set to true and planned_by, the name of whoever last set the seat or planned the sortie; then each crew member. A seat carries user_id, name, role (remote_pic, at_controls, visual_observer or other), duty, duty_label and controls.

A sortie carries the job's title only, never its client, reference, notes, scope, risk reading or Launch acknowledgement, and a seat carries a member's id and name only, never an email address, phone number, currency, standing or readiness reason. A seat naming somebody who is not an active member is left out.

GET /aircraft#

The aircraft registry: each aircraft's id, name, registration, serial, model, status, total_flights, and hours flown. See Aircraft for the registry itself.

Maintenance, type and health reads#

The reads a system fetches after a webhook event, or a ground station before it flies. They are never metered, need an organization account, and sit in the flights area, so a device credential reaches them.

MethodPathPurposeMetered
GET/workordersMaintenance work orders; filter with asset_id and openno
GET/workorders/{id}One work orderno
GET/componentsFitted and spare components with serials and life; filter with asset_idno
GET/typesFrozen type baselines with serial and open bulletin countsno
GET/types/{id}One type: the frozen design, its serials, bulletins and performance conformityno
GET/bulletinsEvery service bulletin with its statusno
GET/bulletins/{id}Per-serial compliance for one bulletinno
GET/healthEach aircraft's airworthiness with its reasons (see below the table)no
GET/health/{id}One aircraft's flags, measured-flight count and airworthinessno
GET/ml/scoresAdvisory model scores on your records, filtered by subject_type, subject_id and kind; {scores, annotations}no
POST/ml/scoresWrite an advisory score, from a device credential or an organization admin's key; other keys get 403no

GET /health gives each aircraft's state: go, limits, advisory, unknown or no_go, with the reasons. limits is true when the aircraft has Limits on record, and advisory when the reading carries notes (planning or setup items). Beside it, readiness carries the pages' own words (No flags, No flags with its notes, Nothing judged, Limits on record, Condition unknown, No go) as a label, not for parsing; notes, judged and missing say how many notes there are and whether there was anything to read the aircraft against. No flags is not permission to fly.

An id that is not a number, or not one of yours, answers 404. A score is advisory: it is shown beside the record and changes nothing. When your organization turned model annotations off, GET /ml/scores answers an empty list with annotations set to off.

Jobs and clients#

Four read-only endpoints for a billing or reporting system. They need a key with the jobs area, and within it only what its holder's role reaches (view under Clients and Jobs). Each lists with limit (up to 500, 200 by default) and offset and returns total; an id that is not yours answers 404.

MethodPathPurpose
GET/jobsJobs; filter with status (quoted, open, complete or cancelled)
GET/jobs/{id}One job
GET/clientsClients
GET/clients/{id}One client

A job carries id, ref, title, client_ref, client_name, client_po, job_number (your own number), status, starts, ends, minutes (the job's flight time in minutes), billed_through (a date or empty) and unbilled_minutes. A client carries id, ref, name and active. Contacts, notes, scope, site, the Report to, credentials, follow-up dates and lost reasons are not in these replies.

Missions#

Mission records for a ground station or a fleet server: list, fetch, pull a .plan, and write. They need the organization's Mission Planning add-on (402 without it) and an organization account (403 without one). Reads ride the flights scope, so a device credential can pull plans; it reads only the missions published to the whole organization. A key with the missions scope acts for its person and reads what that person can open. Writes need the missions scope, and a device credential is answered 403.

MethodPathPurpose
GET/missionsList the missions this credential may read; filter by author with pilot_id
GET/missions/{id}One mission with its payload
GET/missions/{id}/planThe mission as a QGroundControl .plan
POST/missionsSave a mission: name and payload
POST/missions/importRead a .plan (plan) into a mission payload, without saving
DELETE/missions/{id}Delete a mission you own (an organization admin may delete any)

POST /missions#

The payload is checked before it is stored, and anything the planner could not open is answered 400 with the reason; nothing is clamped or cut. A payload needs its planning origin (lat from -90 to 90, lon from -180 to 180) once it holds any point. Every point (waypoint, fence point, rally point, camera target) takes one of two shapes:

  • Planner shape: e and n, meters east and north of the origin on the WGS 84 plane at the origin (send "datum": "wgs84"), each within 200 km. A waypoint's height is agl (above the ground under it) or rel_alt_m (above home).
  • Geographic shape: lat and lon in degrees, with alt read as the height above home in meters.

A waypoint with no height, a terrain-follow waypoint (terrain: true) without an agl above 0, a number that is not finite, an unknown action, mode or end, more than 1,600 waypoints, or more than 500 fence or rally points is answered 400 naming the field. Optional per-waypoint fields: heading (0 to 360), gimbal (-90 to 90), speed (m/s), hold (seconds), mode (straight or spline), action and trig_m. The response is {"ok": true, "id": ...}.

GET /missions/{id}/plan#

Answers id, name, owner_id and plan, the native .plan the Mission Planner exports. Geographic-shape waypoints export at their own positions and heights. A waypoint flown at a height above home that has neither rel_alt_m nor alt (a point the planner saved over unknown ground) is answered 400 naming the waypoint, rather than exported at a guessed height. POST /missions/import refuses a .plan whose items, fence, rally points or home position have no finite position.

Machine-readable spec#

The OpenAPI 3.0 spec is served at https://app.rotorlab.app/openapi.json and a ready-made Postman collection at https://app.rotorlab.app/rotorlab.postman_collection.json, both written for the address you reach them at. Every operation in the spec states whether it is metered (x-metered), the key area it needs (x-area), its refusals and the shape of its answer. The Developer API page at https://app.rotorlab.app/developers lists the same endpoints, with the key area each needs and whether it is metered, and the same errors.