The examples used in this section use REST API resources to retrieve, insert, update, and delete records, along with other record-related operations.
To get the list of records from page 1 of the Leads module.
https://www.zohoapis.com/crm/v2/{module_api_name}
module_api_name - The api name of the module.
scope=ZohoCRM.modules.all
(or)
scope=ZohoCRM.modules.{module_name}.{operation_type}
Possible module names | Possible operation types |
---|---|
leads, accounts, contacts, deals, campaigns, tasks, cases, events, calls, solutions, products, vendors, pricebooks, quotes, salesorders, purchaseorders, invoices, custom, notes, approvals, dashboards, search and activities. | ALL - Full access to record READ - get records from a module |
GET
Parameter Name | Data Type | Description | Possible Values |
---|---|---|---|
fields (optional) | String | To list all the module records with respect to fields | Multiple field API names, comma separated. For example: Last_Name,Email |
sort_order (optional) | String | To sort the available list of records in either ascending or descending order | asc - ascending order desc - descending order |
sort_by (optional) | String | To sort the available list of records based on given field | Field API name Example: Email |
converted (optional) | String | To get the list of converted records | true - get only converted records false - get only non-converted records both - get all records |
approved (optional) | String | To get the list of approved records | true - get only approved records false - get only records which are not approved both - get all records |
page (optional) | Integer | To get the list of records from the respective pages. Default value for page is 1. | Positive Integer values only |
per_page (optional) | Integer | To get the list of records available per page. Default value for per page is 200. | Positive Integer values only |
cvid (optional) | Integer | To get the list of records based on custom views | {custom_view_id} |
curl "https://www.zohoapis.com/crm/v2/Leads?page=1&per_page=2"
-X GET
-H "Authorization: Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52