English
Send Text Message
About 148 wordsLess than 1 minute
2026-01-19
Description
Send a text message
Request Specification
Method: POST + application/json
Endpoint: https://${cloud domain}/cgi/message/send?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| toUser | List | Yes | Open platform employee ID list (message recipients, currently supports up to 500 users) |
| msgType | String | Yes | Message type, value: text |
| text | Map | No | Secondary object, text content details |
| &ensp: content | String | Yes | Text message content |
Request Example
{
"toUser":[
"TOUSER1",
"TOUSER2"
],
"msgType":"text",
"text":{
"content":"This is a text message"
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error codes reference |
Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}Notes
- Do not use the message field in the response for logical judgment, as errorMessage may change;
