DH-901 and DH-905

I’m trying to fetch historical data using the DhanHQ API but encountering an error, even though the same credentials successfully fetch holdings."

Let me know if you want it to sound more casual or technical!
{
“securityId”: “1333”,
“exchangeSegment”:“NSE_EQ”,
“instrument”: “INDEX”,
“expiryCode”: 0,
“oi”: false,
“fromDate”: “2022-01-08”,
“toDate”: “2022-02-08”
}

{
“errorType”: “Invalid_Authentication”,
“errorCode”: “DH-901”,
“errorMessage”: “Client ID or user generated access token is invalid or expired.”
}