cURL
curl --request GET \
--url http://localhost:4100/v1/agents/api/budgets/{agentId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/budgets/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"maxValue": "<string>",
"token": "<string>",
"expiresAt": 123,
"count": 123,
"epoch": 123,
"installNonce": 123,
"active": true
}Agent API
Get v1agentsapibudgets
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/budgets/{agentId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/budgets/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"maxValue": "<string>",
"token": "<string>",
"expiresAt": 123,
"count": 123,
"epoch": 123,
"installNonce": 123,
"active": true
}