CAIN-42 CAIN Studio

API reference · schema

AgentTokenRequest

4 fields · used by 1 operations

Last reviewed 2026-10-03

Fields

FieldTypeMeaning
agent_id requiredstringmin length 1 · max length 255
scopes requiredarray of stringmin items 1
ttl_secondsintegermin 1.0 · max 3600.0 · default 900
chainarray of string

Smallest valid example

{
  "agent_id": "agent-id",
  "scopes": [
    "scopes"
  ],
  "ttl_seconds": 900
}

Used by 1 operation

POST/fabric/identity/agent-tokensMint a short-lived agent delegation token

JSON Schema

Show the raw definition
{
  "properties": {
    "agent_id": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Agent Id"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Scopes"
    },
    "ttl_seconds": {
      "type": "integer",
      "maximum": 3600.0,
      "minimum": 1.0,
      "title": "Ttl Seconds",
      "default": 900
    },
    "chain": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Chain"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "scopes"
  ],
  "title": "AgentTokenRequest"
}

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