CAIN-42 CAIN Studio

API reference · schema

MintReq

11 fields · used by 0 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
token requiredstringmax length 64
subjectstringmax length 16 · default "agent"
audience requiredstringmax length 120
resource requiredstringmax length 120
actions requiredarray of stringmin items 1 · max items 8
ttlintegermin 1.0 · max 900.0 · default 300
sessionstringmax length 64 · default "S1"
tenantstringmax length 64 · default "t1"
single_usebooleandefault false
popbooleandefault false
args_hashstring or nullmax length 64

Smallest valid example

{
  "token": "token",
  "subject": "agent",
  "audience": "audience",
  "resource": "resource",
  "actions": [
    "actions"
  ],
  "ttl": 300,
  "session": "S1",
  "tenant": "t1",
  "single_use": false,
  "pop": false
}

JSON Schema

Show the raw definition
{
  "properties": {
    "token": {
      "type": "string",
      "maxLength": 64,
      "title": "Token"
    },
    "subject": {
      "type": "string",
      "maxLength": 16,
      "title": "Subject",
      "default": "agent"
    },
    "audience": {
      "type": "string",
      "maxLength": 120,
      "title": "Audience"
    },
    "resource": {
      "type": "string",
      "maxLength": 120,
      "title": "Resource"
    },
    "actions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 8,
      "minItems": 1,
      "title": "Actions"
    },
    "ttl": {
      "type": "integer",
      "maximum": 900.0,
      "minimum": 1.0,
      "title": "Ttl",
      "default": 300
    },
    "session": {
      "type": "string",
      "maxLength": 64,
      "title": "Session",
      "default": "S1"
    },
    "tenant": {
      "type": "string",
      "maxLength": 64,
      "title": "Tenant",
      "default": "t1"
    },
    "single_use": {
      "type": "boolean",
      "title": "Single Use",
      "default": false
    },
    "pop": {
      "type": "boolean",
      "title": "Pop",
      "default": false
    },
    "args_hash": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Args Hash"
    }
  },
  "type": "object",
  "required": [
    "token",
    "audience",
    "resource",
    "actions"
  ],
  "title": "MintReq"
}

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