Revoke a token
curl --request POST \
--url https://api.vegaminds.com/oauth/revoke \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'token=<string>' \
--data 'client_id=<string>' \
--data 'client_secret=<string>'import requests
url = "https://api.vegaminds.com/oauth/revoke"
payload = {
"token": "<string>",
"client_id": "<string>",
"client_secret": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({token: '<string>', client_id: '<string>', client_secret: '<string>'})
};
fetch('https://api.vegaminds.com/oauth/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>",
"error_description": "<string>"
}{
"error": "invalid_client",
"error_description": "Client authentication failed: unknown client_id or wrong client_secret."
}Authorization
Revoke a token
Revoking a refresh token ends the connection, and its access tokens stop working. Revoking an access token ends
that token only. Answers 200 for a token that is unknown or already revoked (RFC 7009). The client
authenticates as for POST /oauth/token.
POST
/
revoke
Revoke a token
curl --request POST \
--url https://api.vegaminds.com/oauth/revoke \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'token=<string>' \
--data 'client_id=<string>' \
--data 'client_secret=<string>'import requests
url = "https://api.vegaminds.com/oauth/revoke"
payload = {
"token": "<string>",
"client_id": "<string>",
"client_secret": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({token: '<string>', client_id: '<string>', client_secret: '<string>'})
};
fetch('https://api.vegaminds.com/oauth/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>",
"error_description": "<string>"
}{
"error": "invalid_client",
"error_description": "Client authentication failed: unknown client_id or wrong client_secret."
}Authorizations
Body
application/x-www-form-urlencoded
Response
The token is revoked, or was not valid.

