Navigation

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

    Authorization TOKEN

    General Discussion
    0
    3
    42
    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.
    • K
      Kranthi last edited by

      Hi, when I call this API https://apiconnect.angelbroking.com/rest/secure/angelbroking/user/v1/getProfile, I am getting invalid token. Please confirm what has to be passed here 'Authorization': 'Bearer AUTHORIZATION_TOKEN' . Is it JWT token , refresh token or feed token. Please confirm at the earliest. I think you have to make it clear on the API documentation

      S 1 Reply Last reply Reply Quote 1
      • S
        sagarmonapara @Kranthi last edited by

        @Kranthi @admin Actually in the document there is no clear topic about authentication and what is the expiration time of those tokens. Just like you I have generated auth_token and refresh token but getProfile API says invalid token.

        I added our token to jwt.io site to check its expiration time and it show the 3 year of expiration of auth_token and no expiration for refresh_token

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

          Hi @Kranthi @sagarmonapara

          Apologies for delayed response.
          AUTHORIZATION_TOKEN expires on daily basis, we require the user to login everyday and pass the new retrieved token in order to consume the SmartAPI

          Thanks & Regards,
          SmartAPI team

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