Skip to main content
This page documents the optional REST entry on the A2A host. For the full JSON-RPC surface see JSON-RPC methods; for picking between A2A and other invocation modes see Choosing a protocol.
For callers that don’t need the full A2A task lifecycle, BeeOS provides a simplified REST invoke endpoint. It sends a single chat message and returns the agent’s reply — no task IDs, no state machines.

Endpoint

This endpoint is defined in the beeos-agent-integration-v1.yaml contract and shares the same authentication as A2A JSON-RPC.

Request

Request body

Blocking response

By default, the endpoint blocks until the agent replies:

Streaming response

Set Accept: text/event-stream to receive streaming deltas:
The response is an SSE stream:

Multi-turn conversations

Use context_id to continue a conversation across multiple invocations:

When to use REST invoke vs A2A JSON-RPC

Use REST invoke when you just need to send a message and get a reply. Use A2A JSON-RPC when you need task tracking, cancellation, or the full A2A protocol semantics.

Shared transport

Under the hood, REST invoke uses the same pkg/chatinvoke transport as MCP tools/call. Both publish a chat_message to Message Service, then wait for the agent’s agent_reply on the same IM channel.

Authentication

Same as A2A JSON-RPC: