Getting api key not found error.

yar.srikanth
{"status":"error","message":"Missing or invalid field `api_key`. Min length is 6.","data":null,"error_type":"InputException"}
  • RJ0958
    Facing same issue..for me too. Not able to login
  • sujith
    You seem to be using the old version of Kite Connect. You need to upgrade to Kite Connect 3.
    You can check out the documentation here.
  • RJ0958
    Was working fine till Friday. No change from my side.. but there might have been some changes from zerodha.
    1. Opened Web view with url : https://kite.trade/connect/login?v=3&api_key=
    2 Provided credentials..and answer to the questions
    3. Got the location : / request_token=qhGDMdpltLz8qwF8bylgUD42y5fqyFyi&action=login&status=success
    4. Extracted request_token, and Hashed api_key + request_token + api_secret and created Check sum
    5. Posted https://api.kite.trade/session/token?api_key="+api_key+"&request_token="+request_token+"&checksum="+checksum
    6. Got the response : {"status":"error","message":"Missing or invalid field `api_key`. Min length is 6.","data":null,"error_type":"InputException"}
    Where am I missing?
  • RJ0958
    Added header : X-Kite-Version: 3
    Send the api_key, request_token and checksum as post parameter instead of url append.
    Login successful ;-)
  • sujith
    The generateSession API call where you make the post request to get access token seems wrong. You can check out more information here.

    All the HTTP calls are authenticated based on the header auth keys from Kite Connect 3.
Sign In or Register to comment.