question

Upvotes
Accepted
1 0 0 1

Refinitiv API to get token isnt working

Hi Team,


I tried the API playground to get the token and receive below error. Can you confirm if the usage is correct?


curl --location https://api.refinitiv.com/auth/oauth2/v1/token --header "authorization;" --header "content-type: application/x-www-form-urlencoded" --header "accept: application/json" --data "grant_type=password&username=****&scope=trapi&client_id=****&password=xxxxxxx"



username: -removed by AHS-

client_id: -removed by AHS-

#productrequest-token
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
23.6k 61 15 21

Hello @shivaramane.sampath,

The token endpoint cannot be used from the API playground. You can use the token REST API calls to get token from other technologies - like Postman, Python, Java, C#, curl etc

Please see the Python and postman examples in the tutorials section.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.