{
"opencollection": "1.0.0",
"info": {
"name": "Bots Functions API",
"version": "1.0.0"
},
"items": [
{
"info": {
"name": "Functions",
"type": "folder"
},
"items": [
{
"info": {
"name": "List all functions",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://cliq.zoho.com/api/v3/functions",
"params": [
{
"name": "next_token",
"value": "",
"type": "query",
"description": "Token for fetching the next page of results. Omit this parameter to retrieve the first page."
},
{
"name": "sync_token",
"value": "",
"type": "query",
"description": "Token for incremental synchronization. Provide the sync_token value from a previous response to retrieve only functions that were created or updated since that response was generated."
},
{
"name": "limit",
"value": "",
"type": "query",
"description": "Maximum number of functions to return per page.
\nDefault: 20
\nMaximum: 50\n"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Retrieve a paginated list of all functions defined by the authenicated user.\n
\n
\n Threshold limit: 30 requests per min per user
\n Maximum API calls allowed within one minute.
\n Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.
\n
\n Create a new Function in the Cliq platform. Functions are reusable UI-triggered components that execute when a user clicks a button, submits a form, or interacts with a widget button. The function_type determines the UI trigger.\n
\n Functions support two execution types:\n
\n\n Threshold limit: 30 requests per min per user
\n Maximum API calls allowed within one minute.
\n Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.
\n
\n For Webhook functions, you can also update the execution_url independently at any time to redirect all handler events to a new server endpoint.\n
\n Threshold limit: 10 requests per min per user
\n Maximum API calls allowed within one"
},
{
"info": {
"name": "Delete a specific function",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://cliq.zoho.com/api/v3/functions/:FUNCTION_ID",
"params": [
{
"name": "FUNCTION_ID",
"value": "FUNCTION_ID",
"type": "path",
"description": "Unique numeric identifier of the function. To learn how to retrieve this ID, see FUNCTION_ID in the Glossary page."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Permanently delete a Function and all its associated handlers. Any platform component that calls this function will stop working once it is deleted. This action is irreversible.\n
\n
\n Threshold limit: 10 requests per min per user
\n Maximum API calls allowed within one minute.
\n Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.
\n
\n Create a handler for a function. Handlers define the logic that executes when a user triggers the UI element (button click, form submit, widget interaction, etc.).\n
\n\n The field you provide depends on the function's execution type:\n
\nscript field with the Deluge source code to execute when the handler fires.permissions field "
},
{
"info": {
"name": "Get details of a specific function handler",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://cliq.zoho.com/api/v3/functions/:FUNCTION_ID/handlers/:FUNCTION_HANDLER_TYPE",
"params": [
{
"name": "FUNCTION_HANDLER_TYPE",
"value": "FUNCTION_HANDLER_TYPE",
"type": "path",
"description": "Name of the function execution handler. For functions with multiple handlers, this parameter is required to specify which handler's details to retrieve.\nbutton_handler: Handler for button click events.form_submit_handler: Handler for form submission events.form_view_handler: Handler for rendering form views.form_change_handler: Handler for form field change events.form_dynamic_select_handler: Handler for dynamic select field load events.widget_button_handler: Handler for widget button click events.\n Threshold limit: 10 requests per min per user
\n Maximum API calls allowed within one minute.
\n Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.
\n
button_handler - for button functionsform_submit_handler - for form functions, triggered on form submissionform_change_handler - for form functions, triggered on form field value changeform_view_handler - for form functions, triggered when the form is renderedform_dynamic_select_handler - for form functions, triggered when a dynamic select field is loadedwidget_button_handler - for widget functions, triggered on widget button clickscript attribute with the revised Deluge source code to execute when the handler fires.permissions array to change which data attributes (chat, message, user) are forwarded to your server. Note: attachments and location"
},
{
"info": {
"name": "Delete a handler from a specific function",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://cliq.zoho.com/api/v3/functions/:FUNCTION_ID/handlers/:FUNCTION_HANDLER_TYPE",
"params": [
{
"name": "FUNCTION_HANDLER_TYPE",
"value": "FUNCTION_HANDLER_TYPE",
"type": "path",
"description": "Name of the function execution handler. For functions with multiple handlers, this parameter is required to specify which handler to delete.\n
Allowed values:\n\n button_handler: Handler for button click events. \n form_submit_handler: Handler for form submission events. \n form_view_handler: Handler for rendering form views. \n form_change_handler: Handler for form field change events. \n form_dynamic_select_handler: Handler for dynamic select field load events. \n widget_button_handler: Handler for widget button click events. \n
\n"
},
{
"name": "FUNCTION_ID",
"value": "FUNCTION_ID",
"type": "path",
"description": "Unique numeric identifier of the function. To learn how to retrieve this ID, see FUNCTION_ID in the Glossary page."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Permanently remove a named execution handler from a Function. Once deleted, the handler's Deluge code is lost and the function will no longer be executable until a new handler is added.\n
\n\n Threshold limit: 10 requests per min per user
\n Maximum API calls allowed within one minute.
\n Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.
\n
\n