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

# List Alerts

> Retrieve a list of alerts with optional filters.

List alerts for your organization. Filter by status, severity, team, or service. The `status=not_resolved` filter returns both `open` and `acknowledged` alerts.


## OpenAPI

````yaml GET /alerts/
openapi: 3.0.3
info:
  title: Warrn API
  version: '1.0'
  description: |
    Public REST API for Warrn. All endpoints are authenticated with an API key
    issued from Settings → API Keys in the Warrn dashboard.
servers:
  - url: https://api.warrn.io
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Alerts
    description: Native Warrn alert endpoints.
  - name: OpsGenie Compatible
    description: Drop-in OpsGenie Alert API v2 compatibility layer.
paths:
  /alerts/:
    get:
      tags:
        - Alerts
      summary: List Alerts
      description: >-
        List alerts for your organization. Supports filtering by status,
        severity, team, and service.
      operationId: listAlerts
      parameters:
        - in: query
          name: status
          schema:
            type: string
            enum:
              - open
              - acknowledged
              - resolved
              - not_resolved
          description: >-
            Filter by status. `not_resolved` returns both `open` and
            `acknowledged`.
        - in: query
          name: severity
          schema:
            type: string
            enum:
              - low
              - medium
              - high
              - critical
        - in: query
          name: team_id
          schema:
            type: string
            format: uuid
        - in: query
          name: service_id
          schema:
            type: string
            format: uuid
        - in: query
          name: resolved_by
          schema:
            type: string
            format: uuid
        - in: query
          name: acknowledged_by
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Array of alerts
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Alert'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Alert:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        severity:
          $ref: '#/components/schemas/Severity'
        status:
          $ref: '#/components/schemas/AlertStatus'
        source:
          type: string
          example: integration
        service_id:
          type: string
          format: uuid
          nullable: true
        service_name:
          type: string
          nullable: true
        team_id:
          type: string
          format: uuid
          nullable: true
        team_name:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        metadata:
          type: object
          additionalProperties: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        acknowledged_at:
          type: string
          format: date-time
          nullable: true
        resolved_at:
          type: string
          format: date-time
          nullable: true
        alert_alias:
          type: string
          nullable: true
        occurrence_count:
          type: integer
    Severity:
      type: string
      enum:
        - low
        - medium
        - high
        - critical
    AlertStatus:
      type: string
      enum:
        - open
        - acknowledged
        - resolved
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: warrn_xxx
      description: Bearer token using your Warrn API key.

````