Retrieve all non-expired grants of the user. Optionally filter by application type via appType; when omitted, grants from all application types are returned.
GET
/api/users/{userId}/grants
curl \
--request GET 'https://[tenant_id].logto.app/api/users/{userId}/grants' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"grants": [
{
"id": "string",
"payload": {
"exp": 42.0,
"iat": 42.0,
"jti": "string",
"kind": "string",
"clientId": "string",
"accountId": "string"
},
"expiresAt": 42.0
}
]
}