# Export user data Exports the diabetes data from user identified by , from to , in the requested . Either a Tidepool session token, or a restricted token must be supplied. Endpoint: GET /export/{userId} Version: 1.0 Security: sessionToken, restrictedToken ## Path parameters: - `userId` (string, required) Tidepool User ID ## Query parameters: - `startDate` (string) Start date for the export data Example: "2017-02-06T02:37:46Z" - `endDate` (string) End date for the exported data Example: "2017-02-06T02:37:46Z" - `format` (string) Export format Enum: "json", "xlsx" - `bgUnits` (string) Glucose units of the exported data Enum: "mmol/L", "mg/dL"