Legacy A2A gateway - JSON-RPC 2.0 dispatch (POST)
Backward-compatible legacy JSON-RPC 2.0 gateway. The body MUST
include params.id (the target agent ID); the gateway forwards
the call to POST /v1/agents/{agentId}/a2a. Returns the
forwarded JSON-RPC response or a JSON-RPC error envelope.
Recognised methods on the underlying per-agent endpoint:
message/send, message/stream, tasks/get, tasks/cancel,
tasks/sendSubscribe, agent/getCard, agent/getExtendedCard.
Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Body
Legacy /v1/a2a JSON-RPC request. params.id MUST be present -
it identifies the target agent for gateway dispatch.
Response
JSON-RPC 2.0 response. result is the forwarded result
envelope; alternatively error carries a JSON-RPC error
object when the dispatch failed.