Overview of Function API

Overview of Function API

Feature Availability

Overview

Function API in Zoho Connect provides an authenticated API endpoint to establish a connection between two applications and automate workflows. It also includes handlers that let you format the request and response structure of an API to match the requirements of a specific application. 

What is an API?  

An API (Application Programming Interface) is a software intermediary that allows two applications to communicate with each other. APIs are request-based, meaning they are triggered whenever a request is made to the API endpoint and can create, read, update, or delete data based on the request. API is one of the important components for integrating applications to work together. 

What is an API endpoint?  

An API endpoint is a URL of a service to which requests are made to retrieve or access the data required to perform a specific task.  In simple terms, an API endpoint is a touchpoint for communication between two applications. 

What is the usage of Zoho Connect's Function API? 

While integrating applications using APIs, the structure of request from one application must match the requirements of the other application. For example, to integrate the Zoho Connect with MeisterTask or any other task management application for creating the task, it should follow the request and response structure of the Zoho Connect Create Task API. 
 
However, the request and response structure of one application might not usually meet the requirements of the other one. This is where Function API comes into the picture. Using Function API, you can customize the structure of a request to match the requirements of a particular application

Handlers in Function API 

Function API has two handlers: Get request handler and Post request handler. You can write a custom function using Deluge scripts to define how the request needs to be handled or customized by these handlers. Depending on the type of request made, the relevant handler is triggered. 
 
  1. Get request handler
The custom function written in this handler is triggered whenever a GET request is made to the API endpoint. 
Along with network and user details, the request details like headers and parameters are passed to the scope of the custom function as arguments. The below table lists the parameters passed in the GET request handler

Name
Data Type
Description
params
map
Query parameters sent in the request.
headers
map
Headers sent in the request.
network
map
Details of the network to which the request is made.
user
map
User details of the Function API owner.
 
  1. Post request handler
The custom function written in this handler is triggered whenever a POST request is made to the API endpoint. The below table lists the parameters passed in the POST request handler
 
Name
Data Type
Description
params
map
Parameters sent in the request.
headers
map
Headers sent in the request.
body
String
Payload data sent in body of the request.
network
map
Details of the Network to which the request is made.
user
map
Details of the configuration owner.
 
The response of the API can be defined in the custom function as execution response using the attributes in the below table.
 
Name
Data Type
Description
Value
statusCode
HTTP Status code
Status code of the request
Default value: 200 OK
response
String
Response of the API
empty
 
The default value is taken if the custom function response doesn’t  have the above attributes.
 
If you have any questions regarding Function API, please write to us at support@zohoconnect.com. We'll be happy to help!
 
 
 
 

    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION









                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • An example for Function API

                                                                                                                Let us consider an example in which a new task is created in Zoho Connect whenever a ticket is added in Zoho Desk. This is implemented using an Outgoing Webhook in Zoho Desk that will make a POST request to an API endpoint in Zoho Connect. But Desk's ...
                                                                                                              • Create, edit, disable and delete Function API

                                                                                                                Feature Availability Who can create a Function API? By default, only the network admins can create a Function API. However, if allowed, selected users can also create a Function API. How do I create a Function API configuration? Click the gear icon ...
                                                                                                              • Regenerating the API endpoint URL

                                                                                                                Feature Availability Overview The API endpoint is an authenticated URL that lets another service to send requests and access the data in a network. It is necessary that the URL is kept safe and not shared with others. However, in case the URL gets ...
                                                                                                              • Custom Menu - an overview

                                                                                                                Feature Availability Overview Custom Menu in Zoho Connect lets you add customized menus to entities such as status, tasks, events, in addition to the default menus—Follow, Print, Bookmark, and Copy post URL that are already available. They can be ...
                                                                                                              • Manuals overview

                                                                                                                Use Manuals to build your team's knowledge base. Think of it in terms of an online library that your team can draw on when needed. For example, your company's policies, best practices guide related to work, API documentation, and other resources can ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources