What is Zoho CRM?
Zoho CRM is a cloud-based Customer Relationship Management platform that helps businesses organize customer data, track sales leads, manage deals, and automate repetitive workflows — all from a single, intuitive interface. It is used by over 250,000 businesses worldwide, from small startups to large enterprises.
Beyond data storage, Zoho CRM supports powerful developer capabilities through Deluge — Zoho's own scripting language — which lets you write custom business logic, call external APIs, and automate complex workflows directly inside your CRM.
What is Postman?
Postman is one of the most popular API development and testing tools available today. It allows developers to send HTTP requests to any API endpoint and inspect the response — without writing a single line of client-side code. It is widely used to verify that an API is working correctly before integrating it into a live application.
Postman supports all major HTTP methods (GET, POST, PUT, DELETE), request headers, authentication, and JSON body formatting — making it the ideal tool for testing Zoho CRM REST API endpoints.
What is a Zoho CRM Standalone Function?
A Standalone Function in Zoho CRM is a custom Deluge script that runs independently — not tied to any specific module trigger, button, or workflow rule. Unlike other function types, a Standalone Function can be exposed as a publicly accessible REST API endpoint by Zoho CRM, which you can then call from Postman, your website, a mobile app, or any third-party service.
This makes Standalone Functions extremely powerful for building custom integrations without needing a separate backend server.
Prerequisites
Before you begin, make sure you have the following ready:
- An active Zoho CRM account (any paid plan supports Functions)
- Postman installed — download it free here
- Basic understanding of what an API is (helpful but not required)
- Developer access within your Zoho CRM organization
Step-by-Step Tutorial
Let's walk through the complete process: creating the function, writing the Deluge code, generating the REST API URL, and testing it live in Postman.
- Log in to your Zoho CRM account.
- Click the Settings icon (gear) in the top-right corner.
- Scroll to the Developer Hub section and click Functions.
- Click + New Function and fill in:
- Function Name:
CreateContact - Display Name: e.g., Create Contact via API
- Description: e.g., Creates a new contact record via REST API
- Function Name:
- Under Category, select Standalone.
- Click Create to open the function editor.
In the function editor, paste the following Deluge code. This script builds a contact data map and uses Zoho's built-in zoho.crm.createRecord task to create a new contact in CRM.
// Step 1: Build a map with the contact's details mape = Map(); mape.put("First_Name", "Test record-4"); mape.put("Last_Name", "Gupta"); mape.put("Email", "gj@yopmail.com"); mape.put("Phone", "7078345678"); // Step 2: Create the record in the Contacts module resp = zoho.crm.createRecord("Contacts", mape); // Step 3: Log and return the response return resp;
This code creates a new contact named "Test record-4 Gupta" in your CRM Contacts module. After pasting the code, click Save.
- Go back to the Functions list in Zoho CRM Settings.
- Find the function you just created (
CreateContact). - Click the three-dot menu (⋯) icon next to the function name.
- Select REST API from the dropdown.
- Toggle on the API Key option to enable key-based authentication.
- Copy the generated URL — you will need it in the next step.
- Click Save.
- Open Postman on your computer.
- Click New → HTTP Request.
- Paste the copied URL from Step 3 into the URL field.
- Set the HTTP method to POST.
- Click the Body tab → select raw → choose JSON from the format dropdown.
- Paste the following JSON in the body editor:
{
"First_Name": "Test record-4",
"Last_Name": "Gupta",
"Email": "gj@yopmail.com",
"Phone": "7078345678"
}Click Send. If everything is configured correctly, Postman will return a success response confirming the new contact was created in Zoho CRM.
Watch the Full Video Tutorial
Prefer to follow along visually? Watch the complete step-by-step walkthrough below. The video covers everything in this post — from creating the Standalone Function in Zoho CRM to testing the REST API live in Postman.
Helpful Resources
Use these official references to explore Zoho CRM development and Postman further:
- Zoho CRM API Documentation — Full reference for all Zoho CRM REST API v7 endpoints and parameters.
- Zoho Deluge Developer Guide — Complete guide to writing Standalone and Workflow functions in Deluge.
- Postman Learning Center — Official Postman documentation to master API testing and automation.
Conclusion
You have now completed the full workflow: creating a Standalone Function in Zoho CRM, writing a Deluge script to create a contact record, generating a REST API endpoint from that function, and successfully testing it using Postman.
This pattern is extremely powerful for building custom integrations. Once you understand how Standalone Functions work as REST APIs, you can expose any business logic in Zoho CRM to external systems — whether that is a website form, a mobile app, or a third-party automation platform like Zapier or Make.
The same approach works for updating records, querying data, or triggering custom workflows — simply change the Deluge logic inside the function.