CAIN-42 CAIN Studio

API reference · schema

DelegateReq

10 fields · used by 0 operations

Last reviewed 2026-10-03

Fields

FieldTypeMeaning
token requiredstringmax length 64
chain requiredarray of objectmin items 1 · max items 8
holderstringmax length 16 · default "agent"
subjectstringmax length 16 · default "sub"
resourcestring or nullmax length 120
actionsarray of string or nullmax items 8
ttlinteger or nullmin 1.0 · max 900.0
audiencestring or nullmax length 120
single_usebooleandefault false
popbooleandefault false

Smallest valid example

{
  "token": "token",
  "chain": [
    {}
  ],
  "holder": "agent",
  "subject": "sub",
  "single_use": false,
  "pop": false
}

JSON Schema

Show the raw definition
{
  "properties": {
    "token": {
      "type": "string",
      "maxLength": 64,
      "title": "Token"
    },
    "chain": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "maxItems": 8,
      "minItems": 1,
      "title": "Chain"
    },
    "holder": {
      "type": "string",
      "maxLength": 16,
      "title": "Holder",
      "default": "agent"
    },
    "subject": {
      "type": "string",
      "maxLength": 16,
      "title": "Subject",
      "default": "sub"
    },
    "resource": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Resource"
    },
    "actions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 8
        },
        {
          "type": "null"
        }
      ],
      "title": "Actions"
    },
    "ttl": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 900.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ttl"
    },
    "audience": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Audience"
    },
    "single_use": {
      "type": "boolean",
      "title": "Single Use",
      "default": false
    },
    "pop": {
      "type": "boolean",
      "title": "Pop",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "token",
    "chain"
  ],
  "title": "DelegateReq"
}

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