New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

List OAuth 2.0 Consent Sessions of a Subject

GET 

/admin/oauth2/auth/sessions/consent

This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK.

SDK ReferenceTypeScript
listOAuth2ConsentSessions()
ParametersTypeRequiredDescription
subjectstringrequiredThe subject to list the consent sessions for.
pageSizenumberoptionalItems per Page This is the number of items per page to return. For details on pagination please head over to the pagination documentation.
pageTokenstringoptionalNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
loginSessionIdstringoptionalThe login session id to list the consent sessions for.
VariableType
dataArray<OAuth2ConsentSession>