cURL
curl --request POST \ --url https://{tenant}/tyk/oauth/revoke_all \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'X-Tyk-Authorization: <api-key>' \ --data client_id=2a06b398c17f46908de3dffcb71ef87df \ --data client_secret=MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0 \ --data org_id=6492f66e6ebbc56c6a6bf022
{ "message": "tokens revoked successfully", "status": "ok" }
Revoke all the tokens for a given oauth client
Api key
id of oauth client
"2a06b398c17f46908de3dffcb71ef87df"
OAuth client secret to ensure that its a valid operation
"MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"
"6492f66e6ebbc56c6a6bf022"
tokens revoked
Was this page helpful?