> ## 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

> List alerts in OpsGenie API v2 response format with pagination.

List alerts in OpsGenie response format. Each entry has the same shape as the [Get Alert](/api-reference/opsgenie/get) response. Use `offset` and `limit` to page; the `paging.next` field carries the offset for the next page (or `null` at the end).


## OpenAPI

````yaml GET /v2/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:
  /v2/alerts/:
    get:
      tags:
        - OpsGenie Compatible
      summary: List Alerts (OpsGenie)
      description: List alerts in OpsGenie response format with pagination.
      operationId: opsgenieListAlerts
      parameters:
        - in: query
          name: limit
          schema:
            type: integer
            default: 20
        - in: query
          name: offset
          schema:
            type: integer
        - in: query
          name: sort
          schema:
            type: string
            default: createdAt
        - in: query
          name: order
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
        - in: query
          name: query
          schema:
            type: string
      responses:
        '200':
          description: OpsGenie-formatted alert list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpsgenieListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    OpsgenieListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/OpsgenieAlertData'
        paging:
          type: object
          nullable: true
          properties:
            next:
              type: integer
        requestId:
          type: string
          format: uuid
    OpsgenieAlertData:
      type: object
      properties:
        id:
          type: string
          format: uuid
        tinyId:
          type: string
        alias:
          type: string
        message:
          type: string
        status:
          type: string
          enum:
            - open
            - acknowledged
            - closed
        priority:
          type: string
          enum:
            - P1
            - P2
            - P3
            - P4
            - P5
        tags:
          type: array
          items:
            type: string
        teams:
          type: array
          items:
            $ref: '#/components/schemas/OpsgenieResponder'
    OpsgenieResponder:
      type: object
      properties:
        type:
          type: string
          enum:
            - team
            - user
        name:
          type: string
  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.

````