{ "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\n" }, { "name": "comment", "value": "", "type": "query", "description": "Optional comment providing additional context for the deletion reason when an admin is deleting messages on behalf of other users.
\nMaximum length: 250 characters.\n" } ], "auth": { "type": "oauth2", "flow": "implicit", "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth", "credentials": { "clientId": "{{clientId}}" } } }, "docs": "Deletes up to 25 messages in a chat in a single request. Returns a per-message result indicating success or failure for each ID.

\nAdmins deleting messages on behalf of other users must supply a reason(an optional comment) can also be provided.\n

\n

\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

\n
CHANNEL_UNIQUE_NAME in the Glossary page." }, { "name": "bot_unique_name", "value": "", "type": "query", "description": "Use this parameter to send a message in a channel as a bot. Note that the bot should 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.\n" }, { "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_UNIQUE_NAME.\n

\nYou can also post a message using the following alternative endpoint:
\n\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 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

\n

\n

\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" }, { "info": { "name": "Forward Messages", "type": "http" }, "http": { "method": "POST", "url": "https://cliq.zoho.com/api/v3/messages", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "implicit", "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth", "credentials": { "clientId": "{{clientId}}" } } }, "docs": "Forwards one or more messages from a source chat to other chats or users.\n

\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

\n" }, { "info": { "name": "Search Messages", "type": "http" }, "http": { "method": "GET", "url": "https://cliq.zoho.com/api/v3/messages/search", "params": [ { "name": "query", "value": "", "type": "query", "description": "Full-text search query to match message content. Supports keywords and phrases (in quotes)
\nMaximum length: 1000 characters.\n" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of messages to return per page. Default is 50, maximum allowed is 50.\n" }, { "name": "next_token", "value": "", "type": "query", "description": "Pagination cursor returned from a previous response.\nPass the 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.
\nMaximum of 5 user IDs allowed.\n" }, { "name": "to_user_ids", "value": "", "type": "query", "description": "Filter by recipient ZUIDs. Provide a comma-separated list of user IDs to restrict results to messages sent to specific users.
\nMaximum of 5 user IDs allowed.\n" }, { "name": "mentioned_user_ids", "value": "", "type": "query", "description": "Filter messages that mention specific users. Provide a comma-separated list of user IDs to find messages that contain mentions of those users.
\nMaximum of 5 user IDs allowed.\n" }, { "name": "chat_ids", "value": "", "type": "query", "description": "Filter by chat IDs. Provide a comma-separated list of chat IDs to restrict results to specific chats.
\nMaximum of 5 chat IDs allowed.\n" }, { "name": "chat_type", "value": "", "type": "query", "description": "Filter by chat type.
\nAllowed values:
\n\nMaximum of 6 values allowed.\n" }, { "name": "parent_chatid", "value": "", "type": "query", "description": "Filter messages within a specific thread by providing the parent chat ID (thread ID). This will return messages that are part of the specified thread.\n" }, { "name": "channel_type", "value": "", "type": "query", "description": "Filter by channel type when searching within channels.
\nAllowed values:
\n\n" }, { "name": "team_ids", "value": "", "type": "query", "description": "Filter by team IDs when searching within team channels. Provide a comma-separated list of team IDs to restrict results to channels associated with specific teams.
\nMaximum of 5 team IDs allowed.\n" }, { "name": "include_allowed_channels", "value": "", "type": "query", "description": "When true, include messages from channels that the user has access to, even if they are not explicitly listed in the chat_ids parameter. This allows users to find relevant messages in channels they are part of without needing to specify each channel ID.\n" }, { "name": "from_time", "value": "", "type": "query", "description": "Start of the date range for the search. Accepts epoch time in milliseconds (Long) or ISO 8601 format (e.g., 2024-01-01T00:00:00Z). Messages sent at or after this time will be included in the results.\n" }, { "name": "to_time", "value": "", "type": "query", "description": "End of the date range for the search. Accepts epoch time in milliseconds (Long) or ISO 8601 format (e.g., 2024-01-01T00:00:00Z). Note: from_time must be earlier than to_time, otherwise the request fails.\n" }, { "name": "file_name", "value": "", "type": "query", "description": "Match by file name for messages that contain attachments. Supports partial matches and wildcards (e.g., \"report*\" to match \"report_Q1.pdf\"). Accepts a comma-separated list of file names.
\nMaximum of 10 values allowed. Total maximum length: 500 characters.\n" }, { "name": "file_type", "value": "", "type": "query", "description": "Filter by file type for messages that contain attachments. Provide a comma-separated list of MIME types (e.g., image/png, application/pdf) to find messages with specific types of attached files.
\nMaximum of 10 values allowed. Total maximum length: 500 characters.\n" }, { "name": "file_content_query", "value": "", "type": "query", "description": "Full-text search query to match the content of attached files. This allows you to find messages based on the text within attachments, such as documents or PDFs. Supports keywords, phrases (in quotes), and boolean operators (AND, OR, NOT).
\nMaximum length: 500 characters.\n" }, { "name": "message_type", "value": "", "type": "query", "description": "Filter by message type.
\nAllowed values:
\n\n" }, { "name": "is_pinned", "value": "", "type": "query", "description": "When true, only return messages that are pinned in their respective chats. Note: If this parameter is true, the chat_ids parameter must include exactly one chat ID to specify which chat's pinned messages to search within.\n" }, { "name": "has_mentions", "value": "", "type": "query", "description": "When true, only return messages that contain mentions of users.\n" }, { "name": "star_types", "value": "", "type": "query", "description": "Filter messages by star types. Provide a comma-separated list of star types to find messages that have been starred with specific types (e.g., \"important,followup\").
\nMaximum of 5 star types allowed.\n
Allowed star types:
\n \n" }, { "name": "include_bot_messages", "value": "", "type": "query", "description": "When true, include messages sent by bots in the search results. By default, bot messages are excluded from search results.\n" } ], "auth": { "type": "oauth2", "flow": "implicit", "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth", "credentials": { "clientId": "{{clientId}}" } } }, "docs": "Search for messages across chats with extensive filtering options. This endpoint supports keyword search, filtering by sender/recipient, date range, file attributes, and more to help you find specific messages efficiently.\n

\n

\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

\n" } ] } ], "bundled": true }