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

# List GenAI Alert Rules

> Lists all GenAI Alert Rules with pagination



## OpenAPI

````yaml GET /v3/genai-alert-rules
openapi: 3.0.3
info:
  title: Fiddler API - 2.0
  description: APIs to interact with Fiddler
  termsOfService: https://fiddler.ai/about/terms
  contact:
    email: support@fiddler.ai
  license:
    name: Proprietary
    url: '2.0'
  version: '2.0'
servers: []
security:
  - BearerAuth: []
tags:
  - name: access-key
    description: CRUD operations for API keys
  - name: agent-v3
    description: CRUD for the Agent Registry (Stage 1, manual entries)
  - name: aggregation-invalidation-request-v3
    description: Endpoints related to retrieving aggregation invalidation requests
  - name: alert-rules-v3
    description: CRUD for Alert Rules, Summary, and Stats APIs
  - name: application-v3
  - name: auth
    description: Authentication strategies and login flows
  - name: baseline-v3
    description: CRUD for baseline
  - name: catalog-v3
    description: >-
      Entity catalog provides paginated, searchable discovery of entity names
      (attribute keys, agent names, span types, span names, score names,
      evaluator config names) and their distinct values. Powered by ClickHouse
      materialized views — no worker or PostgreSQL dependency.
  - name: chart-annotation-v3
    description: Endpoints related to retrieving chart annotations
  - name: chart-v3
    description: CRUD for chart
  - name: queries-v3
    description: v3 queries API
  - name: configuration-v3
    description: >
      Read and change runtime configurations (Config Manager) for your
      organization, its projects, and its models.


      **Private preview.** These endpoints accept requests on every deployment.

      Whether a saved value takes effect depends on two deployment settings that
      are off by default:

      one makes Fiddler read stored values,

      and the other runs the configuration worker, which applies retention
      changes to stored data.

      Contact your Fiddler Customer Success Manager before using these
      endpoints.


      This reference documents the data retention (TTL) settings:

      `PROD_EVENTS_TTL_DAYS`, `GENAI_TRACES_TTL_DAYS`, and
      `GENAI_METRICS_TTL_DAYS`.

      The API accepts other registered settings too;

      contact your Fiddler Customer Success Manager before changing any of them.

      **Retention settings permanently delete data** once it is older than the
      configured period.

      When existing data is affected depends on the setting; see each setting's
      description.
  - name: cost-evaluators-v3
    description: >
      Paginated roll-up of per-evaluator LLM cost and token usage, aggregated
      hourly. Available only on deployments with evaluator cost reporting
      enabled.
  - name: custom-metrics-v3
  - name: dimensionality-reduction-v3
  - name: environment-v3
    description: Endpoints related to environment management
  - name: evals
  - name: datasets
  - name: evaluation-v3
  - name: evaluator-v3
  - name: rule-evaluators-v3
  - name: experiment-v3
  - name: explainability-v3
  - name: llm_rca-v3
  - name: file-upload
    description: Endpoints related to file uploading.
  - name: fql-expressions-v3
    description: >
      Endpoints for listing FQL (Fiddler Query Language) functions available for
      GenAI custom metrics. Used by the frontend for autocomplete and signature
      hints in the FQL editor.
  - name: genai-alert-rules-v3
    description: CRUD API for GenAI Alert Rules
  - name: genai-custom-metrics-v3
    description: API for GenAI Custom Metrics
  - name: genai-filters-v3
    description: API for GenAI Filters
  - name: genai-metrics-v3
    description: >-
      Endpoints for pre-aggregated GenAI metrics. All metric data is
      pre-aggregated hourly by a Celery-based metric collector; no real-time
      aggregation is performed at request time.
  - name: guardrails-api
    description: Endpoints related to retrieving Guardrails specific data
  - name: ingestion-v3
  - name: intercom-api
    description: Endpoints related to intercom APIs
  - name: jobs-v3
  - name: llm-gateway-v3
  - name: auth-login
  - name: auth-logout
  - name: mcp-client-setup-v3
    description: Endpoints for retrieving MCP client setup instructions.
  - name: metrics-v3
    description: Metrics endpoints
  - name: model-v3
  - name: dashboard-v3
  - name: model-deployment-v3
  - name: monitoring-summary-v3
  - name: histograms-v3
  - name: organization-roles-v3
    description: Update user org role
  - name: organization-settings-v3
    description: Update organization settings such as timezone, email configuration, etc.
  - name: pagerduty-api
    description: CRUD for Pagerduty services.
  - name: project-v3
  - name: project-roles-v3
    description: Project role assignment management
  - name: scores-v3
    description: Unified CRUD for scores and annotations
  - name: searchable-text-key-v3
    description: >-
      Manage the global searchable text keys table that controls which OTel
      attribute keys are routed to the full-text-searchable `ValueContent`
      column in the unified attributes table. Changes propagate to the backing
      ClickHouse dictionary within 1-2 minutes and affect all tenants.
  - name: segments-v3
  - name: semantic-mapping-v3
    description: >-
      Manage the global semantic name mappings table that maps raw OTel
      attribute keys to canonical semantic concepts. Changes propagate to the
      backing ClickHouse dictionary within 1-2 minutes and affect all tenants.
  - name: server-info-v3
    description: Endpoints related to retrieving server information
  - name: service-account
    description: >
      Service accounts and their API keys. A human Org Admin manages the service
      accounts of their own organization: create, read, update, and
      enable/disable (there is no delete — an account is disabled instead), and
      issue, rename, enable/disable, and revoke each account's API keys (a key's
      expiry is fixed at creation and changed only by rotating the key). An API
      key is an `fks_` secret that inherits the account's grants and cannot
      manage service accounts; an active, unexpired key must be disabled before
      it can be revoked, and it authenticates only while both it and its account
      are active. Scopes here are capability scopes (what the account may do),
      not OAuth scopes.
  - name: sessions-v3
    description: v3 session APIs
  - name: span-v3
  - name: team-roles-v3
  - name: team-v3
  - name: traces-v3
    description: v3 trace api for monitoring
  - name: fetch-sessions-v3
    description: v3 fetch sessions api for monitoring
  - name: user-access-key
    description: >
      CRUD operations for user API keys. All endpoints are user-scoped — each
      user can only operate on their own API keys. No one including Org admins
      have access to other users' API keys.
  - name: users-v3
  - name: version-compatibility-v3
  - name: webhooks
externalDocs:
  url: https://docs.fiddler.ai
  description: Find out more about Fiddler
paths:
  /v3/genai-alert-rules:
    get:
      tags:
        - genai-alert-rules-v3
      summary: List GenAI Alert Rules
      description: Lists all GenAI Alert Rules with pagination
      operationId: listGenAIAlertRules
      parameters:
        - name: filter
          in: query
          required: false
          schema:
            type: string
          style: form
          explode: false
          examples:
            byName:
              value: >-
                {"condition":"AND","rules":[{"field":"name","operator":"equal","value":"My
                Alert Rule"}]}
              summary: Filter by alert rule name
            byProject:
              value: >-
                {"condition":"AND","rules":[{"field":"project_name","operator":"equal","value":"My
                Project"}]}
              summary: Filter by project name
            byApplication:
              value: >-
                {"condition":"AND","rules":[{"field":"application_name","operator":"equal","value":"My
                Application"}]}
              summary: Filter by application name
            byInterval:
              value: >-
                {"condition":"AND","rules":[{"field":"interval","operator":"equal","value":"3600"}]}
              summary: Filter by interval; 3600 (1 hour) or 86400 (1 day)
            byMetricDisplayName:
              value: >-
                {"condition":"AND","rules":[{"field":"metric_display_name","operator":"equal","value":"Traffic"}]}
              summary: >-
                Filter by metric display name; "Traffic", "Token Count",
                "Attribute", "Latency", or an evaluator display name
            byCreatedAt:
              value: >-
                {"condition":"AND","rules":[{"field":"created_at","operator":"gte","value":"2024-01-01T00:00:00Z"}]}
              summary: Filter by created date; supports gte, lte, gt, lt operators
            byTokenTypeDisplayName:
              value: >-
                {"condition":"AND","rules":[{"field":"token_type_display_name","operator":"equal","value":"genai_usage.input_tokens"}]}
              summary: Filter by token type display name (for token_count metrics)
            byAttributeDisplayName:
              value: >-
                {"condition":"AND","rules":[{"field":"attribute_display_name","operator":"equal","value":"llm.name"}]}
              summary: Filter by attribute display name (for attribute metrics)
            byAttributeValue:
              value: >-
                {"condition":"AND","rules":[{"field":"attribute_value","operator":"equal","value":"gpt-4"}]}
              summary: Filter by attribute value (for attribute metrics)
            byAggregationDisplayName:
              value: >-
                {"condition":"AND","rules":[{"field":"aggregation_display_name","operator":"equal","value":"Count"}]}
              summary: >-
                Filter by aggregation display name; "Sum", "Average", "P50
                (Median)", "P75", "P90", "P95", "P99", or "Count"
            byEvaluatorRuleName:
              value: >-
                {"condition":"AND","rules":[{"field":"evaluator_rule_name","operator":"equal","value":"my_sentiment_rule"}]}
              summary: Filter by evaluator rule name (for evaluator metrics)
            byEvaluatorOutputName:
              value: >-
                {"condition":"AND","rules":[{"field":"evaluator_output_name","operator":"equal","value":"sentiment"}]}
              summary: Filter by evaluator output name (for evaluator metrics)
            byEvaluatorOutputValue:
              value: >-
                {"condition":"AND","rules":[{"field":"evaluator_output_value","operator":"equal","value":"negative"}]}
              summary: >-
                Filter by evaluator output value (for evaluator metrics with
                count aggregation)
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/ordering'
        - $ref: '#/components/parameters/search'
      responses:
        '200':
          description: Paginated list of GenAI Alert Rules
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PaginatedApiResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          items:
                            type: array
                            items:
                              $ref: '#/components/schemas/GenAIAlertRuleListItem'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
components:
  parameters:
    limit:
      name: limit
      in: query
      description: Limit for the pagination
      required: false
      schema:
        type: integer
    offset:
      name: offset
      in: query
      description: Offset for the pagination
      required: false
      schema:
        type: integer
    ordering:
      name: ordering
      in: query
      description: >-
        Allows you to order results by any field. For desc order prefix field
        name with `-` and provide comman separated values for multiple fields
      required: false
      schema:
        type: string
    search:
      name: search
      in: query
      description: Allows you to search by any field.
      required: false
      schema:
        type: string
  schemas:
    PaginatedApiResponse:
      type: object
      description: |
        Response object for paginated API responses.
      properties:
        api_version:
          type: string
          default: '3.0'
          enum:
            - '2.0'
            - '3.0'
          description: |
            API version of the response.
        kind:
          type: string
          default: PAGINATED
          enum:
            - PAGINATED
          description: |
            Type of response, indicating a paginated response.
        data:
          type: object
          properties:
            page_size:
              type: integer
              default: 10
              example: 10
              description: |
                Number of items per page in the response.
            item_count:
              type: integer
              default: 10
              example: 10
              description: |
                Number of items in the current page.
            total:
              type: integer
              example: 100
              default: 100
              description: |
                Total number of items across all pages.
            page_count:
              type: integer
              default: 10
              example: 10
              description: |
                Total number of pages.
            page_index:
              type: integer
              default: 1
              example: 1
              description: |
                Current page index.
            offset:
              type: integer
              default: 0
              example: 0
              description: |
                Offset of the first item in the current page.
    GenAIAlertRuleListItem:
      type: object
      description: Simplified GenAI Alert Rule object for list responses
      required:
        - id
        - project
        - application
        - name
        - metric_source
        - metric_name
        - metric_display_name
        - interval
        - aggregation
        - aggregation_display_name
        - threshold_type
        - threshold_condition
        - critical_threshold
        - created_at
        - query_scope
        - metric_details
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the GenAI Alert Rule
        project:
          $ref: '#/components/schemas/ProjectCompact'
        application:
          $ref: '#/components/schemas/ApplicationCompact'
        name:
          type: string
          description: Name of the alert rule
        metric_source:
          $ref: '#/components/schemas/GenAIMetricSourceEnum'
        metric_name:
          type: string
          description: >-
            Name of the metric (e.g., "traffic", "token_count", "attribute",
            "latency", or an evaluator type)
        metric_display_name:
          type: string
          description: >-
            Human-readable display name of the metric (e.g., "Traffic", "Token
            Count", "Attribute", "Latency", "Sentiment Analysis")
        interval:
          $ref: '#/components/schemas/IntervalEnum'
        aggregation:
          $ref: '#/components/schemas/GenAIAggregationEnum'
        metric_unit:
          allOf:
            - $ref: '#/components/schemas/GenAIMetricUnitEnum'
          nullable: true
        aggregation_display_name:
          type: string
          description: >-
            Human-readable display name of the aggregation (e.g., "Sum",
            "Average", "P50 (Median)", "P75", "P90", "P95", "P99", "Count")
        threshold_type:
          $ref: '#/components/schemas/ThresholdTypeEnum'
        threshold_condition:
          $ref: '#/components/schemas/ThresholdConditionEnum'
        critical_threshold:
          type: number
          format: float
          description: Threshold value for triggering a critical alert
        warning_threshold:
          type: number
          format: float
          nullable: true
          description: Threshold value for triggering a warning alert
        token_type_display_name:
          type: string
          nullable: true
          description: >-
            Human-readable display name of the token type (e.g.,
            "gen_ai.usage.input_tokens", "gen_ai.usage.output_tokens",
            "gen_ai.usage.total_tokens") - only for token_count metrics
        attribute_display_name:
          type: string
          nullable: true
          description: >-
            Human-readable display name of the attribute (e.g., "llm.name",
            "llm.model") - only for attribute metrics
        attribute_value:
          type: string
          nullable: true
          description: >-
            Value of the attribute being monitored (e.g., "gpt-4", "claude-3") -
            only for attribute metrics
        semantic_name:
          type: string
          nullable: true
          description: >-
            Semantic concept name used for SDK-agnostic token_count or attribute
            alerts (e.g. input_tokens). Set in V2 when the alert was created by
            semantic concept rather than a specific attribute key; null
            otherwise.
        evaluator_rule_name:
          type: string
          nullable: true
          description: Name of the evaluator rule (only for evaluator metrics)
        evaluator_output_name:
          type: string
          nullable: true
          description: >-
            Name of the evaluator output being monitored (only for evaluator
            metrics)
        evaluator_output_value:
          type: string
          nullable: true
          description: >-
            Value of the evaluator output being filtered on (only for evaluator
            metrics with count aggregation)
        created_at:
          type: string
          format: date-time
          description: Timestamp indicating when the GenAI Alert Rule was created
        query_scope:
          $ref: '#/components/schemas/QueryScopeEnum'
        metric_details:
          description: Details about the metric used in the alert rule
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier for the metadata item
              name:
                type: string
                description: Name of the metadata item
              value:
                type: string
                description: Value of the metadata item
            required:
              - id
              - name
              - value
    ProjectCompact:
      type: object
      title: ProjectCompact
      description: >
        Compact version of a project which can be included in the response of
        relevant APIs.
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
          description: |
            Unique identifier of the project.
        name:
          type: string
          description: |
            Name of the project.
        asset_type:
          type: string
          enum:
            - ML_MODEL
            - GEN_AI_APP
          description: |
            Type of assets the project can have.
    ApplicationCompact:
      type: object
      title: ApplicationCompact
      description: >
        Compact version of an application which can be included in the response
        of relevant APIs.
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
          description: |
            Unique identifier of the application.
        name:
          type: string
          description: |
            Name of the application.
    GenAIMetricSourceEnum:
      type: string
      description: >
        Source of the metric data.


        | Value        | Description |

        |--------------|-------------|

        | `raw_data`   | Core span-level metrics (traffic, latency, status,
        error rate). |

        | `attribute`  | Span attribute metrics (token count, custom
        attributes). |

        | `evaluator`  | Automated evaluator scores from `EvaluatorRule`
        instances. |

        | `custom`     | User-defined FQL custom metrics. |

        | `annotation` | Human/LLM/code annotation scores from `online_scores`
        (Source IN ('human','llm','code')). Requires
        `enable_online_scores_reads` feature flag. |
      enum:
        - raw_data
        - attribute
        - evaluator
        - custom
        - annotation
    IntervalEnum:
      type: integer
      description: Interval in seconds (3600 = 1 hour, 86400 = 1 day)
      enum:
        - 3600
        - 86400
    GenAIAggregationEnum:
      type: string
      description: Supported aggregation types for GenAI metrics
      enum:
        - sum
        - average
        - p50
        - p75
        - p90
        - p95
        - p99
        - count
    GenAIMetricUnitEnum:
      type: string
      description: Unit for metric values.
      enum:
        - milliseconds
    ThresholdTypeEnum:
      type: string
      description: Type of threshold
      enum:
        - ABSOLUTE
    ThresholdConditionEnum:
      type: string
      description: Condition for threshold comparison
      enum:
        - ABOVE
        - BELOW
    QueryScopeEnum:
      type: string
      description: Scope of query processing
      enum:
        - SPAN
        - SESSION
    ErrorResponse:
      type: object
      description: |
        Response object for errors returned by the API.
      properties:
        api_version:
          type: string
          default: '3.0'
          enum:
            - '2.0'
            - '3.0'
          description: |
            API version of the response.
        kind:
          type: string
          default: ERROR
          enum:
            - ERROR
          description: |
            Type of response, usually indicating an error.
        error:
          type: object
          properties:
            code:
              type: integer
              format: int32
              description: >
                Represents the code for this error, typically an HTTP response
                code.
              default: 400
              enum:
                - 400
                - 401
                - 403
                - 404
                - 409
                - 410
                - 422
                - 429
                - 500
                - 501
                - 503
            message:
              type: string
              description: >
                A human-readable message providing more details about the error.
                If there are multiple errors, it will be the message for the
                first error.
              example: Resource Not Found
            errors:
              type: array
              description: >
                Container for additional information regarding the error,
                especially for multiple errors.
              items:
                type: object
                properties:
                  reason:
                    type: string
                    description: >
                      Unique identifier for this error, different from the error
                      code.
                    example: ResourceNotFoundException
                  message:
                    type: string
                    description: >
                      A human-readable message providing more details about the
                      error. If there is only one error, this field will match
                      error.message.
                    example: Resource Not Found
                  help:
                    type: string
                    description: >
                      Link to support or documentation providing more
                      information on the error.
  responses:
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    '401':
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    '500':
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````