Revoke Token in Websocket API

Hi team,


Recently I tried using the https://api.refinitiv.com/auth/oauth2/v1/revoke url in the API playground and tried to revoke my refresh-token obtained in the the authentication step. I get an Internal Server Error, code:500.

I tried the same in Postman tool with the EDP Collection obtained from Websocket API page and get the same.

{
    "error": "server_error"
}

Can you please let me know what might be the issue here? And also what is the correct way to revoke a user's token?

Does this API need to be passed an access_token or the refresh_token in the "token" parameter?


Thank you,

Bansal

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @bansalshah,

    The contents of the body within the POST message you send should contain:

    {
         "client_id"="<Your Machine ID>", 
         "token"="<Your Refresh Token>", 
         "token_type_hint"="refresh_token"
    }

Answers

  • Hello @bansalshah

    Additionally, the Refinitiv Real-Time Optimize (formerly known as ERT in Cloud) uses the RDP APIs Auth service for authentication. You can find a full explanation about how the RDP token works and example in the following resources: