Skip to content
TriedDocs
Chats and SMS

List SMS chats

List SMS conversations with message counts.

GEThttps://api.tried.com.au/list-sms-chats

Returns up to 200 SMS chats, most recently updated first. Messages are not included; each item has a count and the last message time instead. Beyond Retell

Request#

This endpoint takes no parameters.

Example request#

curl "https://api.tried.com.au/list-sms-chats" \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/list-sms-chats", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/list-sms-chats",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
data = res.json()

Response#

200 OK

[
  {
    "chat_id": "chat_7e8f9a0b1c2d3e4f5a6b7c8d",
    "chat_type": "sms",
    "agent_id": "agent_3f9a1c0b2d4e5f6a7b8c9d0e",
    "chat_status": "ongoing",
    "from_number": "+61291234567",
    "to_number": "+61412345678",
    "retell_llm_dynamic_variables": {},
    "metadata": {},
    "start_timestamp": 1792310400000,
    "end_timestamp": null,
    "messages": [],
    "message_count": 4,
    "last_message_timestamp": 1792311000000
  }
]

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the calls scope.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.