List Transcripts by Agent
Transcripts API Endpoints
List Transcripts by Agent
Retrieve a paginated list of session transcripts handled by a specific voice agent.
GET
List Transcripts by Agent
Retrieve a complete, paginated history of all conversations handled by a specific Voice Agent. If you have built multiple agents (e.g., one for Customer Support and another for Sales), this endpoint makes it incredibly easy to isolate the call logs for just one of those entities. This is the perfect endpoint to power an “Agent Performance” or “Recent Calls” view in your application’s dashboard.Documentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authentication Required: You must include your API key in the
x-api-key header to authenticate this request.Required Parameters
agentId(Path Parameter): The 24-character unique identifier of the agent whose transcripts you want to view.
Managing Large Datasets
Agents that handle high volumes of calls will quickly accumulate thousands of transcripts. Use the query parameters to control how much data you receive at once:limit: Defines how many session records to return in a single response (default is usually 10 or 20).offset: Allows you to skip a specific number of records. If yourlimitis 10, anoffsetof 10 will fetch page 2.sort: Choosedescto see the most recently completed calls first, orascto view them in the order they occurred historically.
Understanding the Response
A successful200 OK response returns a standard pagination object.
items: An array containing the actual transcript objects. Each object includes thechatHistory, thesessionReport(if configured), and metadata likedurationMsandmessageCount.total: The absolute total number of transcripts this agent has recorded.nextOffset: A highly useful property that tells your frontend exactly whatoffsetvalue to pass in your next API call to fetch the next page of results.
Authorizations
Path Parameters
The unique identifier of the agent.
Example:
"f790923795a23467555c0ad6"
Query Parameters
The maximum number of transcripts to return per page.
Example:
10
The number of items to skip for pagination.
Example:
0
Sort order based on creation time.
Available options:
asc, desc Example:
"desc"