curl --request GET \
--url 'https://api.example.com/api/threads/{id}' \
--header 'x-widget-token: YOUR_API_KEY'
{
"thread": {},
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"text": "Two-person tent, green — replacement for damaged pole set.",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Fetch a thread with its messages
Return . Exclude this route from rate limiting — the widget polls it to refresh.
GET
/
api
/
threads
/
{id}
curl --request GET \
--url 'https://api.example.com/api/threads/{id}' \
--header 'x-widget-token: YOUR_API_KEY'
{
"thread": {},
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"text": "Two-person tent, green — replacement for damaged pole set.",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Return
{ thread, messages }. Exclude this route from rate limiting — the widget polls it to refresh.
Path parameters
string
required
Thread id
Response
ThreadWithMessages
object
required
Status codes
| Code | Meaning |
|---|---|
200 | OK |
400 | Error |
401 | Error |
curl --request GET \
--url 'https://api.example.com/api/threads/{id}' \
--header 'x-widget-token: YOUR_API_KEY'
{
"thread": {},
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"text": "Two-person tent, green — replacement for damaged pole set.",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Last modified on August 31, 2026