Skip to content

Get Data for User

Request

Get data for the specified userId. You can filter the data to pull with several query parameters.

Security
sessionToken
Path
userIdstring(Tidepool User ID)^([0-9a-f]{10}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-...read-onlyrequired

Tidepool User ID

Query
uploadIdstring, [ 17 .. 32 ] characters(Upload ID)^([0-9a-f]{32}|upid_[0-9a-f]{12})$

Upload ID. Search for data by uploadId. Only objects with a uploadId field matching the specified uploadId parameter will be returned.

Example:uploadId=0d92d5c1c22117a18f3620b9e24d3c06
deviceIdstring, non-empty(Device ID)

Device ID. Search for data by deviceId. Only objects with a deviceId field matching the specified uploadId parameter will be returned.

Example:deviceId=MMT-1711:12345678
typeArray of strings, non-empty

Upload Type. The data type to search for. Only objects with a type field matching the specified type parameter will be returned. It can be a single value like /data/userid?type=smbg or a comma separated list like /data/userid?type=smgb,cbg. If is a comma separated list, then objects matching any of the types will be returned.

Example:type=cbg&type=smbg
subTypeArray of any(Data Sub Type)

Sub Type. The data subtype to search for. Only objects with a subType field matching the specified subType parameter will be returned. It can be a single value like ?subtype=physicalactivity or a comma separated list like ?subtypetype=physicalactivity,steps. If it is a comma separated list, then objects matching any of the types will be returned.

startDatestring, (date-time)(Date/Time)

Start Date. Only objects with time field equal to or greater than start date will be returned. Must be in ISO 8601 date/time format e.g. 2015-10-10T15:00:00.000Z.

Example:startDate=2017-02-06T02:37:46Z
endDatestring, (date-time)(Date/Time)

End Date. Only objects with time field less than to or equal to start date will be returned. Must be in ISO 8601 date/time format e.g. 2015-10-10T15:00:00.000Z.

Example:endDate=2017-02-06T02:37:46Z
latestboolean

Latest Data. Returns only the most recent results for each type matching the results filtered by the other query parameters.

Default:false
dexcomboolean

Dexcom Data

Default:false
medtronicboolean

Medtronic Data

Default:false
curl -i -X GET \
  'https://tidepool.redocly.app/_mock/reference/data.v1/data/{userId}?uploadId=0d92d5c1c22117a18f3620b9e24d3c06&deviceId=MMT-1711%3A12345678&type=cbg%2Csmbg&subType=scanned&startDate=2017-02-06T02%3A37%3A46Z&endDate=2017-02-06T02%3A37%3A46Z&latest=false&dexcom=false&carelink=false&medtronic=false' \
  -H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'

Responses

Data List

Bodyapplication/json
Array [
One of:

Alert presented to user

]
Response
[ { "annotations": [ … ], "archivedTime": "2017-02-06T02:37:46Z", "archivedDatasetId": "ce8cc5f7595575945f91fc6710db6fef", "associations": [ … ], "clockDriftOffset": 0, "conversionOffset": 0, "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deduplicator": { … }, "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "deviceId": "MMT-1711:12345678", "deviceTime": "2017-02-06T02:37:46", "guid": "string", "history": [ … ], "id": "ce8cc5f7595575945f91fc6710db6fef", "location": { … }, "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "notes": [ … ], "origin": { … }, "payload": {}, "source": "carelink", "tags": [ … ], "time": "2017-02-06T02:37:46Z", "timezone": "Europe/London", "timezoneOffset": -420, "type": "alert", "uploadId": "0d92d5c1c22117a18f3620b9e24d3c06", "name": "string", "priority": "critical", "trigger": "delayed", "triggerDelay": 0, "sound": "name", "soundName": "string", "issuedTime": "2017-02-06T02:37:46Z", "acknowledgedTime": "2017-02-06T02:37:46Z", "retractedTime": "2017-02-06T02:37:46Z" } ]