Issue with TOTP and API Authentication
-
Dear Team,
I am trying to get historical/live data using the API. As per the API payload requirement, I need to pass the TOTP (Time-based One-Time Password) for authentication. Below is the API endpoint and payload format I am using:
{
"clientcode": "CLIENT_ID",
"password": "CLIENT_PIN",
"totp": "TOTP_CODE",
"state": "STATE_VARIABLE"
}As per above payload totp is required field, I tried to create it from "https://smartapi.angelbroking.com/" >> "Enable TOTP".
I used below credentials to generate it.
user - myEmailId
password - web password / app login codeI tried both combination but i am facing below issue
Error:
LoginbyPassword is not allowed. Please switch to Login by MPIN now.
Something Went Wrong, Please Try After SometimeThis issue is completely blocking my progress, and I am unable to move forward.
I would appreciate it if you could resolve this issue as soon as possible. Thank you for your support.Best regards,
-
@gulshansaini without client id, you won't be able to log in. Please wait till you get your account details.
-
@Moderator_3 I am also facing same issue. The point is that you have checks enabled which don,t allow me to have password less than 8 characters.
Not sure why the flow is broken mentioned on https://smartapi.angelbroking.com/topic/2377/guide-to-secure-your-smartapi-account-with-two-factor-authentication.
You should allow me to login and create MPIN inside my profile. I just signed up and do not have client ID.
-
Hi @mydomain
If password length exceed 4 characters then you have switch to MPIN. You will get msg like "LoginbyPassword is not allowed. Please switch to Login by MPIN now".
Please share client code & length of your password.
Regards, SmartAPI Team.