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

# List alert events

> **Auth:** organization API key (`read` scope or higher) or a signed-in user.

Alert episodes. Filter with `state`, `severity`, `rule_id`, `from` and `to`.



## OpenAPI

````yaml https://cp.xenovia.io/openapi.json get /api/v1/alerts
openapi: 3.1.0
info:
  title: Xenovia Control Plane API
  version: 1.0.0
  description: >-
    Management API for proxies, providers, policies, telemetry, alerts and
    organization settings.
servers:
  - url: https://cp.xenovia.io
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v1/alerts:
    get:
      tags:
        - alerts
      summary: List alert events
      description: >-
        **Auth:** organization API key (`read` scope or higher) or a signed-in
        user.


        Alert episodes. Filter with `state`, `severity`, `rule_id`, `from` and
        `to`.
      operationId: list_alert_events_route_api_v1_alerts_get
      parameters:
        - name: state
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(firing|resolved)$
              - type: 'null'
            title: State
        - name: severity
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(info|warning|critical)$
              - type: 'null'
            title: Severity
        - name: rule_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Rule Id
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: From
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: To
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_AlertEventRead_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginatedResponse_AlertEventRead_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AlertEventRead'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - items
        - total
        - limit
        - offset
      title: PaginatedResponse[AlertEventRead]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AlertEventRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        org_id:
          type: string
          format: uuid
          title: Org Id
        rule_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Rule Id
        scope_key:
          type: string
          title: Scope Key
        source:
          type: string
          title: Source
        state:
          type: string
          title: State
        severity:
          type: string
          title: Severity
        title:
          type: string
          title: Title
        body:
          type: string
          title: Body
        value:
          anyOf:
            - type: number
            - type: 'null'
          title: Value
        threshold:
          anyOf:
            - type: number
            - type: 'null'
          title: Threshold
        window_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Window Seconds
        event_count:
          type: integer
          title: Event Count
        fired_at:
          type: string
          format: date-time
          title: Fired At
        last_seen_at:
          type: string
          format: date-time
          title: Last Seen At
        resolved_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Resolved At
      type: object
      required:
        - id
        - org_id
        - rule_id
        - scope_key
        - source
        - state
        - severity
        - title
        - body
        - value
        - threshold
        - window_seconds
        - event_count
        - fired_at
        - last_seen_at
        - resolved_at
      title: AlertEventRead
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token: an organization API key (`ak_…`) created under Settings →
        API Keys, or a dashboard user session token. Proxy keys (`xe_…`) are not
        accepted here. Endpoints marked as user-only in their description reject
        organization keys with `403`.

````