Missing access_token error while trying to retrieve the parameters structure

hardik__
Hey,

I am trying to retrieve the parameters enum structure but when i do this i get

{"status": "error", "message": "Missing access_token", "error_type": "InputException"}

This is the call i am making.

"https://api.kite.trade/parameters?api_key=xxx"
  • sujith
    Hi @hardik__,
    You need to open login URL in a browser to enter credentials which will give you request token.
    Check out this webinar.
  • hardik__
    Hey @sujith

    I did that so you mean instead of api key i ll have to provide the request token which i get after the login?


    Thanks
  • hardik__
    Also i tried with the access token still not working
  • hardik__
    @sujith I tried with both the api key and the request token which i get after the login.

    Also for this api endpoint there is no example in the java connect client.

    Please help.
  • hardik__
    @sujith

    I provided both the api_key and the acess_token. This is the response i get back

    {"status": "error", "message": "Invalid session", "error_type": "TokenException"}
  • sujith
    Hi @hardik__,
    The request token is valid for one time and expires in a couple of minutes.
    Once you get access token store it in preference and use it. Don't request for access token every time you run the app.
    The access token is valid for one whole day.
Sign In or Register to comment.