Send Schedule Message

Sends schedule messages to your contacts

The Send Schedule Message method is used when you want iSlash to programmatically send scheduled message to your contacts. You must ask your admin to generate a session key for the specific channel in order to send the message

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 contro

identitystringRequired

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

send_atstringRequired

The send out date time of the message in the format of YYYY-MM-DD HH:MM:SS (e.g. 2023-01-01 00:00:00)

template_namestringRequired

The template message name in system

Please find it in the iSlash platform

variable_1 stringOptional

[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 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/schedule-message HTTP/1.1
Host: {islash_api_endpoint}
X-USER-TOKEN: text
Content-Type: application/json
Accept: */*
Content-Length: 181

{
  "session": "text",
  "identity": "text",
  "send_at": "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": []
}
Sample Response
{
    "meta": {
        "code": "RESP_OKAY",
        "message": "Success",
        "trace_id": "040a6b96021b42e3"
    },
    "data": []
}

Last updated