cURL
curl --request POST \
--url http://localhost:4100/v1/agents/api/budget-builds/{buildId}/commit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountId: '<string>'})
};
fetch('http://localhost:4100/v1/agents/api/budget-builds/{buildId}/commit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"chainId": 8453,
"label": "<string>",
"status": "active",
"asset": {
"symbol": "USDC",
"address": "<string>",
"decimals": 6
},
"perCallMax": "<string>",
"maxCalls": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"budgets": [
{
"amount": "<string>",
"period": "total"
}
],
"categories": [
"search"
],
"categoryBudgets": [
{
"category": "search",
"budgets": [
{
"amount": "<string>",
"period": "day"
}
]
}
],
"velocity": {
"calls": 123,
"perSeconds": 123
},
"confirmAbove": "<string>",
"scopeMode": "catalog",
"scope": [
{
"providerId": "<string>",
"endpointIds": [
"<string>"
],
"perCallMax": "<string>",
"budgets": [
{
"amount": "<string>",
"period": "total"
}
]
}
],
"committed": {
"perCallMax": "<string>",
"maxCalls": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"epoch": 123,
"token": "<string>",
"txHash": "<string>",
"committedAt": "2023-11-07T05:31:56Z"
}
}Agent API
Post v1agentsapibudget builds commit
Browser owner 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/budget-builds/{buildId}/commit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountId: '<string>'})
};
fetch('http://localhost:4100/v1/agents/api/budget-builds/{buildId}/commit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"chainId": 8453,
"label": "<string>",
"status": "active",
"asset": {
"symbol": "USDC",
"address": "<string>",
"decimals": 6
},
"perCallMax": "<string>",
"maxCalls": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"budgets": [
{
"amount": "<string>",
"period": "total"
}
],
"categories": [
"search"
],
"categoryBudgets": [
{
"category": "search",
"budgets": [
{
"amount": "<string>",
"period": "day"
}
]
}
],
"velocity": {
"calls": 123,
"perSeconds": 123
},
"confirmAbove": "<string>",
"scopeMode": "catalog",
"scope": [
{
"providerId": "<string>",
"endpointIds": [
"<string>"
],
"perCallMax": "<string>",
"budgets": [
{
"amount": "<string>",
"period": "total"
}
]
}
],
"committed": {
"perCallMax": "<string>",
"maxCalls": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"epoch": 123,
"token": "<string>",
"txHash": "<string>",
"committedAt": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json
Response
Current authoritative state or accepted request.