Browse developer docs

List original photos

POSTraw-data

Request

Send POST to /open/service with serviceName=raw-data and the common signing parameters.

Send extra fields in the JSON body

workType is flyins or aerial. Follow the marker cursor for additional pages.

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=raw-data' \
  --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",
  "workUuid": "YOUR_WORK_UUID",
  "workType": "aerial"
}'
ParameterRequirementMeaning
uavsnRequiredScouting aircraft serial number.
workUuidRequiredWork identifier returned by the job query.
workTypeRequiredUse aerial for a survey or flyins for an inspection flight.
markerOptionalPagination cursor. Omit it for the first page.

Response

The result contains photo records for the requested work. Use the cursor returned by the service to retrieve more records.

Show example response fields and types
{
  "data": {
    "fileInfos": [
      {
        "contentType": "string",
        "eTag": "string",
        "key": "string",
        "lastModified": "number",
        "size": "number",
        "storageType": "string",
        "url": "string",
        "thumbnailUrl": "string"
      }
    ],
    "marker": "string",
    "nextMarker": "string"
  },
  "status": "number"
}

All Scouting Drones operations

Location
Richmond Hill, Ontario, Canada