---
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`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-runs`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

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.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/da68bf029e4c?raw)
