Daftar pengiriman terjadwal
curl --request GET \
--url http://localhost:3000/send/schedules \
--header 'Authorization: Basic <encoded-value>'import requests
url = "http://localhost:3000/send/schedules"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('http://localhost:3000/send/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/send/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/send/schedules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/send/schedules")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/send/schedules")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": "SUCCESS",
"message": "Schedules fetched",
"results": {
"data": [
{
"id": "0b5c3a8e-7f5d-4d6f-9d1e-2f8c1a7b9e10",
"message_type": "text",
"phone": "6289685028129@s.whatsapp.net",
"summary": "selamat pagi",
"status": "active",
"scheduled_at": "2026-10-01T02:00:00Z",
"next_run_at": "2026-10-01T02:00:00Z",
"timezone": "Asia/Jakarta",
"recurrence": "once",
"weekdays": [
1,
3,
5
],
"day_of_month": 15,
"end_at": "2023-11-07T05:31:56Z",
"occurrence_limit": 10,
"occurrence_count": 0,
"attempts": 0,
"last_run_at": "2023-11-07T05:31:56Z",
"last_message_id": "3EB0B430B6F8F1D0E053AC120E0A9E5C",
"last_error": "<string>",
"created_at": "2026-09-25T08:00:00Z",
"updated_at": "2026-09-25T08:00:00Z"
}
],
"pagination": {
"limit": 25,
"offset": 0,
"total": 3
}
}
}{
"code": 400,
"message": "field cannot be blank",
"results": null
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "you are not loggin",
"results": null
}send
Daftar pengiriman terjadwal
Menampilkan daftar pengiriman terjadwal perangkat. Jadwal mendatang ditampilkan terlebih dahulu (waktu eksekusi berikutnya yang paling dekat di urutan pertama), diikuti jadwal yang telah berakhir, dengan yang terbaru di urutan pertama.
GET
/
send
/
schedules
Daftar pengiriman terjadwal
curl --request GET \
--url http://localhost:3000/send/schedules \
--header 'Authorization: Basic <encoded-value>'import requests
url = "http://localhost:3000/send/schedules"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('http://localhost:3000/send/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/send/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/send/schedules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/send/schedules")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/send/schedules")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": "SUCCESS",
"message": "Schedules fetched",
"results": {
"data": [
{
"id": "0b5c3a8e-7f5d-4d6f-9d1e-2f8c1a7b9e10",
"message_type": "text",
"phone": "6289685028129@s.whatsapp.net",
"summary": "selamat pagi",
"status": "active",
"scheduled_at": "2026-10-01T02:00:00Z",
"next_run_at": "2026-10-01T02:00:00Z",
"timezone": "Asia/Jakarta",
"recurrence": "once",
"weekdays": [
1,
3,
5
],
"day_of_month": 15,
"end_at": "2023-11-07T05:31:56Z",
"occurrence_limit": 10,
"occurrence_count": 0,
"attempts": 0,
"last_run_at": "2023-11-07T05:31:56Z",
"last_message_id": "3EB0B430B6F8F1D0E053AC120E0A9E5C",
"last_error": "<string>",
"created_at": "2026-09-25T08:00:00Z",
"updated_at": "2026-09-25T08:00:00Z"
}
],
"pagination": {
"limit": 25,
"offset": 0,
"total": 3
}
}
}{
"code": 400,
"message": "field cannot be blank",
"results": null
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "you are not loggin",
"results": null
}