Preview Metric Results
Executes a metric calculation on the fly without saving it to the database. Useful for testing parameters or ad-hoc analysis.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request to preview a metric calculation without saving
Metric template name
GROSS_VOLUME, TRANSACTION_COUNT, NEW_USERS Metric parameters. Structure varies by template, but common fields include:
- Date range filters
- Calculation interval
- Breakdown dimensions
- Template-specific filters
Additional properties may be present based on the metric template. Each template may define template-specific parameters.
Response
Metric calculation results
Response from metric calculation endpoints. The structure of data array items
varies based on the breakdowns parameter in the request.
Base structure (no breakdowns):
- Each item has:
periodStart, plus metric-specific fields (e.g.,grossVolume,transactionCount)
With breakdowns:
- Each item includes breakdown dimension fields (e.g.,
transactionType,transactionStatus,userId) - Field names match the breakdown dimension names from the request
Example without breakdowns:
{
"status": "success",
"data": [
{ "periodStart": "2025-01-01T00:00:00Z", "grossVolume": 1000.50 },
{ "periodStart": "2025-01-02T00:00:00Z", "grossVolume": 2000.75 }
],
"metadata": { ... }
}Example with breakdowns: ["transactionType"]:
{
"status": "success",
"data": [
{ "periodStart": "2025-01-01T00:00:00Z", "transactionType": "onramp", "grossVolume": 500.25 },
{ "periodStart": "2025-01-01T00:00:00Z", "transactionType": "offramp", "grossVolume": 500.25 }
],
"metadata": { ... }
}