Insufficient permission for that call when i tried historical data api

aswin1231
var kc = new KiteConnect({
api_key: ZERODHA_API_KEY,
});
kc.setAccessToken(access_token);
const instrumentToken = "256265"; // e.g., '256265' for NIFTY 50
const fromDate = "2024-02-01"; // Start date in YYYY-MM-DD format
const toDate = "2024-02-10"; // End date in YYYY-MM-DD format
const interval = "day"; // Could be "3minute", "5minute", "day" etc.

const result = await kc.getHistoricalData(instrumentToken, interval, fromDate, toDate, false, false)
console.log(result)

```
{
status: 'error',
message: 'Insufficient permission for that call.',
data: null,
error_type: 'PermissionException'
}
```
This discussion has been closed.