Api login error


  • 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:

    {
      "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": ""
    }