> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Generate Metric Failure Mode Insights

> Fan out audits to every eligible metric in the project.



## OpenAPI

````yaml post /observability/v1/metric-failure-mode-insights/bulk_generate/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /observability/v1/metric-failure-mode-insights/bulk_generate/:
    post:
      tags:
        - observability
      summary: Generate failure-mode insights for every metric in a project
      description: >-
        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.
      operationId: metric-failure-mode-insights-bulk-generate-create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetricFailureModeInsightBulkGenerate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/MetricFailureModeInsightBulkGenerate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MetricFailureModeInsightBulkGenerate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricFailureModeInsightBulkGenerate'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    MetricFailureModeInsightBulkGenerate:
      type: object
      description: |-
        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.
      properties:
        project:
          type: integer
          description: Project ID — fan out audits to every eligible metric in it.
        metric_names:
          type:
            - array
            - 'null'
          items:
            type: string
            maxLength: 255
          description: >-
            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).
      required:
        - project
  securitySchemes:
    api_key:
      type: apiKey
      name: X-CEKURA-API-KEY
      in: header
      description: >-
        API Key Authentication. It should be included in the header of each
        request.

````