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.

It must be signed, but it is the one mutating endpoint that takes no X-Idempotency-Key, so its signature base must not cover x-idempotency-key, content-type, content-digest or content-length.

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