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

# Update failure-alert settings

> Update alert thresholds and the optional alert webhook.



## OpenAPI

````yaml /api-reference/voxys_proactive_swagger.json patch /api/v1/accounts/{account_id}/proactive_messages/alert_settings
openapi: 3.1.0
info:
  title: Voxys Connect - Proactive Messaging APIs
  description: >-
    Proactive messages fired by connected commerce/EMR systems (COD prompts,
    shipment tracking, cart recovery, FHIR results, membership win-back) and an
    on-demand fire endpoint.
  version: 1.0.0
  contact:
    email: support@voxys.ai
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://connect.voxys.ai
security:
  - userApiKey: []
tags:
  - name: Proactive Messaging
    description: Proactive message log, failure alerts, retry, and on-demand fire.
paths:
  /api/v1/accounts/{account_id}/proactive_messages/alert_settings:
    patch:
      tags:
        - Proactive Messaging
      summary: Update failure-alert settings
      description: Update alert thresholds and the optional alert webhook.
      operationId: updateProactiveAlertSettings
      parameters:
        - $ref: '#/components/parameters/account_id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: Enable failure alerts
                threshold:
                  type: integer
                  description: Failures before alerting
                window_minutes:
                  type: integer
                  description: Evaluation window
                cooldown_minutes:
                  type: integer
                  description: Min minutes between alerts
                webhook_url:
                  type: string
                  description: Optional alert webhook URL
      responses:
        '200':
          description: Successful response
        '401':
          $ref: '#/components/responses/unauthorized'
        '404':
          $ref: '#/components/responses/not_found'
        '422':
          $ref: '#/components/responses/unprocessable'
components:
  parameters:
    account_id:
      name: account_id
      in: path
      required: true
      schema:
        type: integer
      description: Numeric ID of the account
  responses:
    unauthorized:
      description: Authentication failed – invalid or missing api_access_token
    not_found:
      description: Resource not found
    unprocessable:
      description: Unprocessable entity – validation errors
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        All API requests must include the `api_access_token` header with a valid
        agent or administrator token.

````