cURL
curl --request GET \
--url http://localhost:4100/v1/agents/{agentId}/mandates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/{agentId}/mandates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"label": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"versions": [
{
"version": 123,
"bounds": {
"budgets": [
{
"symbol": "<string>",
"amount": "<string>",
"period": "total"
}
],
"perActionMax": {
"symbol": "<string>",
"amount": "<string>"
},
"recipients": [
"<string>"
],
"venues": [
"<string>"
],
"allowedContract": "<string>",
"maxActions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"swapVenue": {
"router": "<string>",
"symbol": "<string>",
"maxAllowance": "<string>"
}
},
"boundsHash": "<string>",
"frozenAt": "2023-11-07T05:31:56Z",
"status": "draft"
}
]
}
]{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Mandates
Get v1agents mandates
cURL
curl --request GET \
--url http://localhost:4100/v1/agents/{agentId}/mandates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/{agentId}/mandates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "<string>",
"accountId": "<string>",
"agentId": "<string>",
"label": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"versions": [
{
"version": 123,
"bounds": {
"budgets": [
{
"symbol": "<string>",
"amount": "<string>",
"period": "total"
}
],
"perActionMax": {
"symbol": "<string>",
"amount": "<string>"
},
"recipients": [
"<string>"
],
"venues": [
"<string>"
],
"allowedContract": "<string>",
"maxActions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"swapVenue": {
"router": "<string>",
"symbol": "<string>",
"maxAllowance": "<string>"
}
},
"boundsHash": "<string>",
"frozenAt": "2023-11-07T05:31:56Z",
"status": "draft"
}
]
}
]{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}