cURL
curl --request POST \
--url http://localhost:4100/v1/agents/api/budgets/{agentId}/revoke-build \
--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/budgets/{agentId}/revoke-build', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"buildId": "<string>",
"step": "install_validator",
"intentType": "apis_budget_install",
"userOp": {
"chainId": 8453,
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"signature": "<string>",
"entryPoint": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterData": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>"
},
"userOpHash": "<string>",
"chainId": 8453,
"validator": "<string>",
"token": "<string>",
"epoch": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"humanSummary": "<string>",
"riskReducing": true,
"gasless": false
}Agent API
Post v1agentsapibudgets revoke build
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/budgets/{agentId}/revoke-build \
--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/budgets/{agentId}/revoke-build', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"buildId": "<string>",
"step": "install_validator",
"intentType": "apis_budget_install",
"userOp": {
"chainId": 8453,
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"signature": "<string>",
"entryPoint": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterData": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>"
},
"userOpHash": "<string>",
"chainId": 8453,
"validator": "<string>",
"token": "<string>",
"epoch": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"humanSummary": "<string>",
"riskReducing": true,
"gasless": false
}Authorizations
Body
application/json
Response
Current authoritative state or accepted request.