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