takeoff_to_point

DJI Services · drc · takeoff_to_point

Request Params

vendor
string
required
Fixed value dji
device_id
string
required
Target device ID
command_type
string
required
Fixed value takeoff_to_point
idempotency_key
string
required
Idempotency key; repeated requests return the same command
timeout_seconds
integer
Timeout in seconds, range 0~300
payload.target_latitude
number
required
Target point latitude (-90 to 90)
payload.target_longitude
number
required
Target point longitude (-180 to 180)
payload.target_height
number
required
Target point height (ellipsoidal height, WGS84)
payload.security_takeoff_height
number
required
Safe takeoff height (relative to dock ALT)
payload.rth_mode
integer
required
Method payload field
payload.rth_altitude
integer
required
Return home altitude (relative to dock ALT)
payload.rc_lost_action
integer
required
RC lost action (0=hover, 1=land, 2=RTH)
payload.exit_wayline_when_rc_lost
integer
required
[Deprecated] Wayline lost action (0=continue, 1=exit)
payload.commander_mode_lost_action
integer
required
Method payload field
payload.commander_flight_mode
integer
required
Method payload field
payload.commander_flight_height
number
required
Method payload field
payload.flight_id
string
required
One-key takeoff mission UUID
payload.max_speed
integer
Max speed (1-15 m/s, optional)
payload.flight_safety_advance_check
integer
required
Method payload field

Create Response

command_id
string(uuid)
Platform command acceptance identifier; globally unique UUID
status
string
Acceptance status: ACCEPTED
accepted_at
string(datetime)
Command acceptance time (UTC)

Query Response

command_id
string(uuid)
Platform command acceptance identifier; globally unique UUID
status
string
Execution status: ACCEPTED / DELIVERED / SUCCEEDED / FAILED / TIMED_OUT / UNMATCHED_RESPONSE
vendor
string
Vendor identifier; fixed value dji
device_id
string
Target device ID
command_type
string
Method name
response_code
string
Device-side execution code
response_message
string
Device-side execution message
vendor_response
object
Raw vendor response (passthrough)

DJI Services Reply Mapping

The device returns command results through services_reply. The platform correlates the reply to command_id through tid and updates the command lifecycle. Clients do not consume the MQTT reply channel directly.
Open Platform fieldDJI services_reply source
response_codePrefer data.code; fall back to data.result when code is absent
response_messagedata.message / data.msg / data.description
vendor_responseNormalized DJI reply summary preserving result, code, message, output, and vendor extension fields
data.result = 0 means device-side execution succeeded. Non-zero values mean device-side execution failed, and the platform moves the command to a failed terminal state.
curl -X POST "/api/v1/open/downlink/commands" \
  -H "Content-Type: application/json" \
  -H "X-Api-Id: YOUR_API_ID" \
  -H "X-Api-Timestamp: YOUR_UNIX_SECONDS" \
  -H "X-Api-Nonce: YOUR_NONCE" \
  -H "X-Api-Signature: YOUR_SIGNATURE" \
  -d '{"vendor":"dji","device_id":"drone-001","command_type":"takeoff_to_point","payload":{"target_latitude":0.0,"target_longitude":0.0,"target_height":0.0,"security_takeoff_height":0.0,"rth_mode":0,"rth_altitude":0,"rc_lost_action":0,"exit_wayline_when_rc_lost":0,"commander_mode_lost_action":0,"commander_flight_mode":0,"commander_flight_height":0.0,"flight_id":"id-001","flight_safety_advance_check":0,"max_speed":0},"idempotency_key":"req-takeoff_to_point-001","timeout_seconds":30}'

curl "/api/v1/open/downlink/commands/48e7be50-7edf-9eca-ec62-189f3fcbcc3b"
{
  "command_id": "48e7be50-7edf-9eca-ec62-189f3fcbcc3b",
  "status": "ACCEPTED",
  "accepted_at": "2026-04-22T12:00:00Z"
}