cURL
curl --request GET \
--url http://localhost:4100/v1/agents/api/spend \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/spend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"rows": [
{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"chainId": 8453,
"providerId": "<string>",
"endpointId": "<string>",
"category": "search",
"status": "reserved",
"submissionId": "<string>",
"declineReason": "<string>",
"valueUnits": "<string>",
"asset": "<string>",
"payTo": "<string>",
"authorizationIndex": 123,
"epoch": 123,
"txHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"mandateId": "<string>"
}
],
"nextCursor": "<string>"
}Agent API
Get v1agentsapispend
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/spend \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/spend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"rows": [
{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"chainId": 8453,
"providerId": "<string>",
"endpointId": "<string>",
"category": "search",
"status": "reserved",
"submissionId": "<string>",
"declineReason": "<string>",
"valueUnits": "<string>",
"asset": "<string>",
"payTo": "<string>",
"authorizationIndex": 123,
"epoch": 123,
"txHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"mandateId": "<string>"
}
],
"nextCursor": "<string>"
}