Avycenna

Get history for one metric

Time series of readings for a single metric (e.g. `heart_rate`, `steps`) over the given window.

GET
/api/v1/wearables/metric/{metric}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

metric*Metric

Query Parameters

days?Days
Range1 <= value <= 365
Default30

Header Parameters

x-api-key?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/wearables/metric/string"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}