Browse developer docs
Read mission details
POSTcar-mission-detail
Request
Send POST to /open/service with serviceName=car-mission-detail and the common signing parameters.
Send extra fields in the JSON body
Optional user_guid. The documented mode field distinguishes autonomous, manual and SDK jobs.
Request example
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)
curl --silent --show-error --fail-with-body --max-time 30 --request POST \
'https://open.xa.com/open/service' \
--url-query 'serviceName=car-mission-detail' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token" \
--header 'Content-Type: application/json' \
--data '{
"sn": "YOUR_ROVER_SN",
"mission_guid": "YOUR_MISSION_GUID"
}'| Parameter | Requirement | Meaning |
|---|---|---|
mission_guid | Required | Rover mission identifier. |
user_guid | Optional | Identifier for the user associated with the operation. |
sn | Required | Authorized equipment serial number. |
Response
One mission record. Inspect the work type, mode, land identifiers and completed area. Area is in square metres.
Show example response fields and types
{
"success": "boolean",
"data": {
"mission_guid": "string",
"sn": "string",
"dev_id": "string",
"dev_name": "string",
"dev_model": "string",
"land_id": "number",
"land_guid": "string",
"land_name": "string",
"work_type": "number",
"mode": "number",
"start_time": "number",
"end_time": "number",
"task_duration": "number",
"complete_area": "number",
"plan_area": "number",
"total_mileage": "number",
"task_mileage": "number",
"total_dosage": "number",
"work_speed": "number",
"work_width": "number"
},
"message": "string",
"status": "number"
}