You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sends an [event](/messaging/agent-chat-api/v3.6/data-structures/#events) that isn't saved in the chat. Use this method when you're preparing a longer response and want to send a partial update before sending the final message with [Send Event](/messaging/agent-chat-api/v3.6/#send-event). Only [Message](/messaging/agent-chat-api/v3.6/data-structures/#message) is supported. Visibility must be set to `all` or skipped. The user must be [added to the chat](/messaging/agent-chat-api/rtm-pushes/#user_added_to_chat) before they can send an event.
|**Required scopes**|`chats--all:rw`**\*** or `chats--access:rw`**\*\***|
1198
+
|**RTM API equivalent**|[`send_event_preview`](/messaging/agent-chat-api/v3.6/rtm-reference/#send-event_preview)|
1199
+
|**Webhook**| - |
1200
+
1201
+
**\*)**`chats--all:rw` - to send an event to a chat taking place in any group.
1202
+
1203
+
**\*\*)**`chats--access:rw` - to send an event to a chat taking place in groups that the requester (related to the token) is a member of. (The agent groups and the chat groups must overlap - at least one group must be in common.)
Sends an [Event](/messaging/agent-chat-api/v3.6/data-structures/#events) object. Use this method to send a message by specifying the [Message](/messaging/agent-chat-api/v3.6/data-structures/#message) event type in the request.
@@ -1319,6 +1319,72 @@ Removes a user from chat. The following restrictions apply:
1319
1319
1320
1320
## Events
1321
1321
1322
+
### Send Event Preview
1323
+
1324
+
Sends an [event](/messaging/agent-chat-api/v3.6/data-structures/#events) that isn't saved in the chat. Use this method when you're preparing a longer response and want to send a partial update before sending the final message with [Send Event](/messaging/agent-chat-api/v3.6/rtm-reference#send-event). Only [Message](/messaging/agent-chat-api/v3.6/data-structures/#message) is supported. Visibility must be set to `all` or skipped. The user must be [added to the chat](/messaging/agent-chat-api/rtm-pushes/#user_added_to_chat) before they can send an event.
|**Required scopes**|`chats--all:rw`**\*** or `chats--access:rw`**\*\***|
1332
+
|**Web API equivalent**|[`send_event_preview`](/messaging/agent-chat-api/v3.6/#send-event-preview)|
1333
+
|**Push message**| - |
1334
+
1335
+
**\*)**`chats--all:rw` - to send an event to a chat taking place in any group.
1336
+
1337
+
**\*\*)**`chats--access:rw` - to send an event to a chat taking place in groups that the requester (related to the token) is a member of. (The agent groups and the chat groups must overlap - at least one group must be in common.)
|`chat_id`| Yes |`string`| Id of the chat you want to send the message to. |
1344
+
|`event`| Yes |`object`|[Event](/messaging/agent-chat-api/data-structures/#events) object. Supports only `message` type. |
1345
+
1346
+
</Text>
1347
+
<Code>
1348
+
<CodeSamplepath={'REQUEST'}>
1349
+
1350
+
```json
1351
+
{
1352
+
"action": "send_event",
1353
+
"payload": {
1354
+
"chat_id": "PW94SJTGW6",
1355
+
"event": {
1356
+
"type": "message",
1357
+
"text": "Preview of a longer response...",
1358
+
"visibility": "all",
1359
+
"custom_id": "31-0C-1C-07-DB-16"
1360
+
}
1361
+
}
1362
+
}
1363
+
```
1364
+
1365
+
</CodeSample>
1366
+
1367
+
<CodeResponse>
1368
+
1369
+
```json
1370
+
{
1371
+
"request_id": "<request_id>", // optional
1372
+
"action": "send_event_preview",
1373
+
"type": "response",
1374
+
"success": true,
1375
+
"payload": {
1376
+
//no response payload
1377
+
}
1378
+
}
1379
+
```
1380
+
1381
+
</CodeResponse>
1382
+
</Code>
1383
+
</Section>
1384
+
1385
+
<Section>
1386
+
<Text>
1387
+
1322
1388
### Send Event
1323
1389
1324
1390
Sends an [Event](/messaging/agent-chat-api/v3.6/data-structures/#events) object. Use this method to send a message by specifying the [Message](/messaging/agent-chat-api/v3.6/data-structures/#message) event type in the request.
Copy file name to clipboardExpand all lines: src/pages/messaging/customer-chat-api/changelog/index.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ The developer preview version provides a preview of the upcoming changes to the
31
31
- There's a new method, **Delete Event** ([Web](/messaging/customer-chat-api/v3.6/#delete-event) and [RTM](/messaging/customer-chat-api/v3.6/rtm-reference#delete-event)).
0 commit comments