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.
    • Y
      yash12392 @mr_heman last edited by

      @mr_heman AG8001 relates to Invalid Token.
      All details are available here.

      https://smartapi.angelbroking.com/docs/Exceptions

      I assume you need to authenticate your account to get any historical data.

      M 1 Reply Last reply Reply Quote 0
      • R
        rahul4019 last edited by

        hello @admin i am also trying to use the historical API.
        getting-
        {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}
        Any idea why i get this error?
        Is there any maintenance activity going on?

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

          @yash12392 Thanks. The error code description doesn't mention anything, except the title of error "invalid token".

          Do I need to have Angel Broking account to use it?

          M Y 2 Replies Last reply Reply Quote 0
          • M
            mr_heman @mr_heman last edited by

            @mr_heman Yes, you do need the angel broking account to use the API. I got mislead because API creation was allowed without it.

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

              Hi @PandaTrade can you try now.

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

                @admin
                Please resolve Error AG8001 issue, My account v232617

                V 1 Reply Last reply Reply Quote 0
                • V
                  v232617 @v232617 last edited by

                  Resolved

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

                    Dear Admin,

                    I am getting following error message. my client id: RMKK1008
                    {'success': False,
                    'message': 'Invalid Token',
                    'errorCode': 'AG8001',
                    'data': ''}

                    Please resolve it ASAP.

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

                      Hi @admin i am getting the same error
                      {'success': False,
                      'message': 'Invalid Token',
                      'errorCode': 'AG8001',
                      'data': ''}
                      My user id is S1333055.
                      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

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        smitshahfo @stevejmotha last edited by

                        @stevejmotha
                        Hi, I had to change my password through website. Then with new password I was able to login.. Please try and see if it works.

                        1 Reply Last reply Reply Quote 0
                        • 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