Wi-Fi AP HTTP & Upload Server API
ReAI Recording Card SDK Documentation › Wi-Fi HTTP & Server Contract
SDK v0.0.9 (MIT)HTTP/1.1Wi-Fi >= 0.1.0
SoftAP Endpoints (http://192.168.4.1:80)
| Method & Path | Query / Body | Response |
|---|---|---|
GET /api/device/info | None | version, versionCode, chipModel, freeHeap, sdCard |
GET /api/files | ?page=1&pageSize=50 | Paginated .apm entries with session, seq, startAt, synced |
GET /api/files/download | ?path=<no-leading-slash> | Raw .apm stream + Content-Disposition |
DELETE /api/files/delete | ?path=<no-leading-slash> | {"ok":true} |
GET /api/ota/check | None | currentVersion, currentVersionCode, otaReady |
POST /api/ota/upload | multipart/form-data firmware + x-firmware-size + x-firmware-sha256 | {"success":true,"sha256":"...","restart":true} |
Custom Upload Receiver Contract
GET /health&GET /*/health->200 {"ok":true}POST /d/<device-token>/<filename>orPOST /api/upload/<filename>(raw body or multipart; respond immediately toExpect: 100-continue; honorx-filesize; reject 0-byte bodies; return{"ok":true,"name":"...","size":N,"sha256":"..."}).