{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/dexcom/refs/heads/main/json-structure/dexcom-api-devices-response-structure.json", "name": "DevicesResponse", "description": "DevicesResponse schema from Dexcom Developer API", "type": "object", "properties": { "recordType": { "type": "string", "example": "device" }, "recordVersion": { "type": "string", "example": "3.0" }, "userId": { "type": "string" }, "records": { "type": "array", "items": { "$ref": "#/definitions/DeviceRecord" } } }, "definitions": { "DeviceRecord": { "name": "DeviceRecord", "type": "object", "properties": { "lastUploadDate": { "$ref": "#/definitions/DateTime" }, "transmitterId": { "type": "string", "nullable": true }, "transmitterGeneration": { "$ref": "#/definitions/TransmitterGeneration" }, "displayDevice": { "type": "string", "description": "For example `iOS`, `android`, or `receiver`." }, "displayApp": { "type": "string", "nullable": true }, "alertSchedules": { "type": "array", "items": { "$ref": "#/definitions/AlertSchedule" } } } }, "DateTime": { "name": "DateTime", "type": "datetime", "description": "ISO 8601 timestamp." }, "AlertSchedule": { "name": "AlertSchedule", "type": "object", "properties": { "alertScheduleSettings": { "type": "object", "properties": { "alertScheduleName": { "type": "string" }, "isEnabled": { "type": "boolean" }, "isDefaultSchedule": { "type": "boolean" }, "startTime": { "type": "string", "description": "Local time of day in `HH:mm` format." }, "endTime": { "type": "string", "description": "Local time of day in `HH:mm` format." }, "daysOfWeek": { "type": "array", "items": { "type": "string", "enum": [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ] } } } }, "alertSettings": { "type": "array", "items": { "$ref": "#/definitions/AlertSetting" } } } }, "AlertSetting": { "name": "AlertSetting", "type": "object", "properties": { "alertName": { "$ref": "#/definitions/AlertName" }, "value": { "type": "double" }, "unit": { "$ref": "#/definitions/GlucoseUnit" }, "snooze": { "type": "int32", "description": "Snooze interval in minutes." }, "enabled": { "type": "boolean" } } }, "GlucoseUnit": { "name": "GlucoseUnit", "type": "string", "enum": [ "unknown", "mg/dL", "mmol/L" ] }, "TransmitterGeneration": { "name": "TransmitterGeneration", "type": "string", "enum": [ "unknown", "g4", "g5", "g6", "g6+", "dexcomPro", "g7" ] }, "AlertName": { "name": "AlertName", "type": "string", "enum": [ "unknown", "high", "low", "rise", "fall", "outOfRange", "urgentLow", "urgentLowSoon", "noReadings", "fixedLow" ] } } }