cURL
curl --request GET \
--url http://localhost:4100/v1/agents/api/approvals \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/approvals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"status": "open",
"raisedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"endpointId": "<string>",
"chainId": 8453,
"category": "search",
"valueUnits": "<string>",
"asset": "<string>",
"agentAddress": "<string>",
"accountAddress": "<string>"
}
]Agent API
Get v1agentsapiapprovals
Browser owner 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/approvals \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/approvals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"status": "open",
"raisedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"endpointId": "<string>",
"chainId": 8453,
"category": "search",
"valueUnits": "<string>",
"asset": "<string>",
"agentAddress": "<string>",
"accountAddress": "<string>"
}
]Authorizations
Response
Current authoritative state or accepted request.