cURL
curl --request GET \
--url http://localhost:4100/v1/agents/api/calls/{requirementId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/calls/{requirementId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"requirementId": "<string>",
"state": "available",
"approval": "open",
"resolution": {
"kind": "settled",
"txHash": "<string>",
"blockNumber": "<string>",
"blockHash": "<string>"
},
"report": {
"providerStatus": 123,
"response": "<unknown>"
},
"evidence": {
"kind": "settled",
"txHash": "<string>",
"blockNumber": "<string>",
"blockHash": "<string>"
}
}Agent API
Get v1agentsapicalls
Connected agent session required. Available only when the Base Agent API runtime gate is enabled and verified.
cURL
curl --request GET \
--url http://localhost:4100/v1/agents/api/calls/{requirementId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/calls/{requirementId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"requirementId": "<string>",
"state": "available",
"approval": "open",
"resolution": {
"kind": "settled",
"txHash": "<string>",
"blockNumber": "<string>",
"blockHash": "<string>"
},
"report": {
"providerStatus": 123,
"response": "<unknown>"
},
"evidence": {
"kind": "settled",
"txHash": "<string>",
"blockNumber": "<string>",
"blockHash": "<string>"
}
}Authorizations
Response
Current authoritative state or accepted request.