Retrieve a conversation and all its messages by thread ID.
The conversation must belong to the authenticated user’s organization.
Stream status values:
in_progress: Response is currently being generatedcompleted: Response generation finished successfullystopped: Response generation was manually stoppederror: Response generation encountered an errortimeout: Response generation timed outnull: No active streamJWT token from Clerk authentication.
Must be from a user with org:admin role.
The UUID of the conversation thread
"550e8400-e29b-41d4-a716-446655440000"
Successfully retrieved conversation
Unique conversation identifier
"550e8400-e29b-41d4-a716-446655440000"
ID of the agent this conversation is with
123
Clerk user ID of the conversation owner
"user_2ABC123DEF"
When the conversation was created
"2024-01-15T10:30:00.000Z"
When the conversation was last updated
"2024-01-15T10:35:00.000Z"
All messages in the conversation, ordered by creation time
Organization the conversation belongs to
"org_xxx"
Conversation name/title (auto-generated or user-defined)
"Help with quarterly report"
Parent conversation ID for branched conversations
null
The system prompt used for this conversation (for audit)
"You are a helpful assistant..."
Current streaming status
in_progress, completed, stopped, error, timeout "completed"
When the conversation was soft-deleted (null if active)
null
Present and true if conversation was soft-deleted
false