Skip to content

Missions

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

Create, manage, and retrieve flight missions. A mission defines a flight plan consisting of waypoints (route) that a drone follows during autonomous flight.


POST /v1/mission

Creates a new mission for the user’s team.

FieldTypeDescription
nameString(required) Mission name
routeMissionPoint[]Waypoints array (required unless using survey)
descriptionStringMission description
typeStringMission type (see Mission Type)
heightModeStringHeight mode (see Height Mode)
speedNumberFlight speed

For the full mission point structure, see Mission Point.

{
"name": "test mission",
"desc": "Sample-mission",
"speed": 2,
"route": [
{
"pole": "Pole1",
"wo": "00800521567",
"lat": -33.72577124,
"lng": 151.18167339,
"altitude": 163.144,
"altEGM": 187.144,
"si": "dist-3"
},
{
"pole": "WP",
"wo": "00800521567",
"lat": -33.72577124,
"lng": 151.18167339,
"altitude": 171.144,
"altEGM": 195.144,
"si": "waypoint"
}
]
}

Returns the created Mission Object.

{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "test mission",
"description": "Sample-mission",
"speed": 2,
"type": "waypoint",
"teamId": "teamId1",
"companyId": "companyId1",
"ownerId": "userId1",
"createdAt": 1709654015526,
"updatedAt": 1709654015526,
"route": [
{
"pole": "Pole1",
"lat": -33.72577124,
"lng": 151.18167339,
"altitude": 163.144,
"altEGM": 187.144
}
]
}

For a full working example, see upload-mission.js. Sample mission files are available in the mission/assets directory.


GET /v1/mission

Lists missions for the user’s team (inferred from the authentication token).

  • With query parameters — returns a paginated response.
  • Without query parameters — returns all missions (non-paginated).
ParameterTypeDescription
filterStringFilter by mission type (see Mission Type)
dateFromStringReturn missions created after this date
dateToStringReturn missions created before this date
limitIntegerMaximum number of items per page
nextTokenStringPagination token from a previous response
GET /v1/mission?filter=waypoint&limit=10

Returns an object with items (array of Mission Objects) and nextToken.

{
"items": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Powerline Inspection Route A",
"type": "waypoint",
"speed": 5,
"distance": 1200,
"time": 480,
"createdAt": 1709654015526,
"updatedAt": 1709654015526
}
],
"nextToken": "eyJwayI6InRlYW1JZDEi..."
}

Returns an array of Mission Objects.

[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Powerline Inspection Route A",
"type": "waypoint"
}
]

GET /v1/mission/{id}

Retrieves a single mission by its ID.

ParameterTypeDescription
idString(required) The mission ID
GET /v1/mission/a1b2c3d4-e5f6-7890-abcd-ef1234567890

Returns the full Mission Object including the route array.


PATCH /v1/mission/{id}

Updates an existing mission. Only the fields provided in the request body will be updated.

ParameterTypeDescription
idString(required) The mission ID

Any field from the Mission Object can be included. Only provided fields are updated.

{
"name": "Updated Mission Name",
"speed": 8
}

DELETE /v1/mission/{id}

Deletes a mission by its ID.

ParameterTypeDescription
idString(required) The mission ID
DELETE /v1/mission/a1b2c3d4-e5f6-7890-abcd-ef1234567890

Returns the deleted Mission Object.


FieldTypeDescription
idStringUnique mission identifier (auto-generated)
nameStringMission name (required)
descriptionStringMission description
typeStringMission type (see Mission Type)
heightModeStringHeight reference mode (see Height Mode)
routeMissionPoint[]Array of waypoints (see Mission Point)
speedNumberFlight speed
distanceNumberTotal mission distance (meters)
timeNumberEstimated flight time
lastFlightNumberTimestamp of the last flight using this mission
isImportedBooleanWhether the mission was imported from external source
isSmartInspectBooleanWhether the mission uses smart inspect mode
teamIdStringTeam ID (auto-set from authentication)
companyIdStringCompany ID (auto-set from authentication)
ownerIdStringOwner/creator identifier (auto-set)
createdAtNumberCreation timestamp (Unix ms)
updatedAtNumberLast update timestamp (Unix ms)

Each waypoint in the route array has the following structure:

FieldTypeDescription
latNumber(required) Latitude
lngNumber(required) Longitude
altitudeNumberAltitude — relative to start point
altitudeWGSNumberAltitude — WGS84 reference
altitudeEGMNumberAltitude — EGM96 reference
headingNumberHeading in degrees
pitchNumberCamera pitch angle
speedNumberSpeed at this waypoint
actionsArrayActions to perform at this waypoint
labelStringWaypoint label
typeStringPoint type — point or pole
isRiskyBooleanWhether this waypoint is flagged as risky
poleStringPole identifier (for infrastructure inspection)
woStringWork order identifier
ValueDescription
waypointGeneric waypoint mission
mapping2d2D survey/mapping mission
mapping3d3D survey/mapping mission
mappingStripStrip mapping mission
corridorCorridor inspection mission (e.g. powerlines)
pilotMission imported from DJI Pilot (KML)
smart-inspectSmart inspect mission (oriented to base point)
drone-harmonyMission imported from Drone Harmony (CSV)
ValueDescription
relativeToStartPointAltitude relative to the take-off point
EGM96EGM96 geoid model reference
WGS84WGS84 ellipsoid reference
realTimeFollowSurfaceReal-time terrain following
aboveGroundLevelAltitude above ground level