List imported business metrics
GET
/api/v1/business-metrics
const url = 'https://example.com/api/v1/business-metrics';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/business-metricsLists the default tenant’s user-authored business metrics and their inclusive stored day spans, sorted by name. These business-value counts are separate from vendor usage metrics and never appear in the AI Usage endpoint.
Responses
Section titled “Responses”Business metric names and available day spans.
Media typeapplication/json
object
metrics
required
Imported business metrics, sorted by name; never null.
Array<object>
object
name
required
Exact metric identity used by the unit-economics query.
string
firstDay
required
First stored UTC calendar day.
string format: date
lastDay
required
Last stored UTC calendar day.
string format: date
Example
{ "metrics": [ { "name": "requests served", "firstDay": "2026-05-01", "lastDay": "2026-05-31" } ]}The business-metric list query failed.
Media typetext/plain
string