Revoke token

Connect 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_hint

string
required

Type of the token you want to revoke.

Possible values: access_token refresh_token

token

string
required
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 open a pull request at:
https://github.com/mollie/api-documentation
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 open a pull request at:
https://github.com/mollie/api-documentation
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 open a pull request at:
https://github.com/mollie/api-documentation
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 open a pull request at:
https://github.com/mollie/api-documentation