APIs intended for internal use by Tidepool.
- List device logs metadata
Blob API (1.0)
The Tidepool API is an HTTP REST API used by Tidepool clients use to communicate with the Tidepool Platform.
For more information, see the Getting Started section.
https://tidepool.redocly.app/_mock/reference/blob.v1/
https://external.integration.tidepool.org/
https://api.tidepool.org/
https://dev1.dev.tidepool.org/
https://qa1.development.tidepool.org/
https://qa2.development.tidepool.org/
Blobs
List, create, and manage binary blobs. The content format may be anything, because the blobs are treated as opaque data by the service. Each blob has a status
. If a blob is created without content, then its status is created
. If the blob is created with content or has been updated to include content then its status is available
.
Base64-encoded MD5 hash of the resource, per RFC 3230
Starting time of device logs inside the uploaded json log
array of JSON data
A string identifying the model of the device.
The deviceModel
is a non-empty string that encodes the model of device. We endeavor to match each manufacturer's standard for how they represent model name in terms of casing, whether parts of the name are represented as one word or two, etc.
Globally unique to device and repeatable with each upload, e.g. device make and model with serial number
- Mock server
https://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/device_logs
- integration
https://external.integration.tidepool.org/v1/users/{userId}/device_logs
- production
https://api.tidepool.org/v1/users/{userId}/device_logs
- dev1
https://dev1.dev.tidepool.org/v1/users/{userId}/device_logs
- qa1
https://qa1.development.tidepool.org/v1/users/{userId}/device_logs
- qa2
https://qa2.development.tidepool.org/v1/users/{userId}/device_logs
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/device_logs' \
-H 'Content-Type: application/json' \
-H 'Digest: md5=HUXZLQLMuI/KZ5KDcJPcOA==' \
-H 'X-Logs-End-At-Time: 2017-02-06T02:37:46Z' \
-H 'X-Logs-Start-At-Time: 2017-02-06T02:37:46Z' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '[
{
"type": "send",
"managerIdentifier": "Devicey McDeviceface",
"deviceIdentifier": "MMT-1711:12345678",
"timestamp": "2017-02-06T02:37:46Z",
"message": "sent something ..."
}
]'
Device logs metadata
String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4
{ "id": "97a9fae8a19b4da58bb48dc90c9562c9", "userId": "4d94a5fb-642e-48f1-89b9-c6a3e6145342", "digestMD5": "HUXZLQLMuI/KZ5KDcJPcOA==", "mediaType": "application/json", "size": 1024, "createdTime": "2017-02-06T02:35:46Z", "startAt": "2017-02-06T02:35:46Z", "endAt": "2017-02-06T02:36:46Z" }
- Mock server
https://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/device_logs
- integration
https://external.integration.tidepool.org/v1/users/{userId}/device_logs
- production
https://api.tidepool.org/v1/users/{userId}/device_logs
- dev1
https://dev1.dev.tidepool.org/v1/users/{userId}/device_logs
- qa1
https://qa1.development.tidepool.org/v1/users/{userId}/device_logs
- qa2
https://qa2.development.tidepool.org/v1/users/{userId}/device_logs
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/device_logs?startAtTime=2017-02-06T02%3A37%3A46Z&endAtTime=2017-02-06T02%3A37%3A46Z' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
List of device logs metadata
String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4
[ { "id": "97a9fae8a19b4da58bb48dc90c9562c9", "userId": "4d94a5fb-642e-48f1-89b9-c6a3e6145342", "digestMD5": "HUXZLQLMuI/KZ5KDcJPcOA==", "mediaType": "application/json", "size": 1024, "createdTime": "2017-02-06T02:35:46Z", "startAt": "2017-02-06T02:35:46Z", "endAt": "2017-02-06T02:36:46Z" } ]