POST
/
tyk
/
oauth
/
revoke_all
Revoke all client's tokens
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"
}

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Body

application/x-www-form-urlencoded
client_id
string
required

id of oauth client

Example:

"2a06b398c17f46908de3dffcb71ef87df"

client_secret
string
required

OAuth client secret to ensure that its a valid operation

Example:

"MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"

org_id
string
Example:

"6492f66e6ebbc56c6a6bf022"

Response

tokens revoked

message
string
status
string