Incorrect `api_key` or `access_token`

xameeramir
xameeramir edited March 2019 in API clients
Following the below steps:
  • created a new app at https://developers.kite.trade/apps
  • obtained the `API key` from the app details page
  • obtained the `API secret` from the app details page
  • calling the holdings API using curl like this:
curl -X GET https://api.kite.trade/portfolio/holdings -H 'Authorization: token <API key>:<API secret>' -H 'X-Kite-Version: 3'
All the steps look correct to me however I'm getting the following error:
{
"status": "error",
"message": "Incorrect `api_key` or `access_token`.",
"data": null,
"error_type": "TokenException"
}
I regenerated the `API secret` 3 times from the app details console.
Tagged:
Sign In or Register to comment.