Skip to content

Revoke access token

POST
/oauth/revoke
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.

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"
}