v1

latestOpenAPI 3.1.02026-07-2410057.1 KB

Measurements

Returns a list of measurements for a given user

GET /organizations/:org_id/users/:uid/measurements

get/organizations/{org_id}/users/{uid}/measurements?token={token}

Path parameters

org_idstring required

Organization ID provided to you by Validic.

uidstring required

The UID you defined when provisioning the client.

tokenstring required

Developer Key as supplied by Validic.

Query parameters

start_datestring

The start date to retrieve user data for. Format: YYYY-MM-DD. Default is current UTC day. Max date range is 30 days.

end_datestring

The end date to retrieve user data for. Format: YYYY-MM-DD. Default is current UTC day. Max date range is 30 days.

sourcestring

Used to filter records to source(s). Example: “...?source=fitbit,garmin” or “...?source=fitbit”

Response

200

Example response

{
  "data": [
    {
      "checksum": "11c7c5a7833f3ea41fd3fc173544fe3e",
      "created_at": "2019-10-11T17:06:09.473Z",
      "end_time": "2019-09-10T03:59:59Z",
      "id": "3af2f56dSAMPLE39ec002d3d1f2ffd5",
      "log_id": "1568073599000",
      "metrics": [
        {
          "type": "body_weight",
          "origin": "unknown",
          "unit": "kg",
          "value": 130.2
        }
      ],
      "offset_origin": "profile",
      "source": {
        "type": "fitbit"
      },
      "start_time": "2019-09-10T03:59:59Z",
      "type": "measurement",
      "user": {
        "organization_id": "59b02bbdfSample0001e13e75",
        "user_id": "59b02bdeSAMPLE0001e13e8c",
        "uid": "vpt12345sp"
      },
      "utc_offset": -14400,
      "version": "1.0"
    }
  ]
}