kite API issue

dev567
{"status":"error","message":"Invalid `api_key`","data":null,"error_type":"InputException"}
kindly anyone suugest me to solve the above issue and moreover the API Key is correct recently bought
  • sujith
    Can you let us know for which API you got this issue?
  • dev567
    Hi @sujith i am currently using live api

    sample script for token

    try:
    kite = KiteConnect(api_key=Api_key)
    print("Generate access Token : ", kite.login_url())
    request_tkn = input("Enter Your Request Token Here : ")
    print('comes')
    data = kite.generate_session(request_tkn, api_secret=Api_secret)
    logger.info('Requested for new session.')
    kite.set_access_token(data["access_token"])
    kws = KiteTicker(Api_key, data["access_token"])
    print('Access_Token is :: ',data['access_token'])
    logger.info('Access Token is {}'.format(data['access_token']))


    and the requested login url is

    https://kite.trade/connect/login?api_key='HERE API'&v=3

    while clicking above url getting

    {"status":"error","message":"Invalid `api_key`","data":null,"error_type":"InputException"}

    if possible i want one clarification on deleting app will cause loss of 2000/ or not...

    Thank you in advance @sujith
  • sujith
    Yes, the credits are used for subscription. If you delete or cancel subscription, you will have to create new app or subscribe again.

    Are you sure the app is active?
  • dev567
    yes it is in active mode .Is there any problem with our Zerodha account id !!!!! for this issue @sujith
    and we should not delete the app ..right.

  • sujith
    There is no issue with Kite Connect. Can you private message the login URL you are trying to access with api_key?
Sign In or Register to comment.