{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Zoho Cliq Threads Schemas",
"definitions": {
"no-response": {
"type": "object",
"description": "Response object returned when no content is available.",
"properties": {
"Response Code": {
"type": "string",
"description": "HTTP response code and message indicating no content.",
"example": "204 No response"
}
}
},
"v3-thread": {
"type": "object",
"properties": {
"chat_id": {
"type": "string"
},
"parent_chat_id": {
"type": "string"
},
"thread_message_id": {
"type": "string"
},
"title": {
"type": "string"
},
"follower_count": {
"type": "integer"
},
"is_follower": {
"type": "boolean"
},
"thread_state": {
"type": "string"
},
"parent_message_sender": {
"type": "string"
},
"last_message_information": {
"type": "object",
"additionalProperties": true
}
}
},
"post-message-in-a-channel-response": {
"type": "object",
"description": "Response returned when a message is posted in a channel. A '204 No response' indicates successful posting without returning any content.",
"properties": {
"Response Code": {
"type": "string",
"description": "HTTP response code when message is posted.",
"example": "204 No response"
}
}
},
"get-thread-followers-response": {
"type": "object",
"description": "Response containing the list of followers for a particular thread.",
"properties": {
"data": {
"type": "array",
"description": "List of users following the thread.",
"items": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "Unique identifier of the user.",
"example": "855727961"
},
"email_id": {
"type": "string",
"format": "email",
"description": "Email ID of the user.",
"example": "ryan.west@zylker.com"
},
"name": {
"type": "string",
"description": "Name of the user.",
"example": "Ryan West"
}
}
},
"example": [
{
"user_id": "855727961",
"email_id": "ryan.west@zylker.com",
"name": "Ryan West"
},
{
"user_id": "855727962",
"email_id": "scott.fisher@zylker.com",
"name": "Scott Fisher"
},
{
"user_id": "855727963",
"email_id": "tim.harrison@zylker.com",
"name": "Tim Harrison"
}
]
}
}
},
"retrieve-chat-members": {
"type": "object",
"description": "Response object containing members of a chat.",
"properties": {
"members": {
"type": "array",
"description": "List of members in the chat with detailed user information.",
"items": {
"$ref": "#/components/schemas/Members"
}
}
}
},
"Members": {
"type": "object",
"description": "Detailed information about a chat member.",
"properties": {
"user_id": {
"type": "string",
"description": "Unique identifier of the user.",
"example": "431930546"
},
"email_id": {
"type": "string",
"format": "email",
"description": "Email address of the user.",
"example": "olivia.palmer@zylcal.com"
},
"name": {
"type": "string",
"description": "Full name of the user.",
"example": "Olivia - Content Writer"
}
}
},
"thread-creation-payload": {
"type": "object",
"description": "Request body to create a new thread from an existing message.",
"required": [
"text",
"thread_message_id"
],
"properties": {
"text": {
"type": "string",
"description": "Text to post as the initial message in the thread. Maximum length: 5000 characters.",
"example": "Follow this thread for daily updates on ticket resolutions."
},
"thread_message_id": {
"type": "string",
"description": "ID of the parent message from which the thread should be created.",
"example": "1599044334698_117280617320"
},
"reply_to": {
"type": "string",
"description": "Optional. ID of a message to reply to within the thread."
},
"post_in_parent": {
"type": "boolean",
"description": "Optional. If true, posts the thread message in the parent chat as well.",
"example": true
},
"thread_title": {
"type": "string",
"description": "Optional. Title for the thread.",
"example": "Ticket Resolution Summary for the Day"
},
"sync_message": {
"type": "boolean",
"description": "Optional. If true, posts the message synchronously and returns the message ID.",
"example": true
}
}
},
"send-message-in-thread-payload": {
"type": "object",
"description": "Request body to send a message in an existing thread.",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "Text to post in the thread. Maximum length: 5000 characters.",
"example": "Let's automate these cases so we can address them during testing."
},
"reply_to": {
"type": "string",
"description": "Optional. Message ID to reply to within the thread."
},
"post_in_parent": {
"type": "boolean",
"description": "Optional. If true, posts the message in the parent chat as well.",
"example": true
},
"sync_message": {
"type": "boolean",
"description": "Optional. If true, posts the message synchronously and returns the message ID.",
"example": true
}
}
},
"thread-creation-response": {
"type": "object",
"description": "Response returned after creating a thread.",
"properties": {
"message_id": {
"type": "string",
"description": "ID of the created thread message.",
"example": "1275417686584_20804595296"
}
}
},
"get-threads-payload": {
"type": "object",
"description": "Request parameters to retrieve threads from a channel.",
"properties": {
"next_token": {
"type": "string",
"description": "Used for pagination. Pass the next_token received in the previous API response to get the next page.",
"example": "MTV8MTYxNjEzNTI3ODYzNnwxNzc1OTk4MDAxMTcwMDczMzAx"
},
"limit": {
"type": "string",
"description": "Maximum number of threads to return in the response.",
"example": "50"
}
}
},
"auto-follow-threads-payload": {
"type": "object",
"description": "Request body to enable or disable auto-follow for threads in a channel.",
"properties": {
"auto_follow_threads": {
"type": "string",
"description": "Set the auto-follow status for threads in the channel.
\nAllowed values:
\n