curl --request POST \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/a2a \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "<string>",
"params": {
"id": "<string>"
},
"id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', method: '<string>', params: {id: '<string>'}, id: '<string>'})
};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/a2a', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/a2a"
payload = {
"jsonrpc": "2.0",
"method": "<string>",
"params": { "id": "<string>" },
"id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jsonrpc": "2.0",
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "<string>"
},
"id": "<string>"
}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.
curl --request POST \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/a2a \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "<string>",
"params": {
"id": "<string>"
},
"id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', method: '<string>', params: {id: '<string>'}, id: '<string>'})
};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/a2a', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/a2a"
payload = {
"jsonrpc": "2.0",
"method": "<string>",
"params": { "id": "<string>" },
"id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jsonrpc": "2.0",
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "<string>"
},
"id": "<string>"
}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.
2.0 A2A method name (e.g. message/send, tasks/get).
64JSON-RPC request id - echoed back in the response.
128Response
JSON-RPC 2.0 response. result is the forwarded result
envelope; alternatively error carries a JSON-RPC error
object when the dispatch failed.
Was this page helpful?