---
title: "List patterns templates"
method: GET
path: "/api/v2/llm-obs/v1/topic-discovery-templates"
tags: ["Agent Observability"]
---

# List patterns templates

`GET /api/v2/llm-obs/v1/topic-discovery-templates`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templates`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/llm-obs/v1/topic-discovery-templates/get.ts> (a function with typed inputs; its response is checked against the schema)

List all enabled patterns templates.

## Response `200`

OK

- LLMObsPatternsTemplatesResponse: Response containing a list of Agent Observability patterns templates.
  - `data` LLMObsPatternsTemplatesResponseData, required: Data object of a list of Agent Observability patterns templates.
    - `attributes` LLMObsPatternsTemplatesResponseAttributes, required: Attributes of a list of Agent Observability patterns templates.
      - `templates` LLMObsPatternsTemplateItem[], required: List of patterns templates.
        - `clustering_instructions` string, required: Instructions guiding how topics are clustered for configurations linked to this template.
        - `created_at` string, date-time, required: Timestamp when the template was created.
        - `description` string, required: Human-readable description of what the template is for.
        - `evp_query_prefix` string, required: Prefix merged into the query that selects spans for configurations linked to this template.
        - `id` string, required: Unique identifier of the template.
        - `name` string, required: Name of the template.
        - `scope` string, required: Scope the template applies to.
        - `template` string, required: Template used to guide topic generation for configurations linked to this template.
        - `time_frame_duration_ms` integer, required: Default lookback window, in milliseconds, for configurations linked to this template.
    - `id` string, required: Identifier of the list response.
    - `type` 'list_topic_discovery_templates_response', required: Resource type of a list of Agent Observability patterns templates.

## Other responses

- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
