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

Skip to main content

Revoke OAuth 2.0 Consent Sessions of a Subject

DELETE 

/admin/oauth2/auth/sessions/consent

This endpoint revokes a subject's granted consent sessions and invalidates all associated OAuth 2.0 Access Tokens. You may also only revoke sessions for a specific OAuth 2.0 Client ID.

SDK ReferenceTypeScript
revokeOAuth2ConsentSessions()
ParametersTypeRequiredDescription
subjectstringoptionalOAuth 2.0 Consent Subject The subject whose consent sessions should be deleted.
clientstringoptionalOAuth 2.0 Client ID If set, deletes only those consent sessions that have been granted to the specified OAuth 2.0 Client ID.
consentRequestIdstringoptionalConsent Request ID If set, revoke all token chains derived from this particular consent request ID.
allbooleanoptionalRevoke All Consent Sessions If set to `true` deletes all consent sessions by the Subject that have been granted.