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

# List active alerts



## OpenAPI

````yaml GET /v1/alerts
openapi: 3.1.0
info:
  title: PolyAI Alerts API
  version: 1.0.0
  description: >-
    Create alert rules, inspect active alerts, register webhook endpoints, and
    receive signed webhook notifications when alert thresholds are breached.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.eu.poly.ai
    description: EU region
security:
  - ApiKeyAuth: []
paths:
  /v1/alerts:
    get:
      summary: List active alerts
      operationId: listActiveAlerts
      parameters:
        - $ref: '#/components/parameters/ProjectIdFilter'
        - $ref: '#/components/parameters/MetricFilter'
      responses:
        '200':
          description: Active alerts retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActiveAlertListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    ProjectIdFilter:
      name: project_id
      in: query
      required: false
      schema:
        type: string
    MetricFilter:
      name: metric
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/Metric'
  schemas:
    ActiveAlertListResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ActiveAlert'
    Metric:
      type: string
      enum:
        - turn_latency_p50
        - turn_latency_p95
        - api_errors
        - function_errors
        - call_crashes
        - call_volume
    ActiveAlert:
      type: object
      required:
        - alert_rule_id
        - name
        - metric
        - operator
        - threshold_value
        - window_duration
        - since
      properties:
        alert_rule_id:
          type: string
          pattern: ^ar_[A-Za-z0-9]+$
          example: ar_0Kx4mNpQ8rWvYb2dFgHjLs
        name:
          type: string
        project_id:
          type:
            - string
            - 'null'
        metric:
          $ref: '#/components/schemas/Metric'
        operator:
          $ref: '#/components/schemas/ComparisonOperator'
        threshold_value:
          type: integer
        window_duration:
          $ref: '#/components/schemas/WindowDuration'
        since:
          type: string
          format: date-time
        last_evaluated_at:
          type:
            - string
            - 'null'
          format: date-time
        current_value:
          type:
            - integer
            - 'null'
    Error:
      type: object
      properties:
        message:
          type: string
    ComparisonOperator:
      type: string
      enum:
        - '>'
        - <
        - '>='
        - <=
    WindowDuration:
      type: string
      description: Evaluation window duration
      enum:
        - 5m
        - 10m
        - 60m
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````