Send Template Message

Sends template messages to your contacts

Sends template messages to your contacts

post
Header parameters
X-USER-TOKENstringRequired

The secret key provided by iSlash for accessing the iSlash API platform

Body
sessionstringRequired

The session key generated by your admin for controlling which channel is allowed to send message across API

identitystringRequired

The target contact number (i.e.: 85256872847)

template_namestringRequired

The template message name in system

Please find it in the iSlash platform

variable_1stringOptional

[Optional] depend on the template

$name: customer name in system

Or free text

**Make sure it contains no newlines, tabs, or more than 4 consecutive spaces

variable_2stringOptional

[Optional] depend on the template

$name: customer name in system

Or free text

**Make sure it contains no newlines, tabs, or more than 4 consecutive spaces

variable_3stringOptional

[Optional] depend on the template

$name: customer name in system

Or free text

**Make sure it contains no newlines, tabs, or more than 4 consecutive spaces

button_url_variable_1stringOptional

[Optional] depend on the template

$name: customer name in system

Or free text

**Make sure it contains no newlines, tabs, or more than 4 consecutive spaces

mediafileOptional

[Optional]depend on the template, image/video/document

Responses
200
Success
application/json
post
POST /api/public/send-message HTTP/1.1
Host: {islash_api_endpoint}
X-USER-TOKEN: text
Content-Type: application/json
Accept: */*
Content-Length: 163

{
  "session": "text",
  "identity": "text",
  "template_name": "text",
  "variable_1": "text",
  "variable_2": "text",
  "variable_3": "text",
  "button_url_variable_1": "text",
  "media": null
}
200

Success

{
  "meta": {
    "code": "text",
    "message": "text"
  },
  "data": {}
}

Last updated