{ "opencollection": "1.0.0", "info": { "name": "Bots pinmessages API", "version": "1.0.0" }, "items": [ { "info": { "name": "pinmessages", "type": "folder" }, "items": [ { "info": { "name": "Get pinned messages", "type": "http" }, "http": { "method": "GET", "url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID/pin-messages", "params": [ { "name": "CHAT_ID", "value": "CHAT_ID", "type": "path", "description": "Unique identifier of the chat. To learn how to retrieve this ID, see CHAT_ID in the Glossary page." }, { "name": "primary", "value": "", "type": "query", "description": "Pass this parameter (no value needed) to fetch the primary pinned message instead of the full list." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of pinned messages to return.\n
Defaults to 20 if not specified.\n" }, { "name": "next_token", "value": "", "type": "query", "description": "Token from a previous response to fetch the next page of results. Omit to fetch the first page.\n" }, { "name": "sync_token", "value": "", "type": "query", "description": "Synchronization token for incremental sync of pinned messages.
\nPass the sync_token received in an earlier response to fetch only updates after that sync point.
\nFormat: base64 token.
\nMaximum length: 100 characters.\n" } ], "auth": { "type": "oauth2", "flow": "implicit", "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth", "credentials": { "clientId": "{{clientId}}" } } }, "docs": "Returns the list of pinned messages in a chat, sorted by pin time with the most recent first. Optionally, you can fetch only the primary pinned message or use pagination for efficient retrieval.\n

\n Threshold limit: 20 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
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": "Pins a message in a chat.\n

\n Threshold limit: 20 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
\n 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": "Changes the position of a pinned message in the list. If the message is reordered above the current primary pin, it automatically becomes the new primary.\n

\n Threshold limit: 20 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
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": "Removes one or more pinned messages from a chat.\n

\n Threshold limit: 20 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
\n CHAT_ID in the Glossary page.\n" }, { "name": "primary", "value": "true", "type": "query", "description": "Pass this parameter without a value to retrieve only the primary pinned message of the chat, instead of the full list of pinned messages.\n" } ], "auth": { "type": "oauth2", "flow": "implicit", "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth", "credentials": { "clientId": "{{clientId}}" } } }, "docs": "Fetches the primary pinned message in a chat. The primary pin is the most prominently displayed pinned message, typically shown at the top of the pinned list and highlighted in the UI.\n

\n Threshold limit: 20 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