List SMS Conversations
curl --request GET \
--url https://api.example.com/v1/sms-conversationsimport requests
url = "https://api.example.com/v1/sms-conversations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/sms-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.example.com/v1/sms-conversations",
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.example.com/v1/sms-conversations"
req, _ := http.NewRequest("GET", url, nil)
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/v1/sms-conversations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/sms-conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodySMS
List SMS Conversations
Returns a paginated list of SMS conversations (thread view per contact).
GET
/
v1
/
sms-conversations
List SMS Conversations
curl --request GET \
--url https://api.example.com/v1/sms-conversationsimport requests
url = "https://api.example.com/v1/sms-conversations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/sms-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.example.com/v1/sms-conversations",
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.example.com/v1/sms-conversations"
req, _ := http.NewRequest("GET", url, nil)
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/v1/sms-conversations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/sms-conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyList SMS Conversations
Returns a paginated list of SMS conversations (thread view per contact). Each conversation summarizes the latest message exchanged with a contact phone number. Default sort:last_message_at DESC.
Request
GET /v1/sms-conversations
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number (default: 1) |
per_page | integer | No | Results per page, max 100 (default: 25) |
lead_id | uuid | No | Filter by lead ID |
phone | string | No | Filter by phone number (matches contact_phone or company_phone) in E.164 format |
unread | boolean | No | Set to "true" to return only conversations with unread messages (unread_count > 0) |
workspace_id | uuid | No | Filter by workspace ID. Use the List Workspaces endpoint to get available IDs. Omit to return conversations from all workspaces. |
Example
curl -X GET \
"https://kdjmltmhxvvmiuehafgl.supabase.co/functions/v1/api-gateway/v1/sms-conversations?unread=true&per_page=25" \
-H "Authorization: Bearer rchd_live_xxxxxxxxxxxx"
const params = new URLSearchParams({
unread: "true",
per_page: "25"
});
const response = await fetch(
`https://kdjmltmhxvvmiuehafgl.supabase.co/functions/v1/api-gateway/v1/sms-conversations?${params}`,
{ headers: { "Authorization": "Bearer rchd_live_xxxxxxxxxxxx" } }
);
const { data, meta } = await response.json();
import requests
response = requests.get(
"https://kdjmltmhxvvmiuehafgl.supabase.co/functions/v1/api-gateway/v1/sms-conversations",
headers={"Authorization": "Bearer rchd_live_xxxxxxxxxxxx"},
params={"unread": "true", "per_page": 25}
)
result = response.json()
Response
{
"data": [
{
"id": "conv-uuid-1",
"lead_id": "a1b2c3d4-...",
"contact_phone": "+33612345678",
"company_phone": "+33140000000",
"contact_name": "John Doe",
"last_message_body": "Sounds good, let's talk tomorrow at 2pm.",
"last_message_at": "2026-09-14T11:30:00.000Z",
"last_message_direction": "inbound",
"unread_count": 2,
"created_at": "2026-09-14T10:00:00.000Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | uuid | Conversation unique identifier |
lead_id | uuid | Associated lead ID (if linked) |
contact_phone | string | The contact’s phone number |
company_phone | string | Your company phone number used in the conversation |
contact_name | string | Name of the contact (if known) |
last_message_body | string | Content of the most recent message |
last_message_at | datetime | Timestamp of the most recent message |
last_message_direction | string | Direction of the most recent message: inbound or outbound |
unread_count | integer | Number of unread inbound messages in this conversation |
created_at | datetime | Conversation creation timestamp |
workspace_id | uuid | Workspace ID the conversation belongs to (null = default workspace) |
.png?fit=max&auto=format&n=PYj-p9lRwfHX4QQS&q=85&s=967f00940a17d1d8cc11bd8995dc98d0)
.png?fit=max&auto=format&n=PYj-p9lRwfHX4QQS&q=85&s=5072033d90dfd5e7cc9349712ea4e145)