Navigation

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

    what is Bearer AUTHORIZATION_TOKEN

    Python SDK
    2
    12
    136
    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
      admin @rajeevth90 last edited by

      @rajeevth90 post your client id here to check if your account is migrated or not.

      R 1 Reply Last reply Reply Quote 0
      • R
        rajeevth90 @admin last edited by

        @admin GRGN8897, CAn you confirm how to get this token and how it is different from jwt and refresh token which is generated from login Request as below.

        conn.request("POST","/rest/auth/angelbroking/user/v1/loginByPassword",payload,headers)

        res = conn.getresponse()
        data = res.read()
        df = pd.read_json(data)
        print(df)
        print(data.decode("utf-8"))
        print(data)
        refreshToken = df.loc["refreshToken"][3]
        jwtToken = df.loc["jwtToken"][3]
        feedToken = df.loc["feedToken"][3]
        
        A 1 Reply Last reply Reply Quote 0
        • A
          admin @rajeevth90 last edited by

          Hi @rajeevth90 You will get the tokens after you call login api()

          A R 2 Replies Last reply Reply Quote 0
          • A
            admin @admin last edited by

            Hi @rajeevth90 follow below link for reference
            https://smartapi.angelbroking.com/topic/1194/basic-smartapi-integration-using-python

            T 1 Reply Last reply Reply Quote 0
            • R
              rajeevth90 @admin last edited by

              @admin I call login api and below tokens are generated.

              feedToken 090212090
              jwtToken eyJhbGciOiJIUzUxM
              refreshToken eyJhbGciOiJIUzUxMiJ9.eyJ0

              post that i am calling GETprofile, Which one of above is AUTHORIZATION TOKEN.

              A R 2 Replies Last reply Reply Quote 0
              • A
                admin @rajeevth90 last edited by

                @rajeevth90 said in what is Bearer AUTHORIZATION_TOKEN:

                post that i am calling GETprofile, Which one of above is AUTHORIZATION TOKEN.

                jwt token

                1 Reply Last reply Reply Quote 0
                • R
                  rajeevth90 @rajeevth90 last edited by

                  @admin , but as per ANGEL Documentation it should start with Bearer , so its not correct.
                  I have tried using jwt token as AUTHORIZATION_TOKEN still getting invalid token error.

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

                    @rajeevth90 post you client id here

                    1 Reply Last reply Reply Quote 0
                    • V
                      viksh112 last edited by

                      @admin please help me find out

                      https://apiconnect.angelbroking.com/rest/auth/angelbroking/jwt/v1/generateTokens

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        thiyagaraaj @viksh112 last edited by

                        @viksh112 this link is not working

                        1 Reply Last reply Reply Quote 0
                        • T
                          thiyagaraaj @admin last edited by

                          @admin this link does not work. many links that you posted already here is not working.

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