gridzen-ai · Schema

DecisionRequest

CompanyAIEnergyGridOptimization

Properties

Name Type Description
event object
subject object
context object
providers object Optional provider IDs. Omit to use the policy default route.
View JSON Schema on GitHub

JSON Schema

gridzen-ai-decision-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gridzen-ai/json-schema/gridzen-ai-decision-request-schema.json",
  "title": "DecisionRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gridzen-ai-openapi.json#/components/schemas/DecisionRequest",
  "properties": {
    "event": {
      "$ref": "#/$defs/DecisionEvent"
    },
    "subject": {
      "$ref": "#/$defs/SubjectIdentifiers"
    },
    "context": {
      "$ref": "#/$defs/DecisionContext"
    },
    "providers": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Providers",
      "description": "Optional provider IDs. Omit to use the policy default route."
    }
  },
  "type": "object",
  "required": [
    "event",
    "subject"
  ],
  "$defs": {
    "DecisionContext": {
      "properties": {
        "country": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2,
              "minLength": 2
            },
            {
              "type": "null"
            }
          ],
          "title": "Country"
        },
        "expected_country": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2,
              "minLength": 2
            },
            {
              "type": "null"
            }
          ],
          "title": "Expected Country"
        },
        "client_reference": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "Client Reference"
        },
        "consent_reference": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "Consent Reference"
        },
        "callback_url": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2083,
              "minLength": 1,
              "format": "uri"
            },
            {
              "type": "null"
            }
          ],
          "title": "Callback Url"
        }
      },
      "type": "object",
      "title": "DecisionContext",
      "description": "Non-identity context used to select a policy and provider route."
    },
    "DecisionEvent": {
      "type": "string",
      "enum": [
        "onboarding",
        "payout",
        "account_change"
      ],
      "title": "DecisionEvent"
    },
    "SubjectIdentifiers": {
      "properties": {
        "email": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 254
            },
            {
              "type": "null"
            }
          ],
          "title": "Email"
        },
        "phone": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 32
            },
            {
              "type": "null"
            }
          ],
          "title": "Phone"
        },
        "ip_address": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 45
            },
            {
              "type": "null"
            }
          ],
          "title": "Ip Address"
        },
        "national_id": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "National Id"
        },
        "bank_account": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "Bank Account"
        }
      },
      "type": "object",
      "title": "SubjectIdentifiers",
      "description": "Identifiers supplied for the subject of a decision.\n\nThe API accepts only the identifiers needed for a requested check.  They are\npassed to providers at evaluation time and are deliberately excluded from\nGridZen's decision audit payload."
    }
  }
}

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/gridzen-ai-decision-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.