The /events endpoint enables retrieval of a user's event records. This includes carbohydrate intake, insulin doses, exercise, and health events that are entered in the receiver interface or through the mobile app.
GET /v3/users/self/events
OAuth 2.0 bearer token; see the Authentication section for details on this workflow.
The unit enumerations vary between endpoints. For events, the values are as follows:
For the systemTime and displayTime response fields, records sourced from mobile apps (with displayDevice of “iOS” or “android”) will have UTC offsets; records sourced from receivers (with displayDevice of “receiver”) will not have UTC offsets.
Dexcom ONE does not support the /events endpoint and will return an empty array.
Ok
curl -i -X GET \ 'https://api.dexcom.com/v3/users/self/events?startDate=2023-01-01T09%3A12%3A35&endDate=2023-01-01T09%3A12%3A35' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "recordType": "events",
- "recordVersion": "3.0",
- "userId": "5b329ebcfbf2f0ba7e49d4c5eb57775468f5ee657ac16fcde07e1fd08197b4c7",
- "records": [
- {
- "recordId": "763923b7-5424-451e-b37d-fd8ff635b308",
- "systemTime": "2022-02-06T09:12:35+00:00",
- "displayTime": "2022-02-06T01:12:35-08:00",
- "eventStatus": "created",
- "eventType": "insulin",
- "eventSubType": "longActing",
- "value": 400,
- "unit": "units",
- "transmitterId": "d55d01d0341ed0ba2cd99b322e8c5b609254f47d10c7cd12b99b4922effeba44",
- "transmitterGeneration": "g6",
- "displayDevice": "android"
}
]
}