For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 3

[RESTAPI V1] Simple Auth Check fails

POST https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken

With the above, I have successfully created an Authentication Token ("value" from the successful response) following the REST API tutorial.


However, it fails when I try to check auth providing my Authorization Token as below

GET https://selectapi.datascope.refinitiv.com/RestApi/v1/Users/Users(1111111)

With header as

Authorization: Token <"_Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">

or

Authorization: Token <_Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>


I keep getting

{
    "error": {
        "message": "Authentication request failed because of invalid token"
    }
}


ps. It works when I visit https://selectapi.datascope.refinitiv.com/RestApi/v1/Users/Users(1111111) on Chrome and type my id and password manually.



dss-rest-apitick-history-rest-apirest-api
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.

Upvotes
Accepted
53k 137 44 63

@kyle.moon

Please make sure that it doesn't have angle brackets (<...>).

1653985413691.png




1653985413691.png (48.9 KiB)
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.

Upvotes
1 0 0 3

@Jirapongse Works now, thanks!

I got confused by the below documentation :\

1653986450313.png



1653986450313.png (92.7 KiB)
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.

@kyle.moon

Please share the link to the document so we can correct it.