{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/eliq/main/json-schema/eliq-token-response-schema.json",
  "title": "Token response",
  "description": "Response returned on successful token creation.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eliq-oauth-api-openapi.yml#/components/schemas/token-response",
  "type": "object",
  "required": [
    "access_token",
    "token_type",
    "expires_in"
  ],
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The issued JWT access token."
    },
    "token_type": {
      "type": "string",
      "description": "Always `Bearer`."
    },
    "expires_in": {
      "type": "number",
      "description": "Seconds until the access token expires."
    },
    "refresh_token": {
      "type": "string",
      "description": "A refresh token for obtaining a new access token. Only present in delegated token responses\nwhen a refresh token was requested and approved."
    },
    "refresh_token_expires_in": {
      "type": "number",
      "description": "Seconds until the refresh token expires. Only present when `refresh_token` is included."
    }
  }
}