Error AG8001
-
Do I need Angel broking account to use the API? I was able to create API for historical data, but unable to fetch anything. Getting error AG8001. Wondering whether it has to do something with user account.
Is login api call mandatory before using any other api?
-
Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}
my client id is : S57924513
-
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!
-
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 -
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 -
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/UserThanks & Regards,
SmartAPI team -
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 -
@mr_heman Exactly nothing metioned apart from it.
-
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 -
@admin
Please resolve Error AG8001 issue, My account S1269961 -
@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. -
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 earliestp.s. I was able to get the historical data a few days ago but now suddendly its not working
-
Dear Admin,
I am getting following error message. my client id: RMKK1008
{'success': False,
'message': 'Invalid Token',
'errorCode': 'AG8001',
'data': ''}Please resolve it ASAP.
-
Resolved
-
@admin
Please resolve Error AG8001 issue, My account v232617 -
Hi @PandaTrade can you try now.
-
@mr_heman Yes, you do need the angel broking account to use the API. I got mislead because API creation was allowed without it.
-
@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?
-
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? -
@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.