change password API

Hi team,

We extract realtime data using Python with Refinitiv Data Library. We have a Machine ID, appkey and password. We now get a message saying "Password is expired. input NewPassword field to change password".

Is there a website where we can set and change this password? Or do we need to do this in the API?

Can you please help us here - as we are unable to retrieve data now.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @VFM

    Thank you for reaching out to us. You can change the password with the following HTTP RDP APIs call

    curl --location 'https://api.refinitiv.com/auth/oauth2/v1/token' \
    --header 'Accept: application/json' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --data-urlencode 'username=<Machine ID>' \
    --data-urlencode 'password=<Current Password>' \
    --data-urlencode 'takeExclusiveSignOnControl=true' \
    --data-urlencode 'grant_type=password' \
    --data-urlencode 'scope=trapi' \
    --data-urlencode 'client_id=b4842f3904fb4a1fa18234796368799086c63541' \
    --data-urlencode 'newPassword=<New Password>'
    • The required parameter to change the password is the newPassword parameter

    There is the RDP APIs "passwordChange.py" example built on top of the HTTP REATful API above. The example is available on the RDP APIs download page (the Quickstart and Python tutorials source code, Python starter examples).


    I hope this information helps.