Search Messages
GET /api/v1/team-chat/search
Search chat messages and thread titles by keyword.
Uses PostgreSQL full-text search with ranking and snippets.
Args: q: Search query string. limit: Maximum results to return. user: The authenticated user context. session: Async database session.
Returns: ChatSearchResponse with ranked results.
Authorizations
Parameters
Query Parameters
Search query
Search query
Max results
Max results
Responses
200
Successful Response
Full-text search results across chat messages and threads.
Attributes: results: Ranked search results. total: Total number of results. query: The original search query.
object
A single search result from full-text message search.
Attributes: message_id: The matching message UUID. thread_id: The thread containing the message. thread_title: Human-readable thread title. sender_role: Who sent the message. content: Full message content. snippet: Highlighted snippet with tags. rank: Relevance score from ts_rank_cd. created_at: When the message was created.
422
Validation Error