CAIN-42 CAIN Studio

API reference · schema

GrantRequest

6 fields · used by 0 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
tenant requiredstringmin length 1 · max length 128
requested_by requiredstringmin length 1 · max length 256
reason requiredstringmin length 10 · max length 2000
scope requiredarray of stringmin items 1 · max items 50
ttl_secondsnumber> 0.0 · default 900.0
initiator_key_id requiredstring

Smallest valid example

{
  "tenant": "tenant",
  "requested_by": "requested-by",
  "reason": "reason",
  "scope": [
    "scope"
  ],
  "ttl_seconds": 900.0,
  "initiator_key_id": "initiator-key-id"
}

JSON Schema

Show the raw definition
{
  "properties": {
    "tenant": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Tenant"
    },
    "requested_by": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1,
      "title": "Requested By"
    },
    "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 10,
      "title": "Reason"
    },
    "scope": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Scope"
    },
    "ttl_seconds": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Ttl Seconds",
      "default": 900.0
    },
    "initiator_key_id": {
      "type": "string",
      "title": "Initiator Key Id"
    }
  },
  "type": "object",
  "required": [
    "tenant",
    "requested_by",
    "reason",
    "scope",
    "initiator_key_id"
  ],
  "title": "GrantRequest"
}

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