cURL
curl --request GET \
--url http://localhost:4100/v1/agents/me/delegations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/me/delegations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "<string>",
"permissionId": "<string>",
"name": "<string>",
"kind": "grant",
"delegateeAddress": "<string>",
"chain": "<string>",
"chainId": 8453,
"status": "active",
"policySet": {},
"spentToDate": [
{}
],
"humanSummary": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"mandateId": "<string>",
"mandateVersion": 123,
"grantExecutor": "<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>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Delegations
Get v1agentsmedelegations
cURL
curl --request GET \
--url http://localhost:4100/v1/agents/me/delegations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/me/delegations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "<string>",
"permissionId": "<string>",
"name": "<string>",
"kind": "grant",
"delegateeAddress": "<string>",
"chain": "<string>",
"chainId": 8453,
"status": "active",
"policySet": {},
"spentToDate": [
{}
],
"humanSummary": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"mandateId": "<string>",
"mandateVersion": 123,
"grantExecutor": "<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>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Authorizations
Response
Live grants for this agent.