Navigation

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

    Issue with TOTP and API Authentication

    Test
    0
    4
    12
    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
      mydomain last edited by

      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 code

      I 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 Sometime

      This 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,

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @mydomain last edited by

        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.

        G 1 Reply Last reply Reply Quote 0
        • G
          gulshansaini @Moderator_3 last edited by

          @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.

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @gulshansaini last edited by

            @gulshansaini without client id, you won't be able to log in. Please wait till you get your account details.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post