Retrieve all active application grants for the user. A logto-verification-id in header is required for checking grant details.
Query parameters
-
Optional application type filter. Use 'firstParty' to return grants from first-party applications only, or 'thirdParty' for third-party applications only.
Values are
firstPartyorthirdParty.
Responses
-
Return a list of active application grants of the user.
-
Bad Request
-
Permission denied, recent user authentication is required or the access token does not include the
sessionsscope to access grant details. -
Permission denied, the application is a third-party application. Account API operations that require recent authentication only accept first-party applications.
-
Internal Server Error
GET
/api/my-account/grants
curl \
--request GET 'https://[tenant_id].logto.app/api/my-account/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,
"application": {
"id": "string",
"name": "string"
}
}
]
}