API Reference
Get timeseries data for a task
GET
/api/metrics/data/timeseries/{taskId}
Daily data points from the metrics database.
Operation IDgetMetricsTimeseries
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
taskIdintegerrequiredQuery parameters
daysintegerNumber of days to look back
Success response body
200Timeseries data
Timeseries data
Content typeapplication/json
responseobject3 properties
availablebooleantaskstringpointsarray<object>Array items
itemobject5 properties
daystring · datesuccessintegererrorintegeravg_duration_msnumbertotal_itemsintegerError responses
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}