Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Api login error

    General Discussion
    1
    1
    6
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mayurgajjar999 last edited by mayurgajjar999

      Hello Everyone ,

      I am facing a persistent issue with the SmartAPI “LoginByPassword” API.
      I have followed all official documentation and community guidelines, but I always get "Invalid Token" as the response.

      Details:

      • Client ID: XXXXXXXXXX
      • API Key: XXXXXXXX (MarketFeedsAPI)
      • Endpoint Used: https://apiconnect.angelone.in/rest/auth/angelbroking/user/v1/loginByPassword
      • Request Method: POST
      • Headers:
        • Content-Type: application/json
        • Accept: application/json
        • X-Api-Key: XXXXXXXX
      • Request Body:
      {
        "clientcode": "XXXXXXXXXX",
        "password": "XXXX",      // (I am using my actual Angel One login PIN)
        "totp": "XXXXXX"                 // (Generated from iphone Authenticator, fresh code every time)
      }
      
      Still, I am always getting this response:
      {
        "success": false,
        "message": "Invalid Token",
        "errorCode": "AG8001",
        "data": ""
      }
      1 Reply Last reply Reply Quote 0
      • First post
        Last post