APIs intended for internal use by Tidepool.
- Get User's Private Metadata Item
Metadata 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.
- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/collections
- integrationhttps://external.integration.tidepool.org/metadata/collections
- productionhttps://api.tidepool.org/metadata/collections
- dev1https://dev1.dev.tidepool.org/metadata/collections
- qa1https://qa1.development.tidepool.org/metadata/collections
- qa2https://qa2.development.tidepool.org/metadata/collections
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/collections \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'[ "profile", "groups", "private" ]
- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/{collectionName}
- integrationhttps://external.integration.tidepool.org/metadata/{userId}/{collectionName}
- productionhttps://api.tidepool.org/metadata/{userId}/{collectionName}
- dev1https://dev1.dev.tidepool.org/metadata/{userId}/{collectionName}
- qa1https://qa1.development.tidepool.org/metadata/{userId}/{collectionName}
- qa2https://qa2.development.tidepool.org/metadata/{userId}/{collectionName}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/profile' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'- Profile
- User Preferences
- User Settings
- Private Collection
{ "fullName": "James Jellyfish", "patient": { "diagnosisType": "type1", "diagnosisDate": "2013-05-09", "birthday": "2012-08-30", "biologicalSex": "male", "targetDevices": [ … ], "targetTimezone": "US/Eastern", "about": "Jellyman is awesome!" } }
Request
Updates the user's metadata collection corresponding to collectionName. Each metadata collection is an unbounded JSON object with client-defined fields.
- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/{collectionName}
- integrationhttps://external.integration.tidepool.org/metadata/{userId}/{collectionName}
- productionhttps://api.tidepool.org/metadata/{userId}/{collectionName}
- dev1https://dev1.dev.tidepool.org/metadata/{userId}/{collectionName}
- qa1https://qa1.development.tidepool.org/metadata/{userId}/{collectionName}
- qa2https://qa2.development.tidepool.org/metadata/{userId}/{collectionName}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Profile
- User Preferences
- User Settings
- Private Collection
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/profile' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"fullName": "James Jellyfish",
"patient": {
"diagnosisType": "type1",
"diagnosisDate": "2013-05-09",
"birthday": "2012-08-30",
"biologicalSex": "male",
"targetDevices": [
"bayercontournext"
],
"targetTimezone": "US/Eastern",
"about": "Jellyman is awesome!"
}
}'- Profile
- User Preferences
- User Settings
- Private Collection
{ "fullName": "James Jellyfish", "patient": { "diagnosisType": "type1", "diagnosisDate": "2013-05-09", "birthday": "2012-08-30", "biologicalSex": "male", "targetDevices": [ … ], "targetTimezone": "US/Eastern", "about": "Jellyman is awesome!" } }
Request
Updates the user's metadata collection corresponding to collectionName. Each metadata collection is an unbounded JSON object with client-defined fields.
- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/{collectionName}
- integrationhttps://external.integration.tidepool.org/metadata/{userId}/{collectionName}
- productionhttps://api.tidepool.org/metadata/{userId}/{collectionName}
- dev1https://dev1.dev.tidepool.org/metadata/{userId}/{collectionName}
- qa1https://qa1.development.tidepool.org/metadata/{userId}/{collectionName}
- qa2https://qa2.development.tidepool.org/metadata/{userId}/{collectionName}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Profile
- User Preferences
- User Settings
- Private Collection
curl -i -X PUT \
'https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/profile' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"fullName": "James Jellyfish",
"patient": {
"diagnosisType": "type1",
"diagnosisDate": "2013-05-09",
"birthday": "2012-08-30",
"biologicalSex": "male",
"targetDevices": [
"bayercontournext"
],
"targetTimezone": "US/Eastern",
"about": "Jellyman is awesome!"
}
}'- Profile
- User Preferences
- User Settings
- Private Collection
{ "fullName": "James Jellyfish", "patient": { "diagnosisType": "type1", "diagnosisDate": "2013-05-09", "birthday": "2012-08-30", "biologicalSex": "male", "targetDevices": [ … ], "targetTimezone": "US/Eastern", "about": "Jellyman is awesome!" } }
- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/private/{fieldName}
- integrationhttps://external.integration.tidepool.org/metadata/{userId}/private/{fieldName}
- productionhttps://api.tidepool.org/metadata/{userId}/private/{fieldName}
- dev1https://dev1.dev.tidepool.org/metadata/{userId}/private/{fieldName}
- qa1https://qa1.development.tidepool.org/metadata/{userId}/private/{fieldName}
- qa2https://qa2.development.tidepool.org/metadata/{userId}/private/{fieldName}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/private/{fieldName}' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/users/{userId}/users
- integrationhttps://external.integration.tidepool.org/metadata/users/{userId}/users
- productionhttps://api.tidepool.org/metadata/users/{userId}/users
- dev1https://dev1.dev.tidepool.org/metadata/users/{userId}/users
- qa1https://qa1.development.tidepool.org/metadata/users/{userId}/users
- qa2https://qa2.development.tidepool.org/metadata/users/{userId}/users
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/users/{userId}/users' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'Success
true if the user has verified their email address. false or not present if the user has not verified their email address.
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
An email address, as specified by RFC 5322.
Profiles used by Tidepool Web
User profile used by Tidepool Web
[ { "emailVerified": true, "emails": [ … ], "termsAccepted": "2017-02-06T02:37:46Z", "roles": [ … ], "userid": "string", "username": "example@tidepool.org", "profile": { … }, "trusteePermissions": { … } } ]