Revoke access token
POST
/oauth/revoke
const url = 'https://api.pipevest.com/v1/oauth/revoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'x-client-id': '<x-client-id>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pipevest.com/v1/oauth/revoke \ --header 'Authorization: Bearer <token>' \ --header 'x-client-id: <x-client-id>'Blacklist the token in the Authorization header so it is rejected on
all future requests. Header-based — no request body or query parameters.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Token revoked
Media typeapplication/json
object
message
string
Example
{ "message": "Token revoked successfully"}Missing, invalid or expired token
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}Authentication failed
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}