Browse developer docs
List inspection-flight jobs
POSTflyins-task
Request
Send POST to /open/service with serviceName=flyins-task and the common signing parameters.
Send extra fields in the JSON body
Optional type includes auto, manual and favoritePoint. Flight time filters are in milliseconds. Extent is a WKT polygon.
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=flyins-task' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token" \
--header 'Content-Type: application/json' \
--data '{
"uavsn": "YOUR_SCOUTING_DRONE_SN",
"pageNo": 1
}'| Parameter | Requirement | Meaning |
|---|---|---|
holderUuid | Optional | Optional identifier for the account holder. |
landUuid | Optional | Task GUID assigned at creation. |
uavsn | Required | Scouting aircraft serial number. |
statusCode | Optional | Task status filter. Aerial surveys and inspection flights use different codes. |
extent | Optional | WKT search polygon for survey queries, or a settings object for applicable irrigation scene commands. |
startFlightInspectTime | Optional | Beginning of the inspection time range in Unix milliseconds. |
endFlightInspectTime | Optional | End of the inspection time range in Unix milliseconds. |
type | Optional | Task or scene type. Inspection jobs accept auto, manual or favoritePoint. Smart Farm scene types are numeric. |
pageNo | Optional | Page number, starting at 1. |
Response
Inspect the task and its string-valued inspection state before requesting original images.
Show example response fields and types
{
"data": {
"page": {
"pageNo": "number",
"pageSize": "number",
"total": "number",
"totalPage": "number"
},
"tasks": [
{
"flightInspectTime": "number",
"name": "string",
"path": "string",
"type": "string",
"uuid": "string",
"uavInfo": {},
"landUuid": "string",
"holderUuid": "string",
"statusCode": "string",
"alias": "string",
"demand_name": "string"
}
]
},
"message": "string",
"status": "number"
}