/systems/{id}/alerts/silences - List active silences for a system

GET /systems/{id}/alerts/silences

Returns all active and pending Alertmanager silences scoped to the target system. Expired silences are excluded. Results are filtered server-side to silences that carry an exact system_key matcher matching the system's key. Requires read:systems permission.

Path parameters

  • id string Required

    System ID (database UUID)

Responses

  • 200 application/json

    Silences retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attribute Show data attribute object
      • silences array[object]
        Hide silences attributes Show silences attributes object
        • id string

          Alertmanager silence ID

        • matchers array[object]
          Hide matchers attributes Show matchers attributes object
          • name string

            Label name

          • value string

            Label value

          • isRegex boolean

            Whether the value is a regex

        • startsAt string(date-time)
        • endsAt string(date-time)
        • updatedAt string(date-time)
        • createdBy string
        • comment string
        • status object
          Hide status attribute Show status attribute object
          • state string

            Runtime state of the silence

            Values are active, expired, or pending.

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 404 application/json

    Resource not found

    Hide response attributes Show response attributes object
    • code integer

      HTTP error code

    • message string

      Error message

    • data object
      Hide data attributes Show data attributes object
      • type string

        Type of error

        Values are validation_error or external_api_error.

      • errors array[object]
        Hide errors attributes Show errors attributes object
        • key string

          Field name that failed validation

        • message string

          Error code or message

        • value string

          Value that failed validation

      • details

        Additional error details

GET /systems/{id}/alerts/silences
curl \
 --request GET 'https://api.your-domain.com/api/systems/sys_123456789/alerts/silences' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "silences retrieved successfully",
  "data": {
    "silences": [
      {
        "id": "4e6f0c30-c383-4e22-9443-0d7b6a8bd40b",
        "matchers": [
          {
            "name": "alertname",
            "value": "HighCPU",
            "isRegex": false
          }
        ],
        "startsAt": "2024-01-01T00:00:00Z",
        "endsAt": "2024-01-01T01:00:00Z",
        "updatedAt": "2024-01-01T00:00:00Z",
        "createdBy": "admin@example.com",
        "comment": "silenced during maintenance",
        "status": {
          "state": "active"
        }
      }
    ]
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}
Response examples (404)
{
  "code": 400,
  "message": "validation failed",
  "data": {
    "type": "validation_error",
    "errors": [
      {
        "key": "username",
        "message": "required",
        "value": "string"
      }
    ]
  }
}