Create a meter
/api/v1/metersCreates a meter that counts the events you report under its eventName. The eventName, aggregation, valueKey and dimensionKeys cannot change afterwards. Send a unique Idempotency-Key. Repeating the request with the same key and body returns the original meter.
Authorization
bearerAuth An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.
In: header
Header Parameters
A unique key you choose for this request: 1 to 255 visible ASCII characters, no spaces. A UUID works well. Never put personal data in it. Send the same key again to retry safely.
The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.
Value in
- "2026-11-06"
Request Body
application/json
A meter to create. The event name, aggregation, value key and dimension keys cannot change afterwards.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api-malipo.flex.co.tz/api/v1/meters" \ -H "Authorization: Bearer <token>" \ -H "Idempotency-Key: 5f1c1e0a-3b7e-4c8e-9d1a-2f6b8a4c7e11" \ -H "FlexMalipo-Version: 2026-11-06" \ -H "Content-Type: application/json" \ -d '{ "eventName": "api_requests", "displayName": "API requests", "aggregation": "SUM" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "livemode": true, "eventName": "api_requests", "displayName": "API requests", "unitLabel": "requests", "active": true, "aggregation": "SUM", "valueKey": "value", "dimensionKeys": [ "region" ], "version": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}