List All Scheduled Messages
Lists all scheduled messages for the account, ordered by scheduled date descending
GET
/
api
/
v1
/
accounts
/
{account_id}
/
scheduled_messages
List All Scheduled Messages
curl --request GET \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_access_token: <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://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_access_token", "<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://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages")
.header("api_access_token", "<api-key>")
.asString();{
"payload": [
{
"id": 123,
"content": "Hello {{customer_name}}, your order is ready!",
"scheduled_at": 1739116800,
"sent_at": null,
"title": "Order Ready Notification",
"inbox_id": 5,
"inbox_name": "WhatsApp Business",
"conversation_id": 567,
"contact_id": 789,
"contact_name": "María González",
"contact_phone": "+525512345678",
"contact_email": "maria@example.com",
"message_id": null,
"created_at": 1738713600,
"status": "pending",
"error_message": null,
"template_params": null,
"attachments": [],
"recurrence_type": "daily",
"recurrence_interval": 1,
"recurrence_days": null,
"recurrence_end_type": "never",
"recurrence_end_date": null,
"recurrence_max_occurrences": null,
"recurrence_count": 0,
"parent_id": null,
"assignee_id": 15,
"assignee_name": "Carlos Ramírez",
"assignee_avatar_url": "https://example.com/avatars/carlos.jpg"
},
{
"id": 124,
"content": "Your weekly report is ready",
"scheduled_at": 1739203200,
"sent_at": null,
"title": "Weekly Report",
"inbox_id": 5,
"inbox_name": "WhatsApp Business",
"conversation_id": null,
"contact_id": 456,
"contact_name": "Pedro Sánchez",
"contact_phone": "+525598765432",
"contact_email": null,
"message_id": null,
"created_at": 1738800000,
"status": "pending",
"error_message": null,
"template_params": null,
"attachments": [
{
"id": 1,
"file_type": "file",
"account_id": 1,
"external_url": "https://cdn.example.com/reports/weekly.pdf",
"extension": "pdf",
"thumb_url": null
}
],
"recurrence_type": "weekly",
"recurrence_interval": 1,
"recurrence_days": [
1,
3,
5
],
"recurrence_end_type": "after_occurrences",
"recurrence_end_date": null,
"recurrence_max_occurrences": 10,
"recurrence_count": 0,
"parent_id": null,
"assignee_id": 15,
"assignee_name": "Carlos Ramírez",
"assignee_avatar_url": "https://example.com/avatars/carlos.jpg"
}
]
}⌘I
List All Scheduled Messages
curl --request GET \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_access_token: <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://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_access_token", "<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://chat.wiseapp360.com/api/v1/accounts/{account_id}/scheduled_messages")
.header("api_access_token", "<api-key>")
.asString();{
"payload": [
{
"id": 123,
"content": "Hello {{customer_name}}, your order is ready!",
"scheduled_at": 1739116800,
"sent_at": null,
"title": "Order Ready Notification",
"inbox_id": 5,
"inbox_name": "WhatsApp Business",
"conversation_id": 567,
"contact_id": 789,
"contact_name": "María González",
"contact_phone": "+525512345678",
"contact_email": "maria@example.com",
"message_id": null,
"created_at": 1738713600,
"status": "pending",
"error_message": null,
"template_params": null,
"attachments": [],
"recurrence_type": "daily",
"recurrence_interval": 1,
"recurrence_days": null,
"recurrence_end_type": "never",
"recurrence_end_date": null,
"recurrence_max_occurrences": null,
"recurrence_count": 0,
"parent_id": null,
"assignee_id": 15,
"assignee_name": "Carlos Ramírez",
"assignee_avatar_url": "https://example.com/avatars/carlos.jpg"
},
{
"id": 124,
"content": "Your weekly report is ready",
"scheduled_at": 1739203200,
"sent_at": null,
"title": "Weekly Report",
"inbox_id": 5,
"inbox_name": "WhatsApp Business",
"conversation_id": null,
"contact_id": 456,
"contact_name": "Pedro Sánchez",
"contact_phone": "+525598765432",
"contact_email": null,
"message_id": null,
"created_at": 1738800000,
"status": "pending",
"error_message": null,
"template_params": null,
"attachments": [
{
"id": 1,
"file_type": "file",
"account_id": 1,
"external_url": "https://cdn.example.com/reports/weekly.pdf",
"extension": "pdf",
"thumb_url": null
}
],
"recurrence_type": "weekly",
"recurrence_interval": 1,
"recurrence_days": [
1,
3,
5
],
"recurrence_end_type": "after_occurrences",
"recurrence_end_date": null,
"recurrence_max_occurrences": 10,
"recurrence_count": 0,
"parent_id": null,
"assignee_id": 15,
"assignee_name": "Carlos Ramírez",
"assignee_avatar_url": "https://example.com/avatars/carlos.jpg"
}
]
}