A2A task snapshot (per-agent, GET)
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/a2a \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/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/agents/{agentId}/a2a"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"contextId": "<string>",
"status": {
"state": "working",
"timestamp": "<string>",
"message": {}
},
"history": [
{}
],
"artifacts": [
{}
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"terminal": true
}{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "<string>"
},
"id": "<string>"
}A2A
A2A task snapshot (per-agent, GET)
Per-agent A2A gateway snapshot endpoint. GET ?taskId=xxx
validates the task belongs to this agent then forwards to
getTaskSnapshot. Returns a JSON-RPC error envelope when the
task does not belong to the agent.
GET
/
v1
/
agents
/
{agentId}
/
a2a
A2A task snapshot (per-agent, GET)
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/a2a \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/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/agents/{agentId}/a2a"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"contextId": "<string>",
"status": {
"state": "working",
"timestamp": "<string>",
"message": {}
},
"history": [
{}
],
"artifacts": [
{}
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"terminal": true
}{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "<string>"
},
"id": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuth
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).
Path Parameters
Maximum string length:
64Query Parameters
Maximum string length:
128Response
Task snapshot.
A2A task record.
True when state is completed, canceled, or failed.
Was this page helpful?