The /devices endpoint enables retrieval of a user's device information, including G4, G5, and G6 standalone receivers, the G5 and G6 mobile apps, and transmitters. The response is an array of all receiver-type devices contributing data to the specified time window, including the alerts and settings associated with each receiver.
GET /v2/users/self/devices
OAuth 2.0 bearer token; see the Authentication section for details on this workflow.
Due to the way device upload records are stored, the time components of the startDate and endDate parameters are ignored for the /devices endpoint.
startDate required | string <date-time> Beginning of the time window; see the discussion of time in the Endpoint Overview section for more details on how they relate to device information Example: startDate=2023-01-01T09:12:35 |
endDate required | string <date-time> End of the time window Example: endDate=2023-01-01T09:12:35 |
Ok
curl -i -X GET \ 'https://api.dexcom.com/v2/users/self/devices?startDate=2023-01-01T09%3A12%3A35&endDate=2023-01-01T09%3A12%3A35' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "devices": [
- {
- "transmitterGeneration": "g6",
- "displayDevice": "iOS",
- "lastUploadDate": "2019-08-24T14:15:22Z",
- "alertScheduleList": [
- {
- "alertScheduleSettings": {
- "alertScheduleName": "sampleName",
- "isEnabled": true,
- "isDefaultSchedule": true,
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "daysOfWeek": [
- "sunday",
- "monday",
- "tuesday"
]
}, - "alertSettings": [
- {
- "alertName": "high",
- "value": 200,
- "unit": "mg/dL",
- "snooze": 80,
- "enabled": true,
- "systemTime": "2019-08-24T14:15:22Z",
- "displayTime": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
}