Send user a manual message

This method creates a manual message (chat, a big/small pop-up or email) and immediately sends it to the user.

Created conversation will appear in the "Inbox" section only after the user answers it.

URL

POST https://api.dashly.app/v1/users/{id}/sendmessage

Dashly ID (our ID) should be used as {id}.

Arguments

This method follows the general rules. Arguments are transmitted as GET or POST parameters.

Argument Description
auth_token Required. Authorization token (requires scope: messages-manual-send-one)
body Required. Text of the message.
type Types: popup_chat, popup_small, popup_big, email. Default: popup_chat

Answer

{
  "meta": {
    "status": 200
  },
  "data": {
    "conversation": 1128184,
    "message": 2804
  }
}

conversation field will contain conversation ID. message field will contain manual message ID.

Example

curl -X POST \
  --data-urlencode 'body=Hello' \
  --data-urlencode 'auth_token=XXX' \
  https://api.dashly.app/v1/users/2137216/sendmessage