cURL
curl --request POST \
--url http://localhost:4100/v1/agents/api/calls/{requirementId}/relay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"signature": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({signature: '<string>'})
};
fetch('http://localhost:4100/v1/agents/api/calls/{requirementId}/relay', 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
Post v1agentsapicalls relay
Connected agent session required. Available only when the Base Agent API runtime gate is enabled and verified.
cURL
curl --request POST \
--url http://localhost:4100/v1/agents/api/calls/{requirementId}/relay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"signature": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({signature: '<string>'})
};
fetch('http://localhost:4100/v1/agents/api/calls/{requirementId}/relay', 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.