curl --request POST \
--url https://production.hifibridge.com/v2/reporting/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template": "GROSS_VOLUME",
"name": "Daily Revenue Report",
"params": {
"createdAfter": "2025-11-01",
"createdBefore": "2025-11-07",
"calculationInterval": "day",
"transactionTypes": [
"onramp",
"offramp"
]
}
}
'{
"status": "success",
"data": {
"id": "9106f8e2-188f-4854-99fc-cb21ef6b998d",
"profileId": "e4c758d7-5475-4505-ba15-e129db0a441f",
"template": "GROSS_VOLUME",
"name": "Daily Revenue Report",
"params": {
"createdAfter": "2025-11-01",
"createdBefore": "2025-11-07",
"calculationInterval": "day",
"transactionTypes": [
"onramp",
"offramp"
]
},
"createdAt": "2025-12-08T22:26:13.659Z",
"updatedAt": "2025-12-08T22:26:13.659Z"
},
"metadata": {}
}Creates and saves a new metric configuration to the database. This does not execute the report, but stores the parameters for future use.
curl --request POST \
--url https://production.hifibridge.com/v2/reporting/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template": "GROSS_VOLUME",
"name": "Daily Revenue Report",
"params": {
"createdAfter": "2025-11-01",
"createdBefore": "2025-11-07",
"calculationInterval": "day",
"transactionTypes": [
"onramp",
"offramp"
]
}
}
'{
"status": "success",
"data": {
"id": "9106f8e2-188f-4854-99fc-cb21ef6b998d",
"profileId": "e4c758d7-5475-4505-ba15-e129db0a441f",
"template": "GROSS_VOLUME",
"name": "Daily Revenue Report",
"params": {
"createdAfter": "2025-11-01",
"createdBefore": "2025-11-07",
"calculationInterval": "day",
"transactionTypes": [
"onramp",
"offramp"
]
},
"createdAt": "2025-12-08T22:26:13.659Z",
"updatedAt": "2025-12-08T22:26:13.659Z"
},
"metadata": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request to create a new saved metric
Metric template name
GROSS_VOLUME, TRANSACTION_COUNT, NEW_USERS User-defined metric name
1 - 100Metric parameters. Structure varies by template, but common fields include:
Additional properties may be present based on the metric template. Each template may define template-specific parameters.
Show child attributes
Optional description for the metric
500