# Get Alert

Retrieves the details of a specific alert by its ID.

Endpoint: GET /gateway/lw/api/accounts/{account_id}/alerts/{alert_id}
Version: 1.0
Security: x-api-key

## Path parameters:

  - `account_id` (string, required)
    Unique identifier of the Harness account
    Example: "px7xd_BFRCi-pfWPYXVjvw"

  - `alert_id` (string, required)
    Unique identifier of the alert to retrieve

## Query parameters:

  - `accountIdentifier` (string, required)
    Account Identifier for authentication and authorization
    Example: "px7xd_BFRCi-pfWPYXVjvw"

## Response 200 fields (application/json):

  - `response` (object, required)

  - `response.id` (string)
    Unique identifier of the alert

  - `response.account_id` (string)
    ID of the account this alert belongs to

  - `response.name` (string)
    Name of the alert

  - `response.enabled` (boolean)
    Whether the alert is enabled

  - `response.entity_type` (string)
    Type of entity the alert is associated with
    Enum: "autostopping_rule"

  - `response.recipients` (array)
    List of notification recipients

  - `response.recipients.type` (string, required)
    Type of notification channel
    Enum: "email", "slack"

  - `response.recipients.ids` (array, required)
    List of recipient identifiers. For email: email addresses. For slack: Slack channel IDs or webhook URLs.
    Example: ["user@example.com"]

  - `response.events` (array)
    List of events that trigger the alert

  - `response.events.id` (string, required)
    Unique identifier for this event configuration. Can be any string to identify this event entry.
    Example: "event-warmup-failed"

  - `response.events.event` (string, required)
    Type of event that triggers the alert
    Enum: "autostopping_warmup_failed", "autostopping_cooldown_failed", "autostopping_rule_created", "autostopping_rule_updated", "autostopping_rule_deleted"

  - `response.created_at` (string)
    Timestamp when the alert was created

  - `response.updated_at` (string)
    Timestamp when the alert was last updated

  - `response.associated_entities` (array)
    List of entities associated with this alert


## Response 400 fields

## Response 404 fields
