When I use my API, I am getting "Invalid Credentials" error. What do I do?

Choose a platform

Incase you are using a third-party platform, follow below steps-

  1. Generate a new valid Access Token. Update it in the platform and try again.

  2. Make sure the Consumer Key is correct.

  3. The UserID and Password must be that of your NEO Trading Account and not that of API webportal

If the problem persists, email us on neo.api@kotak.com

Kindly use the below guidelines if you're on a third-party platform:

  1. Generate a new valid Access Token. Update it on the platform and try again.

  2. Make sure the Consumer Key is correct.

  3. The UserID and Password must be that of your Trading Account and not that of API webportal

  4. For those developing their own code, follow the above steps. If it still doesn't work, try adding the below parameter to your ks_api.KSTradeAPI() function host = "https://ctradeapi.kotaksecurities.com/apim" . If the problem persists, email us on ks.apihelp@kotak.com

Kindly use the below guidelines if you're on a third-party platform. -

  1. Generate a new valid Access Token. Update it on the platform and try again.

  2. Make sure the Consumer Key is correct.

  3. The UserID and Password must be that of your Trading Account and not that of API webportal

  4. For those developing their own code, follow the above steps. If it still doesn't work, try adding the below parameter to your ks_api.KSTradeAPI() function host = "https://ctradeapi.kotaksecurities.com/apim" . If the problem persists, email us on ks.apihelp@kotak.com

This feature is not allowed for this platform.