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.
Documentation Index
Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
Use this file to discover all available pages before exploring further.
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 <= 1000Offset within result set to fetch. Prefer cursor for paginating through large result sets — offset-based pagination becomes progressively slower at scale and may drift when conversations are written concurrently.
x >= 0Opaque cursor for keyset pagination. Omit on the first request, then pass the cursor value returned by the previous response to fetch the next page. Cursors are URL-safe, encode the position within the result set, and remain stable as new conversations are written. Mutually preferable to offset for paginating through large result sets. Returns a 400 if the cursor value is malformed.
If 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.
OK
If present, the result is being paginated and requires another API call to fetch the next portion (pass the provided next_offset as the offset param for the next API call). For new integrations, prefer the cursor field for faster, drift-free pagination.
Opaque cursor pointing to the start of the next page. Pass this value as the cursor query parameter on the next request to fetch the following page. null when there are no more pages.