Version query
Query a published organization software version, update status, and OTA download information.
Use POST /api/authV2/device/firmware/query to query live device software. This endpoint requires no login or API key. To query organization software, send its device software ID and the device identity bound to that software.
Query by model
Enter your device software ID and select the device bound to the project. This example queries a Read Pico beta.
/api/authV2/device/firmware/queryQuery by registered device ID
Enter a registered device ID and the project’s device software ID. The server gets the series, model, and hardware edition from the device registration.
/api/authV2/device/firmware/queryRequest fields
| Field | Description |
|---|---|
firmwareId | The 24-character hexadecimal ID of the organization software. Omit it to query the official stable version. |
series, model, edition | Send all three when querying by model. Use the values bound to the software project. |
id | A registered device ID of 12 uppercase hexadecimal characters. If you also send the model fields, they must match the registration. |
status | The organization software channel. Use ALPHA, TESTING, or RELEASED. Default is RELEASED. |
currentVersion | The installed SemVer version, up to 31 characters. Omit it or send null if unknown. |
version | Optional exact published version in the selected channel. Omit it to select the latest published version. |
Response example
HTTP 200 OK. The selected version is 1.2.0-beta.1, which is newer than the installed version, so needUpdate is true.
{
"series": "read",
"model": "read_0",
"edition": 1,
"status": "TESTING",
"firmwareId": "000000000000000000000101",
"version": "1.2.0-beta.1",
"needUpdate": true,
"updateVersion": "1.2.0-beta.1",
"ota": {
"downloadUrl": "https://dot.mindreset.tech/download/AwAAAAAAAAAAAAABAgAAAAA",
"size": 1176976,
"sha256": "a4b13eb3a234a0446faeed2e1d07a22f52bf06b40b00e22f219e15211eed6b07"
}
}versionandupdateVersionidentify the selected version.needUpdateistrueonly when the selected version is newer thancurrentVersion. Omitting the installed version still returns the version metadata withneedUpdateset tofalse.otaisnullwhen the selected version has no OTA file. Ifotais present, send a GET request toota.downloadUrland follow the HTTP 302 redirect to a signed URL valid for three minutes. See Download and update.
When you omit firmwareId to query official software, ota includes both the legacy ota.path and the authorized ota.downloadUrl. Existing devices can continue to resolve the relative ota.path against https://os-cdn.mindreset.tech/.
Troubleshooting
For an invalid request body, the HTTP 400 response includes this message.
{
"message": "Invalid firmware query."
}| HTTP status | What to check |
|---|---|
400 | Check the device identity, channel, and SemVer syntax. |
404 | Check the registered device or model, the software’s device binding, the organization’s availability, and whether a matching version is live in the requested channel. |
429 | This endpoint allows 10 requests per second per IP. Reduce the request rate and retry. |
500 | The query could not be completed. Retry later. |
Query versions with organization credentials
Get an organization credential and your device software ID. Use these forms to query the organization’s Read Pico software. Include firmwareId in each request.
List versions
/api/authV2/organization/softwareThe response contains matching items and totalCount. pageIndex starts at 0. pageSize defaults to 20 and has a maximum of 45. To filter, pass comma-separated values in channels or states. The search field matches version numbers, software names, or file names. An excerpt follows.
{
"items": [
{
"id": "000000000000000000000102",
"firmwareId": "000000000000000000000101",
"version": "1.2.0-beta.1",
"status": "TESTING",
"state": "published"
}
],
"totalCount": 1
}Check a version and its review status
Copy the version id from the version list or upload completion response. If a stable version needs changes, check reviewReason and reviewId, then resubmit it.
/api/authV2/organization/software/detailCheck available version numbers
/api/authV2/organization/software/versionsBefore uploading, use GET /versions to check each channel's version numbers. The response is an array with a channels entry for ALPHA, TESTING, and RELEASED on each target. latest is the highest recorded version in the channel, or null for an empty channel. Choose a higher version or use a version in reusable.
Query a published version
/api/authV2/organization/software/queryPOST /query returns the same organization software version information as the device query above. The default status is RELEASED. Set version to look up a specific published version. Pass currentVersion to compare with an installed version. If the response has an OTA file, use ota.downloadUrl to download and verify it.
For HTTP 404, check that the firmwareId belongs to a Read Pico project in your organization. For published queries, also check that the channel and requested version are available for distribution.
Did this solve your problem?
Join our community