{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/dexcom/refs/heads/main/json-schema/dexcom-api-token-request-schema.json", "title": "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": "string", "format": "uri", "description": "Registered redirect URI (required for `authorization_code`)." } }, "required": [ "client_id", "client_secret", "grant_type" ] }