The error message indicates that your access token is invalid. Could tou please regenerate your access token and try again.
Could you check which API you used for the first call? If you used the Historical Candle API, keep in mind it’s an open API and doesn’t require an access token. This means you’d still receive data even if the access token is invalid.