APIs intended for internal use by Tidepool.
Task 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.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://tidepool.redocly.app/_mock/reference/task.v1
integration
https://external.integration.tidepool.org
production
https://api.tidepool.org
dev1
https://dev1.dev.tidepool.org
qa1
https://qa1.development.tidepool.org
qa2
https://qa2.development.tidepool.org
Request
Returns list of tasks. The list can be filtered with the name, type, or state query parameters. It can also be paginated with the page and size query parameters.
Security
serverToken
- Mock serverhttps://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks
- integrationhttps://external.integration.tidepool.org/v1/tasks
- productionhttps://api.tidepool.org/v1/tasks
- dev1https://dev1.dev.tidepool.org/v1/tasks
- qa1https://qa1.development.tidepool.org/v1/tasks
- qa2https://qa2.development.tidepool.org/v1/tasks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks?name=string&type=string&state=running&page=0&size=42' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'Response
application/json
[ { "id": "354b6adc10bc417eb715a8e7b21d6031", "name": "string", "type": "string", "priority": 0, "data": {}, "availableTime": "2017-02-06T02:37:46Z", "expirationTime": "2017-02-06T02:37:46Z", "state": "running", "error": "string", "runTime": "2017-02-06T02:37:46Z", "duration": 0, "createdTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z" } ]
- Mock serverhttps://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks
- integrationhttps://external.integration.tidepool.org/v1/tasks
- productionhttps://api.tidepool.org/v1/tasks
- dev1https://dev1.dev.tidepool.org/v1/tasks
- qa1https://qa1.development.tidepool.org/v1/tasks
- qa2https://qa2.development.tidepool.org/v1/tasks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"type": "string",
"priority": 0,
"data": {},
"availableTime": "2017-02-06T02:37:46Z",
"expirationTime": "2017-02-06T02:37:46Z"
}'Response
application/json
{ "id": "354b6adc10bc417eb715a8e7b21d6031", "name": "string", "type": "string", "priority": 0, "data": {}, "availableTime": "2017-02-06T02:37:46Z", "expirationTime": "2017-02-06T02:37:46Z", "state": "running", "error": "string", "runTime": "2017-02-06T02:37:46Z", "duration": 0, "createdTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z" }
- Mock serverhttps://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks/{taskId}
- integrationhttps://external.integration.tidepool.org/v1/tasks/{taskId}
- productionhttps://api.tidepool.org/v1/tasks/{taskId}
- dev1https://dev1.dev.tidepool.org/v1/tasks/{taskId}
- qa1https://qa1.development.tidepool.org/v1/tasks/{taskId}
- qa2https://qa2.development.tidepool.org/v1/tasks/{taskId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks/354b6adc10bc417eb715a8e7b21d6031 \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'Response
application/json
{ "id": "354b6adc10bc417eb715a8e7b21d6031", "name": "string", "type": "string", "priority": 0, "data": {}, "availableTime": "2017-02-06T02:37:46Z", "expirationTime": "2017-02-06T02:37:46Z", "state": "running", "error": "string", "runTime": "2017-02-06T02:37:46Z", "duration": 0, "createdTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z" }
- Mock serverhttps://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks/{taskId}
- integrationhttps://external.integration.tidepool.org/v1/tasks/{taskId}
- productionhttps://api.tidepool.org/v1/tasks/{taskId}
- dev1https://dev1.dev.tidepool.org/v1/tasks/{taskId}
- qa1https://qa1.development.tidepool.org/v1/tasks/{taskId}
- qa2https://qa2.development.tidepool.org/v1/tasks/{taskId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks/354b6adc10bc417eb715a8e7b21d6031 \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"priority": 0,
"data": {},
"availableTime": "2017-02-06T02:37:46Z",
"expirationTime": "2017-02-06T02:37:46Z"
}'Response
application/json
{ "id": "354b6adc10bc417eb715a8e7b21d6031", "name": "string", "type": "string", "priority": 0, "data": {}, "availableTime": "2017-02-06T02:37:46Z", "expirationTime": "2017-02-06T02:37:46Z", "state": "running", "error": "string", "runTime": "2017-02-06T02:37:46Z", "duration": 0, "createdTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z" }
- Mock serverhttps://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks/{taskId}
- integrationhttps://external.integration.tidepool.org/v1/tasks/{taskId}
- productionhttps://api.tidepool.org/v1/tasks/{taskId}
- dev1https://dev1.dev.tidepool.org/v1/tasks/{taskId}
- qa1https://qa1.development.tidepool.org/v1/tasks/{taskId}
- qa2https://qa2.development.tidepool.org/v1/tasks/{taskId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks/354b6adc10bc417eb715a8e7b21d6031 \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'