{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-token-response-schema.json",
  "title": "TokenResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-oauth-protocol-api-openapi.yml#/components/schemas/TokenResponse",
  "properties": {
    "access_token": {
      "description": "The access token",
      "type": "string"
    },
    "expires_in": {
      "description": "Token lifetime in seconds",
      "type": "integer"
    },
    "refresh_token": {
      "description": "Refresh token (if applicable)",
      "type": "string"
    },
    "scope": {
      "description": "Space-separated list of granted scopes",
      "type": "string"
    },
    "token_type": {
      "description": "Token type",
      "enum": [
        "Bearer"
      ],
      "type": "string"
    }
  },
  "required": [
    "access_token",
    "token_type",
    "expires_in"
  ],
  "type": "object"
}