---
title: "Get Agent Conversation Topics"
method: GET
path: "/v1/convai/agents/{agent_id}/topics"
tags: ["Agents Insights", "Agents Platform"]
---

# Get Agent Conversation Topics

`GET /v1/convai/agents/{agent_id}/topics`

Returns the latest topic discovery run results for a given agent.

## Path parameters

- `agent_id` string, required — ID of the agent

## Query parameters

- `page_size` integer, nullable — Number of top-level topic groups to return.
- `sort_by` 'conversations' | 'sentiment' | 'success_rate' | 'frustration'
- `sort_direction` 'asc' | 'desc'
- `from_unix_secs` integer, nullable — Start of the window to view topics for. When set with to_unix_secs, the completed daily topic-discovery runs in the range are aggregated together, so the window scopes the metrics as well as the topic set. Floored to the start of its UTC day because runs cover whole UTC days; aggregated_run_count reports how many runs were summed. Omit both bounds to get the single latest run.
- `to_unix_secs` integer, nullable — End of the window to view topics for.
- `include_evaluation_criteria` boolean — Include the per-criteria evaluation breakdown on each topic's metrics. Pass false to drop it: it dominates the payload and the weighted success_rate is returned either way.
- `cursor` string, nullable — Used for fetching next page. Cursor is returned in the response.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- GetAgentTopicsResponseModel
  - `topics` AgentTopicResponseModel[], required
    - `topic_id` string, required
    - `label` string, required
    - `description` string, required
    - `conversation_count` integer, required
    - `parent_topic_id` string, nullable
    - `x_2d` number, nullable
    - `y_2d` number, nullable
    - `metrics` TopicMetricsAggregate
      - `conversation_count` integer
      - `sentiment` TopicSentimentAggregate
        - `sentiment` NumericDistributionAggregate
          - `count` integer
          - `sum` number
          - `min` number, nullable
          - `max` number, nullable
        - `frustration` NumericDistributionAggregate
          - `count` integer
          - `sum` number
          - `min` number, nullable
          - `max` number, nullable
        - `positive_count` integer
        - `neutral_count` integer
        - `negative_count` integer
      - `evaluation_criteria` TopicEvaluationCriteriaAggregate[]
        - `criteria_id` string, required
        - `success_count` integer
        - `failure_count` integer
        - `unknown_count` integer
    - `success_rate` number, nullable — Success rate across the topic's evaluation criteria, weighted by scored conversations. Returned regardless of include_evaluation_criteria.
  - `window_start_unix_secs` integer, required
  - `window_end_unix_secs` integer, required
  - `aggregated_run_count` integer — Number of daily topic-discovery runs the returned metrics were summed over.
  - `has_more` boolean
  - `next_cursor` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/b96b80bcbb83/schema)
