{
"opencollection": "1.0.0",
"info": {
"name": "Bots messages API",
"version": "1.0.0"
},
"items": [
{
"info": {
"name": "messages",
"type": "folder"
},
"items": [
{
"info": {
"name": "Delete multiple messages",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID/messagess",
"params": [
{
"name": "CHAT_ID",
"value": "CHAT_ID",
"type": "path",
"description": "The unique identifier of the chat. To learn how to retrieve this ID, see CHAT_ID in the Glossary page."
},
{
"name": "message_ids",
"value": "",
"type": "query",
"description": "Comma-separated list of message IDs to delete.
\nMaximum of 25 IDs allowed.\n"
},
{
"name": "reason",
"value": "",
"type": "query",
"description": "Reason for deletion when an admin is deleting messages on behalf of other users.
\nAllowed values:
\n
irrelevant_information: The message contains information that is no longer relevant.obscene_content: The message contains inappropriate or offensive content.others: Any other reason not covered by the above options.\n Threshold limit: 50 requests per min per user
\n Number of API calls allowed within a minute.
\n Lock period: 5 minutes
Wait time before consecutive API requests.
\n
POST /channels/{CHANNEL_ID}/messages - Use the CHANNEL_ID of the channel.\n Threshold limit: 50 requests per min per user
\n Number of API calls allowed within a minute.
\n This limit is per user, not per tok"
},
{
"info": {
"name": "Post message in a channel with CHANNEL_ID",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cliq.zoho.com/api/v3/channels/:CHANNEL_ID/messages",
"params": [
{
"name": "CHANNEL_ID",
"value": "CHANNEL_ID",
"type": "path",
"description": "ID of the channel. To learn how to retrieve this ID, see CHANNEL_ID in the Glossary page."
},
{
"name": "bot_unique_name",
"value": "",
"type": "query",
"description": "Bot identifier for bot-sent messages. The bot must already be a participant in the channel."
},
{
"name": "appkey",
"value": "",
"type": "query",
"description": "Extension authentication key. Use this along with bot_unique_name when sending messages as an extension bot."
},
{
"name": "mark_as_read",
"value": "",
"type": "query",
"description": "Use these APIs to mark the sent message as read for the user. By default, the message will be unread for the message posted by the user."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Use this API to post a message in a channel using its CHANNEL_ID.\n
\nYou can also post a message using the following alternative endpoint:
\n
POST /channelsbyname/{CHANNEL_UNIQUE_NAME}/messages - Use the CHANNEL_UNIQUE_NAME of the channel.\n Threshold limit: 50 requests per min per user
\n Number of API calls allowed within a minute.
\n This limit is "
},
{
"info": {
"name": "Post message in chat",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID/messages",
"params": [
{
"name": "CHAT_ID",
"value": "CHAT_ID",
"type": "path",
"description": "The ID of the chat where the message should be posted. To learn how to retrieve this ID, see CHAT_ID in the Glossary page."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "To post message in a chat (or thread), the chat_id (thread_id in case of threads) can be used in the request URL.\n
\n
\n Threshold limit: 50 requests per min per user
\n Number of API calls allowed within a minute.
\n This limit is per user, not per token — even if messages are sent using multiple OAuth tokens by the same user, all requests count toward this shared limit.
\n Lock period: 10 minutes
Wait time before consecutive API requests.
\n
\n OAuth Scope: ZohoCliq.Messages.CREATE
\n Threshold limit: 50 requests per min per user
\n Number of API calls allowed within a minute.
\n Lock period: 10 minutes
Wait time before consecutive API requests.
\n
next_token value exactly as received to fetch the next page.\nThis value is a 64-bit integer cursor.\n"
},
{
"name": "from_user_ids",
"value": "",
"type": "query",
"description": "Filter by sender ZUIDs. Provide a comma-separated list of user IDs to restrict results to messages sent by specific users.direct_message: One-on-one chats between two users.group_chat: Group chats with multiple participants.channel: Organization-wide or team-specific channels.threads: Threads within channels or group chats.bot: Bot conversation chats.guests: Chats with external guest participants.organisation: Channels that are open to the entire organization.team: Channels that are specific to certain teams.personal: Private channels that are only accessible to invited members.external: Channels that include external users outside the organization.image/png, application/pdf) to find messages with specific types of attached files.text: Messages that contain only text content.link: Messages containing URLs.file: Messages that include file attachments.important: Messages marked as requiring attention.to_do: Messages flagged as action items.note: Messages saved for reference.manager: Messages related to managerial communications.follow_up: Messages requiring follow-up.followup: Messages marked for follow-up.question: Messages marked as questions.idea: Messages marked as ideas.other: Messages marked with a custom star type.\n Threshold limit: 50 requests per min per user
\n Number of API calls allowed within a minute.
\n Lock period: 10 minutes
Wait time before consecutive API requests.
\n