API reference · schema
TokenReq
10 fields · used by 0 operations
Last reviewed 2026-10-03
Fields
| Field | Type | Meaning |
|---|---|---|
agent_id required | string | |
tenant required | string | |
grant_id required | string | |
intent required | object | |
tool required | string | |
action required | string | |
resource required | string | |
arguments | object | default {} |
context | object | default {} |
ttl_seconds | number | default 30.0 |
Smallest valid example
{
"agent_id": "agent-id",
"tenant": "tenant",
"grant_id": "grant-id",
"intent": {},
"tool": "tool",
"action": "action",
"resource": "resource",
"arguments": {},
"context": {},
"ttl_seconds": 30.0
}JSON Schema
Show the raw definition
{
"properties": {
"agent_id": {
"type": "string",
"title": "Agent Id"
},
"tenant": {
"type": "string",
"title": "Tenant"
},
"grant_id": {
"type": "string",
"title": "Grant Id"
},
"intent": {
"additionalProperties": true,
"type": "object",
"title": "Intent"
},
"tool": {
"type": "string",
"title": "Tool"
},
"action": {
"type": "string",
"title": "Action"
},
"resource": {
"type": "string",
"title": "Resource"
},
"arguments": {
"additionalProperties": true,
"type": "object",
"title": "Arguments",
"default": {}
},
"context": {
"additionalProperties": true,
"type": "object",
"title": "Context",
"default": {}
},
"ttl_seconds": {
"type": "number",
"title": "Ttl Seconds",
"default": 30.0
}
},
"type": "object",
"required": [
"agent_id",
"tenant",
"grant_id",
"intent",
"tool",
"action",
"resource"
],
"title": "TokenReq"
}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