---
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'
- `sort_direction` 'asc' | 'desc'
- `from_unix_secs` integer, nullable — Start of the window to view topics for. When set with to_unix_secs, per-day topics in the range are aggregated together.
- `to_unix_secs` integer, nullable — End of the window to view topics for.
- `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
  - `window_start_unix_secs` integer, required
  - `window_end_unix_secs` integer, required
  - `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/db6eec599cbe/schema)
