Suggestions

close search

Send custom message to user

URL: http://api.stringee.com/v1/user/sendcustommessage

HTTP method: POST

Content-Type: application/json

Custom HTTP POST header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see Authentication

POST data (body):

{
    "from": "system",
    "toUser": "userid",
    "message": {"a":"Send custom message"}
}
Field Type Require Description
from String Yes From
toUser String Yes UserId receive custom message
message Json object Yes Custom message

Response:

{
    "r": response_code,
    "message": "response_message"
}
Field Type Require Description
r Int Yes Response code
message String No Response message

Sample request

POST /v1/user/sendcustommessage HTTP/1.1
Host: https://api.stringee.com
X-STRINGEE-AUTH: json_web_token
Accept: application/json

{
    "from": "system",
    "toUser": "userid",
    "message": {"a":"Send custom message"}
}

Sample response

{"r":0}