Skip to main content
GET
/
v1
/
principal
/
grants
List principal's active grants
curl --request GET \
  --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/principal/grants \
  --header 'Authorization: <authorization>'
{
  "grants": [
    {
      "grantId": "<string>",
      "agentId": "<string>",
      "agentName": "<string>",
      "agentDescription": "<string>",
      "agentDid": "<string>",
      "scopes": [
        "<string>"
      ],
      "status": "<string>",
      "issuedAt": "2023-11-07T05:31:56Z",
      "expiresAt": "2023-11-07T05:31:56Z",
      "delegationDepth": 123
    }
  ],
  "principalId": "<string>"
}

Headers

Authorization
string
required

Bearer

Response

List of active grants

grants
object[]
principalId
string