APIs intended for internal use by Tidepool.
- Get Data Source
Data 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/data.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/
Request
Deletes all data sources for the user specified by the userId
. This does not delete the corresponding data provider sessions. See the Authentication APIs for the details on how to delete data provider sessions.
- Mock server
https://tidepool.redocly.app/_mock/reference/data.v1/v1/users/{userId}/data_sources
- integration
https://external.integration.tidepool.org/v1/users/{userId}/data_sources
- production
https://api.tidepool.org/v1/users/{userId}/data_sources
- dev1
https://dev1.dev.tidepool.org/v1/users/{userId}/data_sources
- qa1
https://qa1.development.tidepool.org/v1/users/{userId}/data_sources
- qa2
https://qa2.development.tidepool.org/v1/users/{userId}/data_sources
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://tidepool.redocly.app/_mock/reference/data.v1/v1/users/{userId}/data_sources' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
- Mock server
https://tidepool.redocly.app/_mock/reference/data.v1/v1/data_sources/{dataSourceId}
- integration
https://external.integration.tidepool.org/v1/data_sources/{dataSourceId}
- production
https://api.tidepool.org/v1/data_sources/{dataSourceId}
- dev1
https://dev1.dev.tidepool.org/v1/data_sources/{dataSourceId}
- qa1
https://qa1.development.tidepool.org/v1/data_sources/{dataSourceId}
- qa2
https://qa2.development.tidepool.org/v1/data_sources/{dataSourceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://tidepool.redocly.app/_mock/reference/data.v1/v1/data_sources/c0ce05326529c6b35b0f4a568a344026 \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
Data Source
An array of data set IDs. The IDs in the array must be unique.
State of the data source.
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
{ "createdTime": "2017-02-06T02:37:46Z", "dataSetIds": [ "ce8cc5f7595575945f91fc6710db6fef" ], "earliestDataTime": "2017-02-06T02:37:46Z", "id": "c0ce05326529c6b35b0f4a568a344026", "lastImportTime": "2017-02-06T02:37:46Z", "latestDataTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z", "providerName": "dexcom", "providerSessionId": "string", "providerType": "oauth", "revision": 0, "state": "connected", "userId": "string" }
Request
Updates the data source specified by the dataSourceId
. If you want to change the data provider session, you must first create the data provider session. See the Authentication APIs for the details on how to create data provider sessions.
Update Data Source
An array of data set IDs. The IDs in the array must be unique.
- Mock server
https://tidepool.redocly.app/_mock/reference/data.v1/v1/data_sources/{dataSourceId}
- integration
https://external.integration.tidepool.org/v1/data_sources/{dataSourceId}
- production
https://api.tidepool.org/v1/data_sources/{dataSourceId}
- dev1
https://dev1.dev.tidepool.org/v1/data_sources/{dataSourceId}
- qa1
https://qa1.development.tidepool.org/v1/data_sources/{dataSourceId}
- qa2
https://qa2.development.tidepool.org/v1/data_sources/{dataSourceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://tidepool.redocly.app/_mock/reference/data.v1/v1/data_sources/c0ce05326529c6b35b0f4a568a344026 \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"dataSetIds": [
"ce8cc5f7595575945f91fc6710db6fef"
],
"earliestDataTime": "2017-02-06T02:37:46Z",
"error": "string",
"lastImportTime": "2017-02-06T02:37:46Z",
"latestDataTime": "2017-02-06T02:37:46Z",
"providerSessionId": "string",
"state": "connected"
}'
Data Source
An array of data set IDs. The IDs in the array must be unique.
State of the data source.
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
{ "createdTime": "2017-02-06T02:37:46Z", "dataSetIds": [ "ce8cc5f7595575945f91fc6710db6fef" ], "earliestDataTime": "2017-02-06T02:37:46Z", "id": "c0ce05326529c6b35b0f4a568a344026", "lastImportTime": "2017-02-06T02:37:46Z", "latestDataTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z", "providerName": "dexcom", "providerSessionId": "string", "providerType": "oauth", "revision": 0, "state": "connected", "userId": "string" }