Listar conversas
curl --request GET \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/chatsconst options = {method: 'GET'};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/chats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/chats"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/chats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.wabox.me/instances/{instance_id}/token/{token}/chats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"phone": "5511988887777",
"name": "Maria Silva",
"is_group": false,
"last_message_at": "2026-08-20T11:30:00.000Z",
"unread_count": 2,
"marked_unread": false,
"archived": false,
"pinned": true,
"muted": true,
"muted_until": "2026-08-21T11:30:00.000Z",
"ephemeral_seconds": 0
}
],
"page": 1,
"page_size": 100,
"total": 1
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Active subscription required"
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Listar conversas
O engine mantém, por instância, uma lista de conversas (só metadados — nunca o conteúdo das mensagens): iniciada com o histórico que o celular envia após o pareamento e depois atualizada pelo tráfego e pelas mudanças feitas no celular. Conversas fixadas vêm primeiro, depois as mais recentes. Imediato: exige a instância conectada (caso contrário, 409 instance_not_connected).
GET
/
instances
/
{instance_id}
/
token
/
{token}
/
chats
Listar conversas
curl --request GET \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/chatsconst options = {method: 'GET'};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/chats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/chats"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/chats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.wabox.me/instances/{instance_id}/token/{token}/chats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"phone": "5511988887777",
"name": "Maria Silva",
"is_group": false,
"last_message_at": "2026-08-20T11:30:00.000Z",
"unread_count": 2,
"marked_unread": false,
"archived": false,
"pinned": true,
"muted": true,
"muted_until": "2026-08-21T11:30:00.000Z",
"ephemeral_seconds": 0
}
],
"page": 1,
"page_size": 100,
"total": 1
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Active subscription required"
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}