mPowerChat Message
mPowerChat Message is a messaging API used for sending encrypted plain text messages, to the users through the mPower app. The API accepts a text message as input and delivers it to the user specified in request URL.
Resource Informations
Name | Value |
---|---|
Requires authentication? | Yes |
Rate limited? | No |
Request
Request headers
Key | Value |
---|---|
Authorization | Bearer token |
Content-Type | application/json |
HTTP request URL for SSMS
POST https://{tenantId}.{hostname}/digitanium/v3/mpower/users/{userName}/chat/message
HTTP request URL for SHIFT
POST https://{hostname}/auth/realms/{tenantId}/mpower/v1/users/{userName}/message
note
API requests must be made over https. Calls made over plain http will fail.
Parameters
No Parameter fields are required.
Request body
Field Name | Type | Description |
---|---|---|
serviceUuid | String | UUID of the service through which the message needs to be send. |
messageType | String | The mpower chat message type. Supported values are: "processChatMessage", "textEntryRequest". |
version | Integer | Message gateway version number. |
messageText | String | Message to be sent. |
instanceId | String | Some string value.If not provided by default a Random ID will be assigned. |
Sample Request
{
"serviceUuid": "{service-uuid}",
"messageType": "processChatMessage",
"version": 3,
"messageContent": {
"messageText": "string"
}
}
Response
Field Name | Type | Description |
---|---|---|
messageId | String | Unique ID for the message. |
instanceId | String | InstanceID of the request. |
Sample Response
{
"messageId": "9vdJCsWs3D6HkWDGLN",
"instanceId": "instance-45f04320-fc0c-441d-8e95-1943701858d5"
}
Response Status Information
Status | Type | Description |
---|---|---|
200 | OK | For successfull update |
400 | status | Bad request |
401 | status | Unauthorized |