Navigation

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

    Invalid token

    General Discussion
    0
    8
    45
    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.
    • A
      Asp9999 last edited by

      Hi team,

      I am trying to access the login endpoint but getting invalid token error.

      Client code:A246174

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @Asp9999 last edited by

        Hi @Asp9999

        Kindly reverify if the totp has been enabled, and mpin and totp has been passed properly and update if the issue still occurs
        Please let us know if you are trying to login for first time.

        Regards,
        SmartAPI team

        A 2 Replies Last reply Reply Quote 0
        • A
          Asp9999 @Moderator_2 last edited by

          @Moderator_2 Yes totp is enabled and login it for first time. still issue is occuring.

          1 Reply Last reply Reply Quote 0
          • A
            Asp9999 @Moderator_2 last edited by

            Hi @Moderator_2

            Issue is still same as its already enable totp and if i am not wrong mpin same which we use to generate it totp right and i am doing it for first time.

            A M 2 Replies Last reply Reply Quote 0
            • A
              Asp9999 @Asp9999 last edited by

              Screenshot 2024-04-01 at 7.45.40 PM.png @Asp9999 ![alt text](image url)Screenshot 2024-04-01 at 7.47.07 PM.png

              1 Reply Last reply Reply Quote 0
              • M
                Moderator_2 @Asp9999 last edited by

                Hi @Asp9999

                Apologies for the delayed response.
                Kindly reverify on the private key intiated on the API header and let us know if the issue still occurs.

                Regards,
                SmartAPI team

                A 1 Reply Last reply Reply Quote 0
                • A
                  Asp9999 @Moderator_2 last edited by

                  @Moderator_2 hi reverify same but still issue is occuring as 400 response.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Moderator_1 @Asp9999 last edited by

                    Hello @Asp9999,

                    Please change the value for X-UserType from User to USER. Please note that it is in all caps.

                    Thank you.

                    Regards
                    SmartAPI Team

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