{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Zoho Cliq Messageformat Schemas",
"definitions": {
"empty-response": {
"type": "object",
"description": "Response returned when there is no content.",
"properties": {
"Response_Code": {
"type": "string",
"example": "204 No response"
}
}
},
"send-table-message-request-body": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text content of the message to be sent.
\nMaximum length: 10,000 characters.\n",
"maxLength": 10000,
"example": "New interns will be joining these teams from July."
},
"card": {
"type": "object",
"description": "An optional object that defines the visual presentation of the message card.\n",
"properties": {
"title": {
"type": "string",
"description": "The title of the message card.\n",
"example": "ANNOUNCEMENT"
},
"theme": {
"type": "string",
"description": "The visual theme of the message card.
\nAllowed values: modern-inline | poll | prompt\n",
"example": "modern-inline"
},
"thumbnail": {
"type": "string",
"format": "uri",
"description": "The URL of the thumbnail image for the message card.\n",
"example": "https://www.zoho.com/cliq/help/restapi/images/announce_icon.png"
}
}
},
"slides": {
"type": "array",
"description": "An array of structured content elements to be included in the message.\n",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of content.
\nAllowed values: table\n",
"example": "table"
},
"title": {
"type": "string",
"description": "The title of the table.\n",
"example": "Details"
},
"data": {
"type": "object",
"description": "The actual content data corresponding to the specified type.",
"properties": {
"headers": {
"type": "array",
"description": "An array of table header names for the table columns.",
"items": {
"type": "string"
},
"example": [
"Name",
"Team",
"Reporting To"
]
},
"rows": {
"type": "array",
"description": "Represents the data rows to be displayed in the table.\nEach row must be defined as a JSON object containing key-value pairs, where:\n
\n {\n
\n \"<Header1>\": \"<RowValue1>\",
\n \"<Header2>\": \"<RowValue2>\",
\n ...\n
\n }\n\n\n \"data\":[{\"Key1\": \"Value1\"},{\"Key2\": \"Value2\"},...]\n\n",
"items": {
"type": "object"
},
"example": [
{
"Revenue": "$500,000"
},
{
"Growth": "25%"
},
{
"Region": "North America"
}
]
}
}
}
}
}
},
"send-image-message-request-body": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text content of the message to be sent.