cURL
curl --request GET \
--url http://localhost:4100/v1/agents/api/mandates/{agentId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/mandates/{agentId}', 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
Get v1agentsapimandates 1
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/mandates/{agentId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/api/mandates/{agentId}', 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
Response
Current authoritative state or accepted request.