GET
/
patient
/
{patientId}
/
devices
cURL
curl --request GET \
  --url https://om-staging.mylifeforce.com/api/m2m/patient/{patientId}/devices \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 1,
      "name": "Fitbit",
      "slug": "fitbit",
      "logoUrl": "https://picsum.photos/200/300",
      "status": "connected",
      "type": "watch",
      "sleep": [
        {
          "name": "REM Sleep",
          "unit": "hours",
          "data": [
            {
              "date": "2022-04-18T00:00:00Z",
              "value": 2.5
            }
          ],
          "average": 2.5,
          "percentChange": 15.2
        }
      ],
      "activity": [
        {
          "name": "Daily Active Calorie Burn",
          "unit": "Calories",
          "data": [
            {
              "date": "2022-04-18T00:00:00Z",
              "value": 789
            }
          ],
          "average": 456,
          "percentChange": 15.2
        }
      ],
      "body": [
        {
          "name": "Weight",
          "unit": "lbs",
          "data": [
            {
              "date": "2022-04-18T00:00:00Z",
              "value": 150
            }
          ],
          "average": 150,
          "percentChange": 15.2
        }
      ],
      "bloodPressure": {
        "name": "Blood Pressure",
        "unit": "mmHg",
        "data": [
          {
            "date": "2022-04-18T00:00:00Z",
            "systolic": 120,
            "diastolic": 80
          }
        ],
        "average": {
          "systolic": 120,
          "diastolic": 80
        },
        "abnormalInstancePercentage": 0,
        "percentChange": 0
      },
      "activityHeartRate": {
        "name": "Heart Rate",
        "unit": "bpm",
        "data": [
          {
            "date": "2022-04-18T00:00:00Z",
            "averageHeartRate": 80,
            "maximumHeartRate": 200,
            "minimumHeartRate": 55,
            "restingHeartRate": 60
          }
        ],
        "average": 80,
        "abnormalInstances": 0,
        "percentChange": 0
      }
    }
  ],
  "vitalConnectedDevices": [
    {
      "id": 1,
      "name": "Fitbit",
      "slug": "fitbit",
      "logoUrl": "https://picsum.photos/200/300",
      "status": "connected",
      "type": "watch"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

patientId
string
required

The id of the patient in question

Example:

"29ea9012-c622-4851-a57a-9327abd21198"

Query Parameters

time_range
enum<string>
default:last90

Time range for the device data

Available options:
last7,
last90,
last180

Response

200
application/json

Successful response

The response is of type object.