curl --request GET \
--url https://api.example.com/api/conversations/{route_name}/threads \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/api/conversations/{route_name}/threads"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/api/conversations/{route_name}/threads', 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.example.com/api/conversations/{route_name}/threads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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.example.com/api/conversations/{route_name}/threads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.example.com/api/conversations/{route_name}/threads")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/conversations/{route_name}/threads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"client_address": "<string>",
"last_activity_at": 123,
"last_delivery_status": "<string>",
"message_count": 123,
"thread_id": "<string>"
}
],
"next_page": 123,
"page": 123,
"page_size": 123,
"total": 123,
"truncated": true
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}List a conversation route's threads
The threads of route_name, newest activity first, one page at a time.
A thread listing spans every caller and address on the route, so it is admin-only. Each
item carries thread_id, client_address, message_count
and last_delivery_status summarized from the thread’s newest readable record, plus
last_activity_at — the route index’s own score, which is what this listing SORTS by,
so the moment shown and the position it is shown in always agree. That score is stamped
when a record is created and again when its turn completes; a later delivery transition
on the same record moves the record’s updated_at but not the thread’s activity.
status (one of the delivery-status vocabulary) keeps only threads whose summary status
matches; address keeps only threads whose id client-address suffix contains that
substring. Neither has a direct index — the per-status indexes are GLOBAL over
message_ids, not per-route thread ids — so a filter is a BOUNDED app-side post-scan
and a page that spent its scan budget answers truncated: true LOUDLY, never a silent
cut. An unknown status is a loud 400.
Authorization is decided BEFORE the route is looked up, so a non-admin is refused the
same way whether the name routes or not — a 404-here/403-there pair would answer which
route names exist to a caller with no business knowing. An unknown route is a loud 404
to an admin; a page or page_size below 1, or a page above the served
maximum, is a 400. Returns
{"items", "total", "page", "page_size", "next_page", "truncated"}, where total
counts the route’s indexed threads for an unfiltered listing, or the matches the bounded
scan found for a filtered one.
curl --request GET \
--url https://api.example.com/api/conversations/{route_name}/threads \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/api/conversations/{route_name}/threads"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/api/conversations/{route_name}/threads', 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.example.com/api/conversations/{route_name}/threads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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.example.com/api/conversations/{route_name}/threads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.example.com/api/conversations/{route_name}/threads")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/conversations/{route_name}/threads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"client_address": "<string>",
"last_activity_at": 123,
"last_delivery_status": "<string>",
"message_count": 123,
"thread_id": "<string>"
}
],
"next_page": 123,
"page": 123,
"page_size": 123,
"total": 123,
"truncated": true
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Path Parameters
Query Parameters
1-based page number, newest activity first.
1 <= x <= 1000000Items per page. A larger value is capped to 200, never refused.
x >= 1Keep only threads whose newest record's delivery_status is this one (validated against the delivery-status vocabulary; an unknown value is a 400).
Keep only threads whose id client-address suffix contains this substring.
Response
Success.
A page of thread summaries. next_page is null on the last page;
truncated is true when a filtered scan spent its budget before the page
filled.
Show child attributes
Show child attributes

