Not able to get the historical data through Fyers API

I am trying to fetch the historical data through Fyers API. This is the API request https://api-t1.fyers.in/data/history?symbol=NSE:SBIN-EQ&resolution=30&date_format=1&range_from=2021-01-01&range_to=2021-01-02
and
the app_id & access token is passed as the header in the format app_id:access_token.

I am getting the following response:

{
"code": -403,
"message": "You do not have permission to access this application",
"s": "error"
}

I have added historical data permission to the app I created. Is I am missing something?

Hello @divyanshu.agrawal.w4wc0lqu, please enable all permissions for the developer app in the FYERS dashboard, then regenerate the access token and try fetching the historical data. Let me know if I can assist you further.

Thanks!
I tried the above approach but that didn’t worked.
When I created a new app with all the permissions and that worked.

@divyanshu.agrawal.w4wc0lqu, thank you for the update. Happy Trading!