Eliq · Schema

Token request

EnergyUtilitiesAnalyticsSustainabilityEnergy DataSmart MeterDisaggregationForecastingSegmentationConsumptionTariffsInsights

Properties

Name Type Description
grant_type string The OAuth grant type. - `client_credentials` — issue a new app or delegated token - `refresh_token` — exchange a refresh token for a new access token
client_id string The OAuth application identity. A non-numeric string, e.g. `utility-acme-backend` (for data-management-api) or `utility-acme-frontend` (for insights-api). Required for `client_credentials` grant.
client_secret string The client secret. Required for `client_credentials` grant.
aud string The target API the token should be scoped to (e.g. `data-management-api`, `insights-api`). Required for Auth v2 flows.
scope string Space-delimited list of requested scopes. Optional — if omitted, the default scopes configured for the client are used.
sub string The subject identifier on whose behalf the token is issued (e.g. a user ID or location ID). Required for delegated flows. Must be accompanied by `sub_type`. The subject is not verified during token cr
sub_type string The type of subject referenced by `sub` (e.g. `user`, `location`). Required when `sub` is set.
issue_refresh_token boolean Whether to include a refresh token in the response. Applies to delegated flows only. May be denied by server policy regardless of this value.
refresh_token string The refresh token to exchange. Required when `grant_type` is `refresh_token`.
View JSON Schema on GitHub

JSON Schema

eliq-token-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/eliq/main/json-schema/eliq-token-request-schema.json",
  "title": "Token request",
  "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-request",
  "type": "object",
  "required": [
    "grant_type"
  ],
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "The OAuth grant type.\n- `client_credentials` — issue a new app or delegated token\n- `refresh_token` — exchange a refresh token for a new access token",
      "enum": [
        "client_credentials",
        "refresh_token"
      ]
    },
    "client_id": {
      "type": "string",
      "description": "The OAuth application identity. A non-numeric string, e.g. `utility-acme-backend` (for data-management-api)\nor `utility-acme-frontend` (for insights-api).\nRequired for `client_credentials` grant."
    },
    "client_secret": {
      "type": "string",
      "description": "The client secret. Required for `client_credentials` grant."
    },
    "aud": {
      "type": "string",
      "description": "The target API the token should be scoped to (e.g. `data-management-api`, `insights-api`).\nRequired for Auth v2 flows."
    },
    "scope": {
      "type": "string",
      "description": "Space-delimited list of requested scopes. Optional — if omitted, the default scopes\nconfigured for the client are used."
    },
    "sub": {
      "type": "string",
      "description": "The subject identifier on whose behalf the token is issued (e.g. a user ID or location ID).\nRequired for delegated flows. Must be accompanied by `sub_type`.\nThe subject is not verified during token creation but will be enforced by the target API."
    },
    "sub_type": {
      "type": "string",
      "description": "The type of subject referenced by `sub` (e.g. `user`, `location`).\nRequired when `sub` is set."
    },
    "issue_refresh_token": {
      "type": "boolean",
      "description": "Whether to include a refresh token in the response. Applies to delegated flows only.\nMay be denied by server policy regardless of this value."
    },
    "refresh_token": {
      "type": "string",
      "description": "The refresh token to exchange. Required when `grant_type` is `refresh_token`."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/eliq-token-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.