Docs / Integrations
Runtime API
Authorize, or authorize and execute, actions against registered MCP servers.
| Endpoint | Behavior |
|---|---|
POST /v1/runtime/actions/authorize | Decision only. Your code executes |
POST /v1/runtime/actions/execute | RaiCentral calls the MCP tool only when allowed |
GET /v1/runtime/approvals/{id}/status | Poll an approval |
curl -X POST $RAI_BASE_URL/v1/runtime/actions/execute \
-H "X-RAI-Agent-Key: $RAI_AGENT_KEY" -H "Content-Type: application/json" \
-d '{
"integration_type": "mcp",
"integration_id": "'$MCP_SERVER_ID'",
"tool_id": "'$TOOL_ID'",
"parameters": {"amount": 250, "currency": "USD"},
"environment": "DEVELOPMENT",
"idempotency_key": "order-81"
}'These endpoints take resource IDs, not tool names. For MCP tools, always send integration_type: "mcp" and the ID of the server the tool belongs to, so that server-scoped rules are matched.
An allowed request returns 200; anything else returns 403. The body includes allowed, effect, reason_code, human_explanation, receipt_id, approval_request_id, execution_attempted and execution_status.
In production, private hosts and plain HTTP MCP endpoints are blocked unless you allow them with MCP_ALLOW_PRIVATE_HOSTS and MCP_ALLOW_HTTP. Restrict destinations with MCP_ALLOWED_HOSTS.