Browse developer docs
XAG DevInfo
Build precision agriculture integrations with XAG Open Platform.
Use authorized equipment data in your own field reports, GIS pipelines and farm dashboards. SkyFlow’s English reference brings together XAG’s API services, request examples and field workflows.
GET /open/service
Host: open.xa.com
serviceName=device-sn-list
appUid=<application UID>
timestamp=<Unix milliseconds>
token=<signed digest>Product APIs
- Agricultural DronesRead status, application jobs, individual flights, and tracks. Integrate prescriptions through the documented handoff.
- RoversRead rover status, mission details, individual runs, and actuator track data.
- AutoPilotRead tractor position, work records, and historical guidance tracks.
- Scouting DronesFind inspection flights, survey jobs, and original photos for mapping or crop review.
- Smart FarmRead farm servers, IoT device inventory, irrigation status, and operation history.
Quickstart
Confirm account eligibility and the first supported device with XAG. Start with a read request against equipment whose owner has approved your access.
- Create a developer account
- Register an application
- Obtain owner authorization
- Call an XAG service
- Open the XAG Service WeChat mini program to start account registration. Confirm the registration and identity steps for your country.
- Create an app in the XAG Open console. Copy its application UID and secret into server-side secret storage. Configure an IP allowlist if available.
- Find the authorization QR code in your developer profile and share it with the device owner. The owner scans it, signs in, and grants the requested device-data access.
- Run List authorized devices and match the returned model and serial against your intended equipment.
- Developer shares QR
- Owner signs in and grants access
- App can request device data
Authentication
XAG signs each request with a new Unix timestamp in milliseconds. Put the four common values in the URL query, even when a service takes a JSON body. Use the method specified by the individual service.
- serviceName
- Exact service identifier.
- appUid
- Application UID from the XAG console.
- timestamp
- 13-digit Unix timestamp in milliseconds.
- token
- Lowercase hexadecimal SHA-1 digest over the UTF-8 concatenation shown.
https://open.xa.com/open/service
token = SHA1_HEX(UTF8(appUid + timestamp + appSecret))List authorized devices
Check which equipment the application can access and capture each sn and definitionName. For AutoPilot, save the extInfo.deviceId when present.
GET /open/service
serviceName=device-sn-list
This read-only request uses optional pageIndex and pageSize. Start at page 1 and paginate against total.
Set XAG_APP_UID and XAG_APP_SECRET in your server environment. Substitute the sample IDs with authorized values.
# 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 GET \
'https://open.xa.com/open/service' \
--url-query 'serviceName=device-sn-list' \
--url-query 'pageIndex=1' \
--url-query 'pageSize=20' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token"Illustrative response
{
"status": 200,
"message": null,
"data": {
"total": 1,
"pageIndex": 1,
"pageSize": 20,
"records": [
{
"sn": "EXAMPLE-SN",
"definitionName": "Example XAG model",
"extInfo": {
"deviceId": "example-device-id"
}
}
]
}
}Integration notes
- Keep signing on the server
- Keep the application secret out of browser code. Redact signed query strings from logs and keep the server clock synchronized.
- Read the response body
- Check both HTTP status and the service’s JSON status and success fields when they are present. Page fields, date units and record nesting vary across services.
- Preserve original data
- Keep raw timestamps, coordinate metadata and units alongside your normalized records. A missing or stale reading should stay distinguishable from zero.
- Review commands before sending
- Use read operations for your first integration. Confirm permissions and operator workflows with XAG before enabling submissions or control commands. Check the final device state after a command is accepted.
Developer community and SDKs
XAG’s developer platform gives agronomists, GIS specialists and robotics engineers a shared way to build around authorized equipment. Use these examples to build an API client and share your integration questions or field workflows with SkyFlow. XAG documents SDK-origin missions in its rover records. Ask us about SDK packages, interfaces and access for your exact product and market.
Discuss an API or SDK integration with SkyFlow
Building a resource directory? SkyFlow’s public resource catalogue API is available at /api/xag/v1/resources.
