Every request to the AquaMeter AI API must be authenticated with an API key passed as a Bearer token.
Include your API key in the Authorization header of every request. The value must be the word Bearer followed by a single space and your key.
Authorization: Bearer aqm_live_YOUR_API_KEY
curl -X POST https://www.aquameter.site/api/meter-reading \-H "Authorization: Bearer aqm_live_YOUR_API_KEY" \-F "image=@meter.jpg"
All API keys are prefixed with aqm_live_ followed by 32 random hexadecimal characters. You can use the prefix to identify AquaMeter keys in your secrets manager.
Example key (not real)
aqm_live_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4Go to API Keys in your dashboard.
Click "Create API Key", enter a project name, and set the initial status.
Copy the full key immediately — it is shown only once after creation.
Store the key securely (environment variable, secrets manager).
All authentication failures return 422 with an errors.authorization field. See Errors for the full envelope.
422No Authorization headerAdd the Authorization: Bearer <key> header422Malformed header (missing Bearer)Ensure the format is exactly Bearer <space> <key>422Key not found or deletedRegenerate a key from the dashboard422Key is inactiveEnable the key from the API Keys page{"errors": {"authorization": ["Invalid or inactive API key"]}}