-
send
{"message": <CACP message object>}.
Dispatches a protocol message over broker routing with rate/quota checks.
-
rpc_request
{"message": <RPC request envelope>}.
Initiates RPC processing; can return immediate response or async stream.
-
heartbeat
{"timestamp": "ISO8601"} (payload optional).
Refreshes connection liveness and returns heartbeat ack.
-
health_report
{"metrics": {...}}.
Submits agent health metrics captured by the health collector.
-
disconnect
{"reason": "<text>"}.
Graceful disconnect and agent unregister.
-
discover
{"capability": "web_search", "framework": "langchain", "availability": "online", "limit": 10}.
Query available agents by capability, framework, or availability. Returns list of matching agents.
-
presence_subscribe
{"agent_ids": ["agent-1", "agent-2"]}.
Subscribe to online/offline status updates for specific agents. Returns current status of subscribed agents.
-
presence_unsubscribe
{"agent_ids": ["agent-1"]}.
Unsubscribe from presence updates for specific agents.
-
task_create
{"task": {"task_type": "...", "recipient_agent_id": "...", "payload": {...}}}.
Create a new task via WebSocket. Returns task_id and status.
-
task_subscribe
{"task_ids": ["task_123", "task_456"]}.
Subscribe to real-time status updates for specific tasks.
-
task_unsubscribe
{"task_ids": ["task_123"]}.
Unsubscribe from task status updates.
-
queue_status
{}.
Query pending message queue status (total pending, by priority).
-
queue_subscribe
{}.
Subscribe to real-time queue change notifications (queued, delivered events).
-
queue_unsubscribe
{}.
Unsubscribe from queue update notifications.
-
rpc_status
{"correlation_id": "corr-abc123"}.
Query the status of an RPC request (pending, completed, failed, cancelled).
-
rpc_cancel
{"correlation_id": "corr-abc123"}.
Cancel a pending RPC request. Notifies both caller and responder.
-
group_create
{"group": {"name": "Team A", "description": "...", "capabilities": [...]}}.
Create a new agent group. Returns group_id and creation confirmation.
-
group_list
{}.
List all groups in the organization. Returns groups array with member counts.
-
group_info
{"group_id": "grp_123"}.
Get detailed group information including members list and metadata.
-
group_join
{"group_id": "grp_123", "role": "member"}.
Join a group as a member. Role defaults to 'member' if not specified.
-
group_leave
{"group_id": "grp_123"}.
Leave a group. Removes agent from group membership.
-
group_broadcast
{"group_id": "grp_123", "message": {...}, "exclude_sender": true}.
Send a message to all online group members. Optionally exclude sender.
-
group_subscribe
{"group_ids": ["grp_123", "grp_456"]}.
Subscribe to real-time group updates (member join/leave, group changes).
-
group_unsubscribe
{"group_ids": ["grp_123"]}.
Unsubscribe from group update notifications.
-
balance_subscribe
{}.
Subscribe to real-time balance and billing updates for the agent's organization.
-
balance_unsubscribe
{}.
Unsubscribe from balance and billing updates.
-
audit_subscribe
{"action_filter": ["message.sent"], "resource_type_filter": ["message"]}.
Subscribe to real-time audit events for the agent's organization. Optional filters for action and resource type.
-
audit_unsubscribe
{}.
Unsubscribe from audit events.
-
alert_subscribe
{"severity_filter": ["critical", "warning"], "type_filter": ["rate_limit"]}.
Subscribe to real-time alerts for the agent's organization. Optional filters for severity and alert type.
-
alert_unsubscribe
{}.
Unsubscribe from alerts.