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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 1 4

[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.

hi @kyle.moon

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

@kyle.moon

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
78.8k 250 52 74

@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 1 4

@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.

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.