List conversations
curl --request GET \
--url https://api.withallo.com/v2/api/conversations \
--header 'Authorization: <api-key>'import requests
url = "https://api.withallo.com/v2/api/conversations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.withallo.com/v2/api/conversations', 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.withallo.com/v2/api/conversations",
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: <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.withallo.com/v2/api/conversations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.withallo.com/v2/api/conversations")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"contact_number": "+14155551234",
"contacts": [
{
"id": "cnt-abc123",
"name": "Sarah Johnson",
"company": {
"id": "com-xyz789",
"name": "Acme Corp"
},
"deals": [
{
"id": "dea-def456",
"name": "Enterprise Plan",
"status": "open"
}
]
}
],
"last_activity": "2026-04-21T14:30:00Z",
"last_item": {
"id": "cll-abc123",
"type": "CALL",
"direction": "INBOUND",
"date": "2026-04-21T14:30:00Z",
"summary": "Customer called about upgrading their plan.",
"result": "ANSWERED",
"duration": 145
}
}
],
"pagination": {
"page": 1,
"size": 20,
"total_count": 156,
"total_pages": 8,
"has_more": true
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Conversations
Lister les conversations
Returns a paginated list of conversations grouped by contact phone number, sorted by most recent activity.
GET
/
v2
/
api
/
conversations
List conversations
curl --request GET \
--url https://api.withallo.com/v2/api/conversations \
--header 'Authorization: <api-key>'import requests
url = "https://api.withallo.com/v2/api/conversations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.withallo.com/v2/api/conversations', 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.withallo.com/v2/api/conversations",
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: <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.withallo.com/v2/api/conversations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.withallo.com/v2/api/conversations")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"contact_number": "+14155551234",
"contacts": [
{
"id": "cnt-abc123",
"name": "Sarah Johnson",
"company": {
"id": "com-xyz789",
"name": "Acme Corp"
},
"deals": [
{
"id": "dea-def456",
"name": "Enterprise Plan",
"status": "open"
}
]
}
],
"last_activity": "2026-04-21T14:30:00Z",
"last_item": {
"id": "cll-abc123",
"type": "CALL",
"direction": "INBOUND",
"date": "2026-04-21T14:30:00Z",
"summary": "Customer called about upgrading their plan.",
"result": "ANSWERED",
"duration": 145
}
}
],
"pagination": {
"page": 1,
"size": 20,
"total_count": 156,
"total_pages": 8,
"has_more": true
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Scope requis :
CONVERSATIONS_READpage et size pour contrôler les résultats. Voir Pagination.
Notes sur les champs
| Champ | Null quand |
|---|---|
last_item.summary | Éléments SMS, ou appels dont le résumé IA n’est pas encore disponible |
last_item.duration | Éléments SMS (s’applique uniquement aux appels) |
last_item.result | Éléments SMS (s’applique uniquement aux appels) |
last_item.recording_url | Enregistrement désactivé, appel sans réponse, ou éléments SMS |
last_item.transcript | Non demandé via extend=transcript, ou éléments SMS |
last_item.content | Éléments d’appel (s’applique uniquement aux SMS) |
last_item.status | Éléments d’appel (s’applique uniquement aux SMS) |
last_item.contacts | Tableau vide lorsqu’aucun contact correspondant n’existe dans le carnet d’adresses |
Paramètre extend
Le paramètre de requêteextend accepte une liste de champs optionnels séparés par des virgules. Actuellement pris en charge :
| Valeur | Effet |
|---|---|
transcript | Inclure les transcriptions complètes des appels sur les éléments de conversation |
400 avec le code UNSUPPORTED_EXTEND_VALUE.Autorisations
Paramètres de requête
Filter by Allo number (E.164). Required — list your numbers with GET /v2/api/numbers to find the right one.
Exemple:
"+14155550100"
Only return conversations with activity after this timestamp (ISO 8601). Ideal for incremental sync.
Exemple:
"2026-04-20T10:00:00Z"
Page number (1-indexed)
Plage requise:
x >= 1Results per page
Plage requise:
1 <= x <= 100Comma-separated optional fields. Supported: transcript
Exemple:
"transcript"
Cette page vous a-t-elle été utile ?