Generate Refresh Token

Before configuring the function and client components, you need to generate a Refresh Token, which will be included in the function code to authorize interactions with Zoho Cliq.

You can use any REST API client to perform this step. In this tutorial, we’ll walk you through the process using the Postman API platform.

  1. Open your API client and create a new POST request to the following URL:
  • Request URL: https://accounts.zoho.com/oauth/v2/token

  • Request Method: POST

  1. Add the following keys and values as query parameters in your request:
  • code: The Grant Token or the value of code obtained during the client registration in the API console
  • client_id: The Client ID that was generated during the client registration
  • client_secret: The Client Secret that was generated during the client registration
  • grant_type: authorization_code (Provide this literal string as the value)
  1. Send the request with the above parameters to the specified request URL. If the request is successful, you will receive a response that includes: access_token, refresh_token, api_domain, token_type, expires_in. We only require the Refresh Token.

A screenshot of this step using Postman is provided below to guide you through the request and response.

Generating refresh token
  1. Copy the refresh_token value from the response received. You’ll use this in the function code in the next step of the tutorial.

Last Updated 2025-06-10 18:26:01 +0530 +0530