Scheduled Messages

Schedule messages to be sent for later.

The easiest way to use Omnichannel API is with our official libraries. Libraries will take care of authentication, request validation and response handling.

Schedule a message

Send a message with time_to_send parameter to schedule it for later. Learn how to compose a message in our quickstart guide.

omnimessage = Omnimessage(
  time_to_send="date in ISO-8061 format",
  messages=(sms, viber, whatsapp))
const omnimessage = MessenteApi.Omnimessage.constructFromObject({
  messages: [viber, sms, whatsapp],
  to: "phone number in international format",
  timeToSend: "date in ISO-8061 format"
$omnimessage = new Omnimessage([
  "dlr_url" => "YOUR_WEBHOOK_URL",
  "time_to_send" => "date in ISO-8061 format"]);
omnimessage.setTimeToSend("date in ISO-8061 format");
omnimessage.time_to_send = 'date in ISO-8061 format'
var omnimessage = new Omnimessage(
  time_to_send="date in ISO-8061 format",
  messages: messages);
curl -X POST \
  '' \
  -H "Content-Type: application/json" \
  -d '{
    "time_to_send": "date in ISO-8061 format",
    "messages": [
        "channel": "sms",
        "sender": "<sender name (optional)>",
        "text": "hello sms"

Time Formatting

  • Time must be specified in the ISO 8601 format.
  • Default timezone is UTC.

Both of these cases are allowed:

  1. 2019-06-22T09:05 - UTC is set as timezone
  2. 2019-06-22T09:05:07+04:00 - Default timezone is ignored and UTC+4 is used

Cancel a scheduled message

To cancel a scheduled message you need to know the omnimessage_id that you got when you sent out the message.

# pip install messente-api

from messente_api import ApiClient, Configuration, OmnimessageApi
from import ApiException

configuration = Configuration()
configuration.username = "YOUR_MESSENTE_API_USERNAME"
configuration.password = "YOUR_MESSENTE_API_PASSWORD"

api_instance = OmnimessageApi(ApiClient(configuration))
omnimessage_id = "YOUR_OMNIMESSAGE_ID"

except ApiException as e:
    print("Exception when calling cancel_scheduled_message: %s\n" % e)
// npm i messente_api

const MessenteApi = require('messente_api');

const defaultClient = MessenteApi.ApiClient.instance;
const basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR_MESSENTE_API_USERNAME';
basicAuth.password = 'YOUR_MESSENTE_API_PASSWORD';

const api = new MessenteApi.OmnimessageApi();
const omnimessage_id = 'YOUR_OMNIMESSAGE_ID';

api.cancelScheduledMessage(omnimessage_id, (error, _) => {
  if (error) {
  } else {
    console.log('API called successfully');

// composer require messente/messente-api-php

require_once __DIR__.'/vendor/autoload.php';

use Messente\Api\Api\OmnimessageApi;
use Messente\Api\Configuration;

$config = Configuration::getDefaultConfiguration()

$apiInstance = new OmnimessageApi(
    new GuzzleHttp\Client(),

$omnimessage_id = 'YOUR_OMNIMESSAGE_ID';

try {
} catch (Exception $e) {
    echo 'Exception when calling cancelScheduledMessage: ', $e->getMessage(), PHP_EOL;
import com.messente.ApiClient;
import com.messente.ApiException;
import com.messente.api.OmnimessageApi;
import com.messente.auth.HttpBasicAuth;

// repositories { jcenter() }
// dependencies { implementation 'com.messente.api:messente-api' }

public class Main {
    public static void main(String[] args) {
        ApiClient apiClient = new ApiClient();

        HttpBasicAuth basicAuth = (HttpBasicAuth) apiClient.getAuthentication("basicAuth");

        String omnimessageId = "YOUR_OMNIMESSAGE_ID";

        OmnimessageApi apiInstance = new OmnimessageApi(apiClient);

        try {
        } catch (ApiException e) {
# gem install messente_api

require 'messente_api'

MessenteApi.configure do |config|
  config.username = 'YOUR_MESSENTE_API_USERNAME'
  config.password = 'YOUR_MESSENTE_API_PASSWORD'

api_instance =
ominmessage_id = 'YOUR_OMNIMESSAGE_ID'

rescue MessenteApi::ApiError => e
  puts "Exception when calling cancel_scheduled_message: #{e}"
// PM > Install-Package com.Messente.Api

using System;
using System.Diagnostics;
using com.Messente.Api.Api;
using com.Messente.Api.Client;

namespace Example
    public class SendOmniMessageExample
        public static void Main()
            Configuration conf = new Configuration();
            conf.Username = "YOUR_MESSENTE_API_USERNAME";
            conf.Password = "YOUR_MESSENTE_API_PASSWORD";
            var apiInstance = new OmnimessageApi(conf);
            var omnimessageId = "YOUR_OMNIMESSAGE_ID";

            catch (Exception e)
                Debug.Print("Exception when calling CancelScheduledMessage: " + e.Message);
curl \