Retrieves conversations for a given account and project. Supports three retrieval modes: transcript search, semantic search, and random sampling. When no retrieval mode is specified, the endpoint returns all conversations matching the given filters (default behavior). Only one retrieval mode may be specified per request.
Contact your PolyAI representative.
Search mode. Use transcript for full-text search over conversation transcripts, or semantic for vector similarity search. Requires query to be set. Mutually exclusive with sample.
transcript, semantic Sampling mode. Use random to return a random sample of conversations within the time range. No query required. Mutually exclusive with query_type.
random The search text used for transcript or semantic search. Required when query_type is set.
Transcript search only. Filter by user or agent turns. Defaults to both.
user, agent One or more channels to filter by (e.g. voice, chat). Can be specified multiple times.
Client Environment - sandbox, pre-release or live
sandbox, pre-release, live The start of the time range of the conversations to get, in ISO8601 format
The end of the time range of the conversations to get, in ISO8601 format
Max number of conversations to return per API call. If the result set of your query is larger than this, it will be paginated.
1 <= x <= 5000Offset within result set to fetch.
x >= 0If it is set, we would return all conversations under this variant_id. Note that you may only specify either one of the variant_id or variant_name.
If it is set, we would return all conversations under this variant_name. Note that you may only specify either one of the variant_id or variant_name. Also, make sure to encode any spaces in the name with "%20"
If it is set to false, we only return finished conversations. If it is set to true, we only return conversations still in progress. By default, this parameter is None and we return all conversations.
If true, include the latency info for each conversation.
If true, include additional generative AI metadata for each conversation turn. This does not control whether the turns array is returned — turns are always included in the response.