How to structure and send a meter reading request to the API.
Requests must be sent as multipart/form-data. Do not set the Content-Type header manually. Your HTTP client (curl, fetch, requests) will set it automatically, including the required multipart boundary.
imageFileYesThe meter image to analyse.These examples use the default asynchronous endpoint. To use the synchronous version, change the URL to /api/meter-reading/sync.
curl -X POST https://www.aquameter.site/api/meter-reading \-H "Authorization: Bearer aqm_live_YOUR_API_KEY" \-F "image=@/path/to/meter.jpg"
const form = new FormData();form.append("image", file); // File object from <input type="file">await fetch("https://www.aquameter.site/api/meter-reading", {method: "POST",headers: { Authorization: "Bearer aqm_live_YOUR_API_KEY" },body: form,});
import requestswith open("meter.jpg", "rb") as f:r = requests.post("https://www.aquameter.site/api/meter-reading",headers={"Authorization": "Bearer aqm_live_YOUR_API_KEY"},files={"image": f},)