---
title: "Generate failure-mode insights for every metric in a project"
method: POST
path: "/observability/v1/metric-failure-mode-insights/bulk_generate/"
tags: ["observability"]
---

# Generate failure-mode insights for every metric in a project

`POST /observability/v1/metric-failure-mode-insights/bulk_generate/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/observability/v1/metric-failure-mode-insights/bulk_generate/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Queue a failure-mode audit for every eligible metric in the project over the last 24 hours and return the new insight rows to poll. Optionally restrict to specific metrics with `metric_names`. Metrics with no failing calls are skipped and not charged. ⚠ Consumes credits per metric that produces an insight — see the pricing endpoint.

## Request body

- MetricFailureModeInsightBulkGenerate: Request body for ``POST /metric-failure-mode-insights/bulk_generate/``. Triggers an insight audit for every eligible metric in the project using a sliding T-24h to T window. Returns the new insight rows so the FE can poll them.
  - `project` integer, required: Project ID — fan out audits to every eligible metric in it.
  - `metric_names` string[], nullable: Optional metric-name allowlist. If provided, only those metrics are audited (used by the FE to keep the toast count aligned with the cards on screen when a view filter is applied).

## Response `200`

- MetricFailureModeInsightBulkGenerate: Request body for ``POST /metric-failure-mode-insights/bulk_generate/``. Triggers an insight audit for every eligible metric in the project using a sliding T-24h to T window. Returns the new insight rows so the FE can poll them.
  - `project` integer, required: Project ID — fan out audits to every eligible metric in it.
  - `metric_names` string[], nullable: Optional metric-name allowlist. If provided, only those metrics are audited (used by the FE to keep the toast count aligned with the cards on screen when a view filter is applied).

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/observability/v1/metric-failure-mode-insights/bulk_generate/post.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
