Skip to content

Flight Logs

All endpoints described in this section require a valid authentication token. Please refer to the Authentication section for details on how to obtain and use tokens.

Base URL: https://api.unleashlive.com

Retrieve flight logs at the company or team level. Each record describes a flight log file. All endpoints return a JSON object with an items array, where each item is a Flight Log File object.


GET /v1/flights/company

Lists all flight logs for the entire company. Response is not paginated.

ParameterTypeDescription
dateFromIntegerReturn logs created at or after this UNIX timestamp (ms)
dateToIntegerReturn logs created at or before this UNIX timestamp (ms)
versionStringFilter by version — afl, djiv4, or djiv5
pilotNameStringFilter by pilot name
deviceIdStringFilter by device ID
hasCommentsBooleanFilter by whether the log has comments
dateTypeStringDate field to filter on — uploadDate or flightStartDate
GET /v1/flights/company?dateFrom=1709654015526
{
"items": [
{
"id": "abc123",
"s3Path": "output/36be4d24.../DJIFlightRecord_2025-04-15.txt",
"name": "DJIFlightRecord_2025-04-15.txt",
"teamId": "teamId1",
"teamName": "Team Alpha",
"companyId": "companyId1",
"ownerId": "userId1",
"deviceId": "deviceId1",
"pilotName": "John Doe",
"version": "djiv5",
"flightStartDate": "2025-04-15T14:52:48.000Z",
"flightEndDate": "2025-04-15T15:10:22.000Z",
"flightDuration": "1054",
"flightDistance": "3200",
"takeOffLocation": {
"lat": -33.8688,
"long": 151.2093
},
"droneName": "Mavic 3 Enterprise",
"deviceSerial": "1ZNBH1D00B00YX",
"hasComments": false,
"missionIds": [],
"taskIds": [],
"jobIds": []
}
]
}

For a full working example, see list-flight-logs.js.


GET /v1/flights/team

Lists flight logs for the user’s team (inferred from the authentication token). Response is paginated by default.

ParameterTypeDescription
dateFromIntegerReturn logs created at or after this UNIX timestamp (ms)
dateToIntegerReturn logs created at or before this UNIX timestamp (ms)
versionStringFilter by version — afl, djiv4, or djiv5
pilotNameStringFilter by pilot name
deviceIdStringFilter by device ID
hasCommentsBooleanFilter by whether the log has comments
limitIntegerMaximum number of items per page
nextTokenStringPagination token from a previous response
GET /v1/flights/team?limit=10
{
"items": [
{
"id": "abc123",
"s3Path": "output/36be4d24.../DJIFlightRecord_2025-04-15.txt",
"name": "DJIFlightRecord_2025-04-15.txt",
"pilotName": "John Doe",
"version": "djiv5",
"flightStartDate": "2025-04-15T14:52:48.000Z",
"flightEndDate": "2025-04-15T15:10:22.000Z",
"flightDuration": "1054"
}
],
"nextToken": "eyJwayI6InRlYW1JZDEiLCJzayI6IjE3..."
}

If there are more items than the specified limit, the response includes a nextToken string. Pass this token to the next request to fetch the following page. When nextToken is null, you have reached the last page.

For a full working example, see list-flight-logs.js.


GET /v1/flights

Lists all flight logs for the user’s team (inferred from the authentication token). Response is not paginated.

ParameterTypeDescription
dateFromIntegerReturn logs created at or after this UNIX timestamp (ms)
dateToIntegerReturn logs created at or before this UNIX timestamp (ms)
versionStringFilter by version — afl, djiv4, or djiv5
pilotNameStringFilter by pilot name
deviceIdStringFilter by device ID
hasCommentsBooleanFilter by whether the log has comments
GET /v1/flights?dateFrom=1709654015526
{
"items": [
{
"id": "abc123",
"s3Path": "output/36be4d24.../DJIFlightRecord_2025-04-15.txt",
"name": "DJIFlightRecord_2025-04-15.txt",
"pilotName": "John Doe",
"version": "djiv5",
"flightStartDate": "2025-04-15T14:52:48.000Z",
"flightEndDate": "2025-04-15T15:10:22.000Z"
}
]
}

For a full working example, see list-flight-logs.js.


DELETE /v1/flights

Delete one or more flight logs.

FieldTypeDescription
itemsString[]Array of flight log IDs to delete
allSelectedBooleanrequired Whether all matching logs should be deleted
filtersObjectQuery filters to scope the deletion (same as query params)

Either items or allSelected: true with filters should be provided.

{
"items": ["flightLogId1", "flightLogId2"],
"allSelected": false
}

POST /v1/flights/download

Request a ZIP archive of one or more flight log files.

FieldTypeDescription
itemsString[]Array of flight log IDs to download
allSelectedBooleanrequired Whether all matching logs should be included
filtersObjectQuery filters to scope the download (same as query params)

To download a specific flight log file, you need its s3Path (obtained from a list response) and the Flight Log CDN base URL.

CDN Base URL: https://flights.unleashlive.com

Construct the full download URL by appending the s3Path to the CDN base URL:

https://flights.unleashlive.com/<s3Path>
  1. List flight logs to obtain the s3Path of the desired file.
  2. Construct the full URL: https://flights.unleashlive.com/{s3Path}.
  3. Perform an HTTPS GET request to download the file.

For a full working example, see download-flight-logs.js.


Each flight log entry in the items array has the following structure:

FieldTypeDescription
idString!Unique flight log identifier
s3PathString!Storage path for the flight log file
nameString!Flight log file name
teamIdString!Team the flight log belongs to
teamNameString!Team name
companyIdString!Company the flight log belongs to
ownerIdString!Owner/uploader identifier
deviceIdString!Device identifier
pilotNameString!Pilot name
versionStringFlight log version (see Flight Log Version)
flightStartDateStringFlight start — ISO 8601 or Unix ms timestamp
flightEndDateStringFlight end — ISO 8601 or Unix ms timestamp
flightDurationStringDuration in seconds
flightDistanceStringDistance in meters
takeOffLocationObjectTake-off coordinates (see below)
droneNameStringDrone name
deviceSerialStringDevice serial number
hasCommentsBooleanWhether the flight log has comments
missionIdsString[]Associated mission IDs
taskIdsString[]Associated task IDs
jobIdsString[]Associated job IDs
taskNamesString[]Associated task names
jobNamesString[]Associated job names

Fields marked with ! are required.

FieldTypeDescription
latNumberLatitude
longNumberLongitude
ValueDescription
djiv4DJI SDK v4 flight log
djiv5DJI SDK v5 flight log
aflAutofly flight log