---
title: "Trigger a patterns run"
method: POST
path: "/api/v2/llm-obs/v1/topic-discovery-runs"
tags: ["LLM Observability"]
---

# Trigger a patterns run

`POST /api/v2/llm-obs/v1/topic-discovery-runs`

Start a patterns run for a given configuration. The run executes asynchronously.

## Request body

- LLMObsPatternsTriggerRequest — Request to trigger an LLM Observability patterns run.
  - `data` LLMObsPatternsTriggerRequestData, required — Data object for triggering an LLM Observability patterns run.
    - `attributes` LLMObsPatternsTriggerRequestAttributes, required — Attributes for triggering an LLM Observability patterns run.
      - `config_id` string, required — The ID of the patterns configuration to run.
    - `type` 'topic_discovery', required — Resource type for triggering an LLM Observability patterns run.

## Response `202`

Accepted

- LLMObsPatternsTriggerResponse — Response after triggering an LLM Observability patterns run.
  - `data` LLMObsPatternsTriggerResponseData, required — Data object of an LLM Observability patterns trigger response.
    - `attributes` LLMObsPatternsTriggerResponseAttributes, required — Attributes of an LLM Observability patterns trigger response.
      - `config_id` string, required — The ID of the patterns configuration that was run.
      - `run_id` string, required — The ID of the patterns run that was started.
      - `status` string, required — Status of the patterns run.
    - `id` string, required — The ID of the patterns configuration that was run.
    - `type` 'topic_discovery_run', required — Resource type of an LLM Observability patterns trigger response.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too many requests
- `500` — Internal Server Error

---

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