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
}'
ParameterRequirementMeaning
holderUuidOptionalOptional identifier for the account holder.
landUuidOptionalTask GUID assigned at creation.
uavsnRequiredScouting aircraft serial number.
statusCodeOptionalTask status filter. Aerial surveys and inspection flights use different codes.
extentOptionalWKT search polygon for survey queries, or a settings object for applicable irrigation scene commands.
startFlightInspectTimeOptionalBeginning of the inspection time range in Unix milliseconds.
endFlightInspectTimeOptionalEnd of the inspection time range in Unix milliseconds.
typeOptionalTask or scene type. Inspection jobs accept auto, manual or favoritePoint. Smart Farm scene types are numeric.
pageNoOptionalPage 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"
}

All Scouting Drones operations

Location
Richmond Hill, Ontario, Canada