Skip to main content
GET
Get Widget Threads

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
UUID of the widget to retrieve threads for.

Query Parameters

number
default:1
Page number for pagination (minimum 1).
number
default:20
Number of threads per page (minimum 1, maximum 100).
string
Filter results to a specific thread by its UUID.

Response

number
HTTP status code (200 for success).
object
  • threads (array): Array of thread objects, each containing:
    • id (string): Thread UUID
    • created_at (string): ISO timestamp
    • ended_at (string | null): ISO timestamp of when the thread ended
    • live_agent_handoff_at (string | null): ISO timestamp of when the thread was handed off to a live agent
    • visitor_id (string | null): UUID of visitor (if available)
    • messages (array): Array of message objects, each containing:
      • id (string): Message UUID
      • sender_type (string): Either “USER” or “ASSISTANT”
      • created_at (string): ISO timestamp
      • content (string): Message content
      • original_content (string | null): Original message content before any modifications
  • total (number): Total number of threads matching the query (useful for calculating total pages)
This endpoint does not return 404 if no threads exist; it returns an empty array instead.

Docs for agents: llms.txt