Get Schedules
curl --request GET \
--url https://api.l2msg.com/whatsapp/schedule \
--header 'apikey: <api-key>'import requests
url = "https://api.l2msg.com/whatsapp/schedule"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.l2msg.com/whatsapp/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.l2msg.com/whatsapp/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$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 := "https://api.l2msg.com/whatsapp/schedule"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.l2msg.com/whatsapp/schedule")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.l2msg.com/whatsapp/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "780bd49b-f451-46f8-b60d-1526bdda9a27",
"phone": "+5561999999999",
"text": "CRON REP TEST",
"sendAt": 1744228685,
"channel": "Channel",
"cronExpr": "*/3 * * * *",
"repeats": 2
}
]Schedules
Get Schedules
Get Schedules
GET
/
schedule
Get Schedules
curl --request GET \
--url https://api.l2msg.com/whatsapp/schedule \
--header 'apikey: <api-key>'import requests
url = "https://api.l2msg.com/whatsapp/schedule"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.l2msg.com/whatsapp/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.l2msg.com/whatsapp/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$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 := "https://api.l2msg.com/whatsapp/schedule"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.l2msg.com/whatsapp/schedule")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.l2msg.com/whatsapp/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "780bd49b-f451-46f8-b60d-1526bdda9a27",
"phone": "+5561999999999",
"text": "CRON REP TEST",
"sendAt": 1744228685,
"channel": "Channel",
"cronExpr": "*/3 * * * *",
"repeats": 2
}
]Authorizations
Your authorization key header
Response
200 - application/json
Ok
O identificador único do agendamento.
O número de telefone de destino com código do país.
O texto da mensagem a ser enviada.
O timestamp Unix de quando a mensagem deve ser enviada.
O canal de envio da mensagem.
A expressão cron para agendamentos recorrentes.
O número de repetições para o agendamento recorrente.
⌘I