Skip to Content

User Authorization

This API allows you to send a user to the FYERS login page to authorize your app.

USE CASE

Start the login when a user connects their FYERS account to your platform.

Details

  • You need to navigate the user to the FYERS login url with the correct get parameters
  • Navigate the user to the FYERS login URL with these query parameters (a GET request). The user logs in with their own FYERS credentials.
  • Provide a redirect_uri you control, not a public endpoint such as google.com; it receives the sensitive auth_code.
  • Send a random state for each login and verify that the same value is returned before using the code.
  • After a successful login the user lands on your redirect_uri with auth_code and state; see Authorization Code.

Request Attributes

AttributeData TypeDescription
client_idstring
  • This is the app_id which you have received after creating the app.
  • Eg: “qwerty-102”
redirect_uristring
response_typestringThis value must always be “code”
statestring
  • You send a random value. The same value will be returned after successful login to the redirect uri.
  • Eg: “abcdefg”
Last updated on