Skip to main content
PATCH
/
v1
/
alarms
/
{id}
Update Alarm
curl --request PATCH \
  --url https://api.bland.ai/v1/alarms/{id} \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "threshold": 123,
  "enabled": true,
  "webhook_config": {},
  "email_addresses": [
    "<string>"
  ],
  "sms_numbers": [
    "<string>"
  ]
}
'
{
  "data": {
    "alarm": {
      "id": "d4cfd8aa-7df4-4fd7-a5cf-8c5d2871a1f8",
      "metric_type": "latency",
      "enabled": true,
      "threshold": 0.5,
      "webhook_config": {
        "url": "https://example.com/webhooks/alarms",
        "headers": {
          "Content-Type": "appl***"
        }
      },
      "email_addresses": ["alerts@example.com"],
      "sms_numbers": [],
      "created_at": "2026-03-12T16:13:02.694Z",
      "updated_at": "2026-03-12T16:45:52.721Z"
    }
  },
  "errors": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.bland.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

id
string
required
Alarm configuration ID.

Body Parameters

threshold
number
Updated positive numeric threshold.Notes:
  • threshold is a sensitivity scalar (higher values are less sensitive; lower values are more sensitive).
  • The Dashboard may display an approximate ”% change” visualization for this value. Treat that UI percentage as a directional aid, not an exact conversion.
Dashboard sensitivity presets map to these threshold values:
  • Sensitive0.5
  • Normal1.0
  • Relaxed2.0
  • Critical2.5
enabled
boolean
Controls whether this alarm is actively evaluated.
  • true: Alarm is active. The system will evaluate this metric on scheduled runs and can generate alarm/recovery events and notifications.
  • false: Alarm is paused. The config is retained, but scheduled evaluation and notifications for this alarm are disabled until re-enabled.
webhook_config
object|null
Updated webhook settings. Set to null to clear.webhook_config should be a JSON object with:
  • url (string, required when object is provided)
  • headers (object, optional)
Example:
{
  "webhook_config": {
    "url": "https://example.com/webhooks/alarms",
    "headers": {
      "Content-Type": "application/json"
    }
  }
}
email_addresses
string[]
Updated email recipients.
sms_numbers
string[]
Updated SMS recipients.

Response

data.alarm
object
Updated alarm configuration object.
data.alarm.webhook_config
object|null
Updated webhook settings object. Header values may be masked in API responses.
data.alarm.email_addresses
string[]
Updated email recipients. Can be an empty array if none are configured.
data.alarm.sms_numbers
string[]
Updated SMS recipients. Can be an empty array if none are configured.
errors
null|array
null on success, otherwise an array of error objects.
{
  "data": {
    "alarm": {
      "id": "d4cfd8aa-7df4-4fd7-a5cf-8c5d2871a1f8",
      "metric_type": "latency",
      "enabled": true,
      "threshold": 0.5,
      "webhook_config": {
        "url": "https://example.com/webhooks/alarms",
        "headers": {
          "Content-Type": "appl***"
        }
      },
      "email_addresses": ["alerts@example.com"],
      "sms_numbers": [],
      "created_at": "2026-03-12T16:13:02.694Z",
      "updated_at": "2026-03-12T16:45:52.721Z"
    }
  },
  "errors": null
}

Docs for agents: llms.txt