https://api-t1.fyers.in/api/v3/price-alert
Always getting this error.
{
“code”: -16,
“message”: “Could not authenticate the user”,
“s”: “error”
}
https://api-t1.fyers.in/api/v3/price-alert
Always getting this error.
{
“code”: -16,
“message”: “Could not authenticate the user”,
“s”: “error”
}
You will face this error when the access token being used is invalid / expired . Please use a fresh token and try hitting the api , you should get the response of all alerts
https://myapi.fyers.in/docsv3#tag/Authentication-and-Login-Flow-User-Apps/paths/~1Authentication%20&%20Login%20Flow%20-%20User%20Apps/post
should we send header info only these details or something else.
client_id = “SPXXXXE7-100” # Replace with your client ID secret_key = “NB" # Replace with your secret key redirect_uri = “API - Sample Redirect URI” # Replace with your redirect URI response_type = “code” grant_type = “authorization_code” # The authorization code received from Fyers after the user grants access auth_code = "eyJ0eXAi*******.eyJpc3MiOiJhcGkubG9.r_65Awa1kGdsNTAgD******”
Please provide sample would be helpful
@truefriendjn-o07 Could you please dm your contact details so that we can connect and explain this
Headers for auth should be like this -
"Authorization" : app_id:access_token,
"Content-Type" : 'application/json'
Keep the mandatory headers along with these and remove other unnecessary ones (last four from the screenshot).