Get Token API not working.

I tried the /auth/oauth2/v1/token in API playground, but the request is always not successful. See image below:


image


The client_id I used is generated from APP KEY(Eikon App Key Generator). Please help.


Best Answer

  • Hi @filip.shu,

    I would recommend you follow the simple Quick Start tutorial to test your user credentials. I too was unable to fetch a token using the Playground interface and I know my credentials work. Perhaps I'm missing a step or the service may not be working. I will follow up and post an update here.

Answers

  • Thanks, let me try it out.

  • Posting it just for reference, this due to CORS policy.

    In the case of the EDP API Gateway, the origin for API Playground may be something like https://apidocs.refinitiv.com. When a user clicks "Send" on API Playground a request is then sent to the API Gateway at https://api.refinitiv.com. A modern browser will prevent this Cross-Origin request from occurring, unless you have correctly configured your Swagger and back-end. This is to prevent some forms of cross-site request forgery attacks.

    capture.png

    Related page from confluence -