SendMessageChatText
Sends a message to an IM client.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SendMessageChatText |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SessionId |
string |
Yes |
The session ID. |
f27f9b9be28642a88e18**** |
| AIAgentId |
string |
Yes |
The agent ID. |
39f8e0bc005e4f309379701645f4**** |
| ReceiverId |
string |
Yes |
The ID of the user who receives the message. The ID can contain uppercase and lowercase letters and digits and must not exceed 64 bytes in length. |
60000042053 |
| Type |
string |
Yes |
The type of the message to send. Valid values:
|
announcement |
| Text |
string |
Yes |
The text content to send. |
hello |
| Mode |
string |
No |
The sending mode. Valid values:
Default value: offline. |
online |
| NeedArchiving |
boolean |
No |
Specifies whether to archive the chat history. Default value: true. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
******3B-0E1A-586A-AC29-742247****** |
Examples
Success response
JSON format
{
"RequestId": "******3B-0E1A-586A-AC29-742247******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.