Metrics
List Metrics
List metric definitions for your merchant, ordered by creation time. Bootstraps Redis metric cache on first call.
Authorization
bearerAuth AuthorizationBearer <token>
Use your secret API key as the bearer token
In: header
Response Body
application/json
application/json
curl -X GET "https://api.getlumen.dev/v1/metrics"[
{
"id": "met_DQ6f7a8b9c0d1e2f3g4h5i",
"merchantId": "mer_1234567890abcdefghij",
"name": "API Calls",
"description": "Count of successful API calls",
"queryType": "simple",
"aggregationType": "COUNT",
"eventName": "api-call",
"valueType": "NUMERIC",
"sqlDefinition": null,
"createdAt": "2025-02-20T17:00:00.000Z",
"updatedAt": "2025-02-20T17:00:00.000Z"
}
]{
"error": "Internal server error"
}