CAIN-42 CAIN Studio

API reference · schema

RecordEventRequest

7 fields · used by 1 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
action requiredstring
resourcestring or null
toolstring or null
intentstring or null
decisionstring or nulldefault "allow"
risk_scorenumber or nulldefault 0.1
execution_statusstring or nulldefault "executed"

Smallest valid example

{
  "action": "action",
  "decision": "allow",
  "risk_score": 0.1,
  "execution_status": "executed"
}

Used by 1 operation

POST/fabric/trajectories/{trajectory_id}/eventsRecord Event To Trajectory

JSON Schema

Show the raw definition
{
  "properties": {
    "action": {
      "type": "string",
      "title": "Action"
    },
    "resource": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resource"
    },
    "tool": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool"
    },
    "intent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Intent"
    },
    "decision": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decision",
      "default": "allow"
    },
    "risk_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Risk Score",
      "default": 0.1
    },
    "execution_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Execution Status",
      "default": "executed"
    }
  },
  "type": "object",
  "required": [
    "action"
  ],
  "title": "RecordEventRequest"
}

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