# Export API

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](../docs/quick-start.md) section.

Version: 1.0
License: BSD-2-Clause

## Servers

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
```

## Security

### sessionToken

Tidepool Session Token

Type: apiKey
In: header
Name: X-Tidepool-Session-Token

## Download OpenAPI description

[Export API](https://dev-docs.tidepool.org/_bundle/reference/export.v1.yaml)

## Export

Enable bulk export of diabetes data from user's Tidepool account.

### Export user data

 - [GET /export/{userId}](https://dev-docs.tidepool.org/reference/export.v1/internal/exportuserdata.md): Exports the diabetes data from user identified by userId, from startDate to endDate, in the requested format. Either a Tidepool session token, or a restricted token must be supplied.

### Export user data

 - [GET /export/{userId}](https://dev-docs.tidepool.org/reference/export.v1/export/exportuserdata.md): Exports the diabetes data from user identified by userId, from startDate to endDate, in the requested format. Either a Tidepool session token, or a restricted token must be supplied.

## Internal

APIs intended for internal use by Tidepool.

### Export user data

 - [GET /export/{userId}](https://dev-docs.tidepool.org/reference/export.v1/internal/exportuserdata.md): Exports the diabetes data from user identified by userId, from startDate to endDate, in the requested format. Either a Tidepool session token, or a restricted token must be supplied.

### Export user data

 - [GET /export/{userId}](https://dev-docs.tidepool.org/reference/export.v1/export/exportuserdata.md): Exports the diabetes data from user identified by userId, from startDate to endDate, in the requested format. Either a Tidepool session token, or a restricted token must be supplied.

