Posting Beats

Once you have your access_token, you may start adding user data to Cardiogram in order to generate Risk Scores

Add heart rate data to user

POST https://cardiogr.am/heart/oauth/users/:userId/beats

The beats endpoint helps store user heart rate

Path Parameters

Name
Type
Description

userId

string

/oauth/users/1/beats

Headers

Name
Type
Description

Authentication

string

Bearer <access_token>

Request Body

Name
Type
Description

Beats

object

{ beats: <Array>[ { start: <Timestamp> end: <Timestamp> value: <Float> } ] } Timestamps are UTC time in seconds

{ "success": true }

Code Sample:

curl --location --request POST "https://cardiogr.am/heart/oauth/users/1/beats" \
  --header "Content-Type: application/json" \
  --data "{ \"beats\": [{ \"start\": 1546025628, \"end\": 1546025628, \"value\": 60 }, { \"start\": 1546025701, \"end\": 1546025701, \"value\": 62 }] }"

Last updated

Was this helpful?