Register the Client

We must now register the client application in the Zoho API console to generate the following credentials:

  • Client ID: The unique key generated for a registered client
  • Client Secret: The secret value generated for a registered client’s Client ID

The Client ID and Client Secret are added to the backend and frontend code in several places. These values are necessary to generate the Access Token and Refresh Token initially, and later to refresh the Access Token using the Refresh Token.

To register the client application in the Zoho API console:

  1. Visit the Zoho API Console and click Get Started. catalyst_tutorials_lead_manager_appsail_api_console_start

  2. Select Server-based Applications as the client type. catalyst_tutorials_leadmnager_appsail_appsail_api_console_client_sel

  3. Enter “LeadManagerApp" as the Client Name. catalyst_tutorials_leadmanager_appsail_api_console_client_nme

  4. Provide the other details in the following format:

    • Homepage URL: AppSail application URL
    • Authorized Redirect URIs: AppSail applicationURL/generateToken catalyst_tutorials_leadmanager_appsail_adding_first_api_console_uri
      Replace {AppSail applicationURL} with the application URL you acquired when you deployed your project earlier in this step.
  5. You will need to add another Authorized Redirect URI for the client. We will serve the app through a localhost to test it after configuring the code. Because this will be redirected to a local domain, we must add that as another authorized redirect URI. catalyst_tutorials_leadmanager_appsail_apiconsole_register_client_uris

Info: When you serve an application locally from the CLI, it is hosted from port 3000 by default, unless the port is otherwise occupied. So ensure you are adding the domain accordingly.
  1. Click Create. catalyst_tutorials_leadmanager_appsail_client_id_client_scrt

The API console will generate and display the Client ID and Client Secret values for the registered client.

You will need to copy these values and paste them into the frontend and backend code of your application. We will discuss this in the following sections.

Last Updated 2025-01-31 19:19:27 +0530 +0530