Skip to main content
Run a semantic search across persisted conversation records with GET /v2/ai/conversation_histories. Your query text is embedded into a vector and matched against indexed transcript chunks, so each result is a single chunk with a relevance score and its parent record’s metadata — ready to use as retrieval context for RAG.
curl --globoff \
  -H "Authorization: Bearer $TELNYX_API_KEY" \
  "https://api.telnyx.com/v2/ai/conversation_histories?q=flight+refund&record_type=voice&top_k=10"
Pass a query (q) and a record_type (use voice for SIP call history). Narrow results with the region, min_score, and filter[field][operator] parameters. See the Search conversation histories API reference for the full set of parameters, filter operators, the response schema, and SDK code samples.