Dexcom · JSON Structure

Dexcom Api Token Request Structure

Form-encoded request body for the token endpoint.

Type: object Properties: 6 Required: 3
Continuous Glucose MonitoringDiabetesDigital HealthGlucoseHealthcareMedical DevicesWearables

TokenRequest is a JSON Structure definition published by Dexcom, describing 6 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

client_id client_secret code refresh_token grant_type redirect_uri

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dexcom/refs/heads/main/json-structure/dexcom-api-token-request-structure.json",
  "name": "TokenRequest",
  "description": "Form-encoded request body for the token endpoint.",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "description": "Application's registered client identifier."
    },
    "client_secret": {
      "type": "string",
      "description": "Application's client secret."
    },
    "code": {
      "type": "string",
      "description": "Single-use authorization code (required when `grant_type=authorization_code`)."
    },
    "refresh_token": {
      "type": "string",
      "description": "Refresh token (required when `grant_type=refresh_token`)."
    },
    "grant_type": {
      "type": "string",
      "enum": [
        "authorization_code",
        "refresh_token"
      ]
    },
    "redirect_uri": {
      "type": "uri",
      "description": "Registered redirect URI (required for `authorization_code`)."
    }
  },
  "required": [
    "client_id",
    "client_secret",
    "grant_type"
  ]
}