Skip to content

Send System Message



POST /admin/message/system

Sends a system message to a specific list of user IDs. These are typically non-conversational messages (e.g., notifications, status updates). Only the specified online recipients will receive the message in real-time. For now, the admin/message/system message can only be caught in the console.

{ Admin-Api-Key: {{ HTTP_ADMIN_API_KEY }} }

Content-Type: application/json

{
"organizationId": "680a2fae96cc69d78861f101",
"senderId": "63480e68f4794709f802a2fa",
"messageSystem": {
"id": "5а34p21m0xj23",
"uids": ["63480e68f4794709f802a2fc", "63480e68f4794709f802a2fb"],
"x": {
"param1": "value",
"param2": "value"
}
}
}
FieldTypeDescription
organizationIdstringOrganizationId performing request
senderIdstringUser ID of the sender
messageSystem.idstringUnique message ID received from the server
messageSystem.uidsarray[string]List of recipient user IDs (only online users will receive it)
messageSystem.xobjectCustom metadata parameters (optional), e.g. { "event_type": "X" }

{
"ack": {
"mid": "5а34p21m0xj23",
"t": 15673838833
}
}
{
"system_message": {
"_id": "5а34p21m0xj23",
"t": 15673838833,
"from": "634ec51c0b65918393dca5bf",
"x": {
"param1": "value",
"param2": "value"
}
}
}