Zoho CRM

Official documentation: Zoho CRM API docs

Authentication

Zoho CRM uses API key authentication.

  1. Go to the Connections page and create a New Connection
  2. Select Zoho CRM from the Connector dropdown
  3. Enter a Connection name
  4. Fill in the following credentials:
Field Required
Api Url ✅
Client Id ✅
Client Secret ✅
Refresh Token ✅

Follow the steps below in order to start using the hibase connector to the Zoho CRM API (v2):

  1. Navigate to the Zoho Developer Console and create a Self Client if one is not already available

  2. Note down the Client ID and Client Secret that are provided by the console

  3. Determine which domain of the Zoho API you are using and note it down. The available options are as follows:

  1. Navigate to the Generate Code tab and paste the following line in Scope for complete read access (you can adapt scopes according to what you would like hibase to have access to):
ZohoBooks.fullaccess.read,ZohoCRM.modules.custom.read,ZohoCRM.modules.contacts.read,ZohoCRM.modules.read,ZohoCRM.settings.read,ZohoCRM.users.read,ZohoCRM.org.read,ZohoCRM.coql.read
  1. Give a description to the Scope (e.g. "hibase full access") and hit Generate

  2. Copy the code that is generated

  3. Use an HTTP client to make a POST request to the Zoho API and fetch a refresh token, which you will need to provide as credentials to the Zoho connector in hibase. For example, you can use curl from your terminal as follows:

curl -v -X POST \
  --data-urlencode "code=[Code generated in step 5]" \
  --data-urlencode "client_id=[Client ID]" \
  --data-urlencode "redirect_uri=hibase.co" \
  --data-urlencode "client_secret=[Client Secret]" \
  --data-urlencode "grant_type=authorization_code" \
  --data-urlencode "access_type=offline" \
  [Zoho API Domain as in step 3]/oauth/v2/token
  1. Copy the Refresh token that is provided by the HTTP response

  2. Provide the API URL (as in step 3), Client ID, Client Secret and Refresh token to the hibase Zoho CRM connector

Endpoints

Coql (API docs)

Execute a COQL (CRM Object Query Language) query to retrieve records using SQL-like syntax.

Parameter Description Required
select_query A COQL query string, e.g. SELECT First_Name, Last_Name FROM Contacts WHERE City = 'London'. ✅

Returned Data: Schema depends on the query. All fields from the API response are flattened into columns.

Get Fields (API docs)

Retrieve field metadata and definitions for a specific module.

Parameter Description Required
module The CRM module to retrieve fields for. Values: Leads, Contacts, Accounts, Deals, Tasks, Events, Calls, Products, Quotes, Sales_Orders, Invoices, Campaigns ✅

Returned Data: Schema depends on the query. All fields from the API response are flattened into columns.

Get Records (API docs)

Retrieve records from a Zoho CRM module with optional filtering and sorting.

Parameter Description Required
module The CRM module to query. Values: Leads, Contacts, Accounts, Deals, Tasks, Events, Calls, Products, Quotes, Sales_Orders, Invoices, Campaigns ✅
fields Comma-separated field API names to return. —
sort_by Field to sort results by. —
sort_order Sort direction. Values: asc, desc —
converted Filter by conversion status (Leads). Values: true, false, both —
approved Filter by approval status. Values: true, false, both —
cvid Custom view ID to filter by. —
territory_id Filter by territory. —
include_child Include child records. Values: true, false —

Returned Data: All fields from the API response are automatically flattened into columns.

Get Users (API docs)

Retrieve all users (team members) in the Zoho CRM organization.

Returned Data

Column Type
country string
role_name string
role_id string
city string
signature string
name_format string
language string
locale string
personal_account boolean
default_tab_group string
street string
alias string
theme_normal_tab_font_color string
theme_normal_tab_background string
theme_selected_tab_font_color string
theme_selected_tab_background string
theme_new_background string
theme_background string
theme_screen string
theme_type string
id string
state string
country_locale string
fax string
first_name string
email string
zip string
decimal_separator string
website string
time_format string
profile_name string
profile_id string
mobile string
last_name string
time_zone string
zuid string
confirm boolean
full_name string
territories json
phone string
dob string
date_format string
status string

Search Records (API docs)

Search for records in a Zoho CRM module by keyword, email, phone, or criteria.

Parameter Description Required
module The CRM module to search. ✅
search_by The search method. Values: word, email, phone, criteria ✅
search_query The search query string. ✅
sort_by Field to sort results by. —
sort_order Sort direction. Values: asc, desc —
converted Filter by conversion status. Values: true, false, both —
approved Filter by approval status. Values: true, false, both —

Returned Data: All fields from the API response are automatically flattened into columns.