API
Revoke a refresh token (RFC 7009)
POST
/auth/cli/revoke
const url = 'https://mw.omazy.ai/api/v1/auth/cli/revoke';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({token: 'example'})};
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://mw.omazy.ai/api/v1/auth/cli/revoke \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data token=exampleIdempotent — returns 200 even when the token was already invalid. Revokes the entire family on success.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
token
required
Refresh token to revoke
string
Examplegenerated
token=exampleResponses
Section titled “Responses”No body
Bad Request
Media type*/*
object
error
string
error_description
string