# Get Data for User Get data for the specified . You can filter the data to pull with several query parameters. Endpoint: GET /data/{userId} Version: 1.0 Security: sessionToken ## Path parameters: - `userId` (string, required) Tidepool User ID ## Query parameters: - `uploadId` (string) Upload ID. Search for data by . Only objects with a field matching the specified parameter will be returned. Example: "0d92d5c1c22117a18f3620b9e24d3c06" - `deviceId` (string) Device ID. Search for data by . Only objects with a field matching the specified parameter will be returned. Example: "MMT-1711:12345678" - `type` (array) Upload Type. The data type to search for. Only objects with a field matching the specified parameter will be returned. It can be a single value like or a comma separated list like . If is a comma separated list, then objects matching of the types will be returned. Enum: "alert", "basal", "bloodKetone", "bolus", "cbg", "cgmSettings", "controllerSettings", "controllerStatus", "deviceEvent", "deviceStatus", "dosingDecision", "food", "insulin", "physicalActivity", "pumpSettings", "pumpStatus", "reportedState", "smbg", "upload", "water", "wizard" - `subType` (array) Sub Type. The data subtype to search for. Only objects with a field matching the specified parameter will be returned. It can be a single value like or a comma separated list like . If it is a comma separated list, then objects matching of the types will be returned. - `startDate` (string) Start Date. Only objects with field equal to or greater than start date will be returned. Must be in ISO 8601 date/time format e.g. . Example: "2017-02-06T02:37:46Z" - `endDate` (string) End Date. Only objects with field less than to or equal to start date will be returned. Must be in ISO 8601 date/time format e.g. . Example: "2017-02-06T02:37:46Z" - `latest` (boolean) Latest Data. Returns only the most recent results for each matching the results filtered by the other query parameters. - `dexcom` (boolean) Dexcom Data - `carelink` (boolean) Carelink Data - `medtronic` (boolean) Medtronic Data ## Response 400 fields (application/json): - `code` (integer, required) Example: 404 - `message` (string, required) Example: "Requested resources was not found" ## Response 401 fields (application/json): - `code` (integer, required) Example: 404 - `message` (string, required) Example: "Requested resources was not found" ## Response 403 fields (application/json): - `code` (integer, required) Example: 404 - `message` (string, required) Example: "Requested resources was not found" ## Response 404 fields (application/json): - `code` (integer, required) Example: 404 - `message` (string, required) Example: "Requested resources was not found"