CAIN-42 CAIN Studio

API reference · schema

DecisionRequest

6 fields · used by 0 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
action requiredstringmin length 1
resource requiredstringmin length 1
principalstring or nulldefault "anonymous"
agent_idstring or null
tenant_idstring or nulldefault "demo"
metadataobject or nulldefault {}

Smallest valid example

{
  "action": "action",
  "resource": "resource",
  "principal": "anonymous",
  "tenant_id": "demo",
  "metadata": {}
}

JSON Schema

Show the raw definition
{
  "properties": {
    "action": {
      "type": "string",
      "minLength": 1,
      "title": "Action"
    },
    "resource": {
      "type": "string",
      "minLength": 1,
      "title": "Resource"
    },
    "principal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Principal",
      "default": "anonymous"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "tenant_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tenant Id",
      "default": "demo"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "default": {}
    }
  },
  "type": "object",
  "required": [
    "action",
    "resource"
  ],
  "title": "DecisionRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem