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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 0

DSS Rest API

Getting 401 Authorisation error in less than an hour time although authorization is valid for 24 hours. Please advise?

dss-rest-apierror-401
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
81.1k 264 53 76

@dibya.keshari

It looks like this:

GET https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/ValidateToken(Token='<token>') 

1667383875285.png

However, the REST API Reference Tree indicates that this method is deprecated.

1667383967311.png


1667383875285.png (109.0 KiB)
1667383967311.png (76.6 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.

As mentioned in above snapshot, this method is deprecated and suggested we should not use this, so could u please provide another url ?

Upvote
23.1k 60 15 21

Hi @dibya.keshari,

What expiry time do you see when you validate the token using /Authentication/ValidateToken endpoint?

I tried and see that my token expires exactly after 24 hours. If yours is different, you can raise a ticket with product support at my.refinitiv.com to understand why it is so.

{
  "@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#DataScope.Select.Api.Authentication.ValidateTokenResult",
  "IsValid": true,
  "Expires": "2022-10-21T13:42:33.526Z"
}



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.

We have tried but not able to get the expected result due to not having correct payload against this url. So, could you please share full payload along with header details. Please find the below snapshot -


1667380577822.png

1667380577822.png (22.2 KiB)
Upvotes
1 0 0 0

As mentioned in above snapshot, this method is deprecated and suggested we should not use this, so could u please provide another url ?

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
81.1k 264 53 76

@dibya.keshari

I checked and found that it doesn't provide another URL to validate tokens, as mentioned in the description.

This method is deprecated. Please do not use. It will be removed at some point in the future. When using the toolkit, use the token to create a context. There are parameters on the context to handle an invalid token. When you are using the REST API without the toolkit, pass the token on the request header. If it is invalid, you will receive an authorization error. At this point you can call the RequestToken method to retrieve a new token and try the request again.

However, you can contact the DataScope Select support team directly via MyRefinitiv to confirm this.

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.