{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Zoho Cliq Buttons Schemas",
"definitions": {
"empty-response": {
"type": "object",
"description": "Response returned when there is no content.",
"properties": {
"Response_Code": {
"type": "string",
"example": "204 No response"
}
}
},
"instant-buttons-request": {
"type": "object",
"required": [
"text",
"references"
],
"properties": {
"text": {
"type": "string",
"description": "The text content of the message with inline button references.
\nUse the format [Button Label]($reference-key) to embed buttons within the text.
\nMaximum length: 10,000 characters.\n",
"maxLength": 10000,
"example": "Who's up for lunch after the match on Friday? [Yes]($1) [Call Support]($2) [Copy Details]($3)"
},
"references": {
"type": "object",
"description": "An object containing button definitions referenced in the message text.
\n
[Button Label]($reference-key).$reference-key.type (must be \"button\") and an object with button properties.| Attribute | \nType | \nDescription | \n
|---|---|---|
| name* | \nstring | \nThe unique name of the function to be invoked. | \n
| owner | \nstring | \nThe email ID of the function owner (optional if the function is created by the same user). | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| api* | \nstring | \n\n Specifies the system action to be executed. \n Allowed values: audiocall | videocall | startchat | invite | locationpermission \n Format: system_action/{zuid} \n Where {zuid} is the Zoho User ID of the user to whom the system action should be performed.\n | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| text* | \nstring | \n\n The text that will be copied to the user's clipboard when the button is clicked. \n Maximum length: 200 characters.\n | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| name* | \nstring | \nName of the function to be invoked. | \n
| owner* | \nstring | \nThe email address of the function creator. | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| web | \nstring (URL) | \n\n The URL to be opened when the button is clicked. \n Supported protocols: http | https | tel | sms | sip \n Maximum length: 256 characters.\n | \n
| windows | \nstring (URL) | \n\n The URL to be opened on Windows mobile devices. \n Maximum length: 256 characters.\n | \n
| iOS | \nstring (URL) | \n\n The URL to be opened on iOS mobile devices. \n Maximum length: 256 characters.\n | \n
| android | \nstring (URL) | \n\n The URL to be opened on Android mobile devices. \n Maximum length: 256 characters.\n | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| url* | \nstring | \n\n Iframe URL used to play a video or render a webpage within the chat interface. \n Maximum length: 500 characters.\n | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| api* | \nstring | \n\n Specifies the system action to be executed. \n Allowed values: audiocall | videocall | startchat | invite | locationpermission \n Supported system actions and formats: \n \u2022 audiocall/zuid \u2013 Initiates an audio call with the specified user. \n \u2022 videocall/zuid \u2013 Initiates a video call with the specified user. \n \u2022 startchat/zuid \u2013 Starts a direct chat with the specified user. \n \u2022 invite/zuid \u2013 Sends a contact invitation to the specified user. \n \u2022 locationpermission \u2013 Requests location access permission from the user. \n Format: system action/{zuid}\n | \n
| Attribute | \nType | \nDescription | \n
|---|---|---|
| text* | \nstring | \n\n The text that will be copied to the user's clipboard when the button is clicked. \n Maximum length: 200 characters.\n | \n