{ "opencollection": "1.0.0", "info": { "name": "Bots mentions API", "version": "1.0.0" }, "items": [ { "info": { "name": "mentions", "type": "folder" }, "items": [ { "info": { "name": "Retrieve Mentions and Replies", "type": "http" }, "http": { "method": "GET", "url": "https://cliq.zoho.com/api/v3/mentions", "params": [ { "name": "from_time", "value": "", "type": "query", "description": "
from_time and to_time are provided, the API will return mentions created within that time range.from_time and to_time are provided, the API will return mentions created within that time range.chat_ids = CT_1207124854_60002085329,CT_17960055085329-T-12915799199user_ids = 60040396507,60040376665mentions: Returns messages where the user was mentioned.replies: Returns messages where the user was replied to.all: Returns both mentions and replies.\n Threshold limit: 30 requests per min per user
"
},
{
"info": {
"name": "Mentioning a User",
"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": "Unique identifier of the chat where the message needs to be sent."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "To mention a user, use the syntax {@zohoid} or {@email}.
\nWhen you mention a user in any team-level or organization-level channel, the user will be notified. This syntax applies only to the text and comments fields of the payload.\nTo learn how to retrieve this ID, see CHAT_ID in the Glossary page.\n"
},
{
"info": {
"name": "Silent mentions",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID1/messages",
"params": [
{
"name": "CHAT_ID1",
"value": "CHAT_ID",
"type": "path",
"description": "Unique identifier of the chat where the message needs to be sent. To learn how to retrieve this ID, see CHAT_ID in the Glossary page.
\nNote: CHAT_ID1 is a documentation alias for CHAT_ID, used to document the \"Silent mentions\" use case separately while sharing the same /chats/{CHAT_ID}/messages endpoint, since the path is unchanged and only the message text syntax differs.\n"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Silent mentions allow you to reference a user in a conversation without triggering a notification.
\nUse the syntax [User Name](zohoid:userid) or [User Name](mail:user_email) to mention a user silently in any conversation. This will not notify the user. This format can also be used to mention a user in fields other than the text and comments keys.\n"
},
{
"info": {
"name": "Mentioning a Channel",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID2/messages",
"params": [
{
"name": "CHAT_ID2",
"value": "CHAT_ID",
"type": "path",
"description": "Unique identifier of the chat where the message needs to be sent. To learn how to retrieve this ID, see CHAT_ID in the Glossary page.
\nNote: CHAT_ID2 is a documentation alias for CHAT_ID, used to document the \"Mentioning a Channel\" use case separately while sharing the same /chats/{CHAT_ID}/messages endpoint, since the path is unchanged and only the message content pattern differs.\n"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "To mention a channel, use the syntax {#CHANNEL_ID}.
\nWhen you mention a team-level or organization-level channel, all participants of that channel will be notified. Additionally, an informational message will be posted in the channel indicating that it has been mentioned.\n"
},
{
"info": {
"name": "Mentioning all users in a channel",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID3/messages",
"params": [
{
"name": "CHAT_ID3",
"value": "CHAT_ID",
"type": "path",
"description": "Unique identifier of the chat where the message needs to be sent. To learn how to retrieve this ID, see CHAT_ID in the Glossary page.
\nNote: CHAT_ID3 is a documentation alias for CHAT_ID, used to document the \"Mentioning all users in a channel\" use case separately while sharing the same /chats/{CHAT_ID}/messages endpoint, since the path is unchanged and only the message content pattern differs.\n"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "To mention all users in a channel, use the syntax {@all}.
\nThis will notify every participant who is a member of the channel.
\nNote: The ability to use {@all} depends on the authenticated user's role and channel permissions. If the user does not have permission to mention all participants, the message posting request will fail.\n"
},
{
"info": {
"name": "Mentioning a Team",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cliq.zoho.com/api/v3/chats/:CHAT_ID5/messages",
"params": [
{
"name": "CHAT_ID5",
"value": "CHAT_ID",
"type": "path",
"description": "Unique identifier of the chat where the message needs to be sent. To learn how to retrieve this ID, see CHAT_ID in the Glossary page.
\nNote: CHAT_ID5 is a documentation alias for CHAT_ID, used to document the \"Mentioning a Team\" use case separately while sharing the same /chats/{CHAT_ID}/messages endpoint, since the path is unchanged and only the message content pattern differs.\n"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "To mention a team in a message, use the syntax {@team_id}.
\nYou can mention a team only within team-level or organization-level channels. When a team is mentioned, all members of that team will be notified.\nTo learn how to retrieve this ID, see CHAT_ID in the Glossary page.\n"
}
]
}
],
"bundled": true
}