CAIN-42 MCPGate

API reference · CAIN AGI Control Boundary

Agi Submit Proposal

POST /fabric/agi/propose

Last reviewed 2026-11-06

POST /fabric/agi/propose

Runs a proposal through the real, full ControlBoundary pipeline, including the last-mile enforcement stage. `agent_id` must already be a registered ACTIVE identity in this tenant (see the CAIN Identity API) holding capability `tool:{action_verb}` -- this endpoint grants no authority of its own, it only evaluates what identity_engine already says the caller has.

Request body

SubmitProposalRequest (required)

FieldTypeMeaning
agent_id requiredstringmin length 1
action_verb requiredstringmin length 1 · max length 255
target_resource requiredstringmin length 1 · max length 2048
argumentsobject
intent requiredstringmin length 1 · max length 4096
confidencenumberdefault 1.0
memory_refsarray of string
claimsobject
plan_idstringdefault ""
step_indexintegerdefault 0
signature_b64string or null
public_key_b64string or null
session_idstring or null
proposal_idstring or nullpattern ^urn:cain:agi-proposal:[0-9a-f]{24,64}$

Responses

StatusMeaningBody
200Successful ResponseJSON
401The X-API-Key header is missing, or the key is unknown, revoked or replaced.Error
403The key is valid but may not do this (for example an agent key approving its own held action).Error
422Validation ErrorHTTPValidationError
429Rate limit or monthly quota reached. Wait for the number of seconds in Retry-After when it is sent.Error

Try it

This call changes data in the account the key belongs to.

The request goes from your browser straight to this site. Your key is not stored unless you tick the box, and then only in this tab's session storage.

Code

curl -sS -X POST 'https://cainstudio.online/fabric/agi/propose' \
  -H "X-API-Key: $CAIN_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"agent_id": "agent-id", "action_verb": "action-verb", "target_resource": "target-resource", "intent": "intent", "confidence": 1.0, "plan_id": "", "step_index": 0}'

Schemas used

Error · HTTPValidationError · SubmitProposalRequest · ValidationError

← Agi Evidence Chain Cef · all 4 CAIN AGI Control Boundary calls · Agi Sandbox Tools →

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 30-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