Navigation

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

    Error AG8001

    General Discussion
    error
    4
    21
    496
    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.
    • S
      sanyamm3 last edited by

      @admin
      Please resolve Error AG8001 issue, My account S1269961

      1 Reply Last reply Reply Quote 0
      • N
        nit_pusa last edited by

        Hi @admin i am getting the same error

        {'success': False,
        'message': 'Invalid Token',
        'errorCode': 'AG8001',
        'data': ''}
        My user id is N493899.
        Please look into it at the earliest
        p.s. I was able to get the historical data a few days ago but now suddendly its not working

        M 1 Reply Last reply Reply Quote 0
        • Y
          yrj.panchal @mr_heman last edited by

          @mr_heman Exactly nothing metioned apart from it.

          1 Reply Last reply Reply Quote 0
          • S
            SrikanthG last edited by

            Team @admin

            We are getting error "message=Unauthorized access. Please provide a valid or non-expired jwtToken., code=AG8001" while accessing Historical API with following params "{"todate":"2023-11-29 04:04","exchange":"NFO","interval":"FIVE_MINUTE","symboltoken":"58279","fromdate":"2023-11-20 04:04"}" using java sdk.

            I am able to login and get LTP, Position, RMS. However historical Data fails with exception and i was able to fetch the same until few hours back. Could you please inform if there is any maintenance activity or is it account related?

            Client ID: SOTB1104

            Thanks,
            SG

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

              Hi @mr_heman

              Apologies for delayed response.
              User Login is necessary to consume our Smart API calls.
              Please refer the below documentation
              https://smartapi.angelbroking.com/docs/User

              Thanks & Regards,
              SmartAPI team

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

                Hi @nit_pusa @sanyamm3 @vrkhyd @stevejmotha @v232617 ,

                Apologies for delayed response.
                Kindly share us the API endpoint, request and response if the issue still persists.

                Thanks & Regards,
                SmartAPI team

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

                  Hi @SrikanthG,

                  Apologies for delayed response.
                  The error code AG8001 represents the invalid token. Kindly verify on the headers, if the Authorization token has expired the above message will be pushed.
                  Please try passing the recently fetched token after login.

                  Thanks & Regards,
                  SmartAPI team

                  1 Reply Last reply Reply Quote 0
                  • R
                    ronak5895 last edited by

                    Getting an error code. Even if I login and connect it in the morning at times it states invalid token with the error {"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}. its happening very frequently and my orders are not getting triggered due to this!

                    1 Reply Last reply Reply Quote 0
                    • S
                      santhu511 last edited by

                      Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

                      my client id is : S57924513

                      1 Reply Last reply Reply Quote 0
                      • R
                        R226967 last edited by

                        I am having same issue with my api
                        {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

                        Client ID: R226967

                        please solve this

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