Avycenna

Ingest a wearable data point

Records a single metric reading (e.g. heart rate, steps) from a wearable source like Apple Health or Garmin.

POST
/api/v1/wearables/ingest

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

x-api-key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/wearables/ingest" \  -H "Content-Type: application/json" \  -d '{    "metric": "string",    "value": 0,    "unit": "string",    "recorded_at": "2019-08-24T14:15:22Z",    "source": "apple_health"  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}