Revoke the current user's consent for a client.
curl --request DELETE \ --url https://auth.example.com/api/user/consents/example \ --header 'Authorization: Bearer <token>'Records the withdrawal, revokes the authenticated user’s refresh tokens for the requested client, then deletes the consent, records consent history, and publishes a consent revoked event. From the withdrawal on, the token endpoint refuses refresh tokens and grants (authorization codes, device and CIBA requests) issued before it. If any step fails the request fails and the consent is kept, so a retry completes it.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Successful JSON response.
object
Example
{ "success": true, "accessTokensRevoked": 0, "refreshTokensRevoked": 1, "revokedAt": 1770000000000}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}