OAuth token revocation
POST
/oauth/revoke
const url = 'https://api.deploybase.eu/api/v1/oauth/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://api.deploybase.eu/api/v1/oauth/revoke \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data token=exampleRevokes the agent connection a dba_ or dbr_ token belongs to. Always answers 200 with an empty body, whether or not the token was known (RFC 7009).
Parameters
Section titled “ Parameters ”FormData Parameters
Section titled “ FormData Parameters ” token
required
string
The token to revoke
token_type_hint
string
Access_token or refresh_token
client_id
string
Client id; must match the connection when given
Responses
Section titled “ Responses ”Always
Live a8b7eb1d built