API
  • Welcome to iSlash API Docs
    • Welcome
  • Template Message
    • Send Template Message
    • Get Template Message
  • Session Message
    • Send Session Message
  • Sticker List
    • Get Sticker List
    • Get Sticker Image
  • Message Status (Webhook)
    • WhatsApp Channel
    • Facebook Channel
  • Broadcast Message
    • Send Broadcast Message
    • Get Broadcast
  • Labels
    • Get Labels
    • Attach Label
    • Detach Label
    • Get Customers By Label IDs
  • Schedule Message
    • Send Schedule Message
  • Conversation
    • Assign Conversation To User
    • Unassign Conversation From User
  • User
    • Get Users
Powered by GitBook
On this page
  1. Template Message

Send Template Message

Sends template messages to your contacts

PreviousWelcomeNextGet Template Message

Last updated 11 months ago

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": {}
}