Unauthorized errror

My curl coomands are working fine but my GET request in java is giving Invalid token
401 Unauthorized: [{“detail”:“Invalid token.”}]"}
I have copied the token and even rechecked it 3 times

Are you passing token by adding it to a parameter object or hardcoding it in the API to be fetched?

Check the syntax at https://api.tiingo.com/documentation/end-of-day

Kindly read the API documention and look for any potential errors. You must have misplaced the token. First try the same API call on Postman then proceed forward to write in your RestTemplate API call.

hardcoding it in API as given in TODO

hardcode your TOKEN!
Use postman and see how the response is coming. If your URL works there just copy-paste it (with some updations).