Revoke token

OAuth API
DELETEhttps://api.mollie.com/oauth2/tokens

Authentication: OAuth client credentials

Revoke an access- or a refresh token. Once revoked the token can not be used anymore.

Warning

When you revoke a refresh token, all access tokens based on the same authorization grant will be revoked as well.

Parameters

token_type_hintstringrequired

Type of the token you want to revoke.

Possible values: access_token refresh_token

tokenstringrequired
The token you want to revoke

Response

204 No Content

Example

cURLPHPPythonRubyNode.js
1
2
3
curl -u client_id:client_secret
 -X DELETE https://api.mollie.com/oauth2/tokens \
 -d "token_type_hint=refresh_token&token=refresh_FS4xc3Mgci2xQ5s5DzaLXh3HhaTZOP"
1
2
3
4
We don't have a PHP code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ
1
2
3
4
We don't have a Python code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ
1
2
3
4
We don't have a Ruby code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ
1
2
3
4
We don't have a Node.js code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ