Update an incoming webhook integration

Update an incoming webhook integration's channels, escalation policy, or extraction. Only provide the fields you want to change. An extraction field or list you send replaces the current one.

PATCH https://incidents.betterstack.com/api/v3/incoming-webhook-integrations/{id}
id string required

The ID of the incoming webhook integration to update.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

name string or null

The name of the incoming webhook shown in the dashboard.

escalation_policy_id string or null

ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.

paused boolean

Whether the integration is paused. A paused integration opens no incidents.

call boolean

Whether to call the on-call person. Ignored while an escalation policy is set.

sms boolean

Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.

email boolean

Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.

push boolean

Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.

critical_alert boolean

Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.

team_wait integer or null

Seconds to wait before escalating to the whole team. 0 alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.

recovery_period integer

How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while resolved_rule_type isn't unused. Possible values: 0, 60, 180, 300, 900, 1800, 3600, 7200.

started_rule_type string

When requests open an incident. Every value other than unused needs at least one rule. When started_alert_id_field finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one.
Valid values:
unused: Every request that doesn't acknowledge or resolve an incident opens one.
any: A request opens an incident when at least one of started_rules matches.
all: A request opens an incident when all of started_rules match.

acknowledged_rule_type string

When requests acknowledge an incident. Any value other than unused needs started_alert_id_field, acknowledged_alert_id_field and at least one rule.
Valid values:
unused: Requests never acknowledge an incident.
any: A request acknowledges an incident when at least one of acknowledged_rules matches.
all: A request acknowledges an incident when all of acknowledged_rules match.

resolved_rule_type string

When requests resolve an incident. Any value other than unused needs started_alert_id_field, resolved_alert_id_field and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one.
Valid values:
unused: Requests never resolve an incident.
any: A request resolves an incident when at least one of resolved_rules matches.
all: A request resolves an incident when all of resolved_rules match.

cause_field object or null

How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is Unknown cause.

cause_field.name string or null

The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.

cause_field.special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

cause_field.field_target string required

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

cause_field.target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

cause_field.match_type string required

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

cause_field.content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

cause_field.content_before string or null

The start delimiter for match_between.

cause_field.content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

title_field object or null

Field that extracts the incident title, with the same keys as cause_field.

started_alert_id_field object or null

How to extract the alert ID from the request that starts an incident, with the same keys as cause_field. Later requests acknowledge or resolve the open incident with the same alert ID. Required when acknowledged_rule_type or resolved_rule_type isn't unused.

acknowledged_alert_id_field object or null

How to extract the alert ID from a request that acknowledges an incident, with the same keys as cause_field. Required when acknowledged_rule_type isn't unused.

resolved_alert_id_field object or null

How to extract the alert ID from a request that resolves an incident, with the same keys as cause_field. Required when resolved_rule_type isn't unused.

other_started_fields array of objects or null

Custom fields extracted from the request that opens an incident, saved as incident metadata.

other_started_fields[].name string or null required

The metadata key to save the extracted value under. Required, and must be unique within the array.

other_started_fields[].special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

other_started_fields[].field_target string required

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

other_started_fields[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

other_started_fields[].match_type string required

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

other_started_fields[].content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

other_started_fields[].content_before string or null

The start delimiter for match_between.

other_started_fields[].content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

other_acknowledged_fields array of objects or null

Custom fields extracted from a request that acknowledges an incident.

other_acknowledged_fields[].name string or null required

The metadata key to save the extracted value under. Required, and must be unique within the array.

other_acknowledged_fields[].special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

other_acknowledged_fields[].field_target string required

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

other_acknowledged_fields[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

other_acknowledged_fields[].match_type string required

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

other_acknowledged_fields[].content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

other_acknowledged_fields[].content_before string or null

The start delimiter for match_between.

other_acknowledged_fields[].content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

other_resolved_fields array of objects or null

Custom fields extracted from a request that resolves an incident.

other_resolved_fields[].name string or null required

The metadata key to save the extracted value under. Required, and must be unique within the array.

other_resolved_fields[].special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

other_resolved_fields[].field_target string required

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

other_resolved_fields[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

other_resolved_fields[].match_type string required

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

other_resolved_fields[].content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

other_resolved_fields[].content_before string or null

The start delimiter for match_between.

other_resolved_fields[].content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

started_rules array of objects

The conditions started_rule_type checks. At least one rule is required when the type is any or all.

started_rules[].rule_target string required

Part of the payload this rule matches.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

started_rules[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

started_rules[].match_type string required

How to compare the value with content.
Valid values:
contains: Matches when the value contains content.
contains_not: Matches when the value doesn't contain content.
matches_regex: Matches when the value matches the regular expression in content.
matches_regex_not: Matches when the value doesn't match the regular expression in content.
equals: Matches when the value equals content.
equals_not: Matches when the value doesn't equal content.

started_rules[].content string required

The value to compare with. Must be a valid regular expression for matches_regex and matches_regex_not.

acknowledged_rules array of objects

The conditions acknowledged_rule_type checks, with the same keys as started_rules. At least one is required when the type is any or all.

resolved_rules array of objects

The conditions resolved_rule_type checks, with the same keys as started_rules. At least one is required when the type is any or all.

metadata object

Custom metadata. Each key holds a list of values. A value is a string, written as {type: "String", value}, or a catalog reference, written as {type, item_id, name, email}. User references are returned as u123 and team references as t123. Get a user's ID via List team members, and a team's ID via List teams. A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, {} removes it all, and leaving metadata out keeps it.

metadata.<key>[].type string

String, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source.

metadata.<key>[].value string

The text of a String value.

metadata.<key>[].item_id string

ID of the referenced item. For a user it's u123 or their e-mail. For a team it's t123, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via List team members, and a team's ID via List teams.

metadata.<key>[].name string or null

Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of item_id.

metadata.<key>[].email string

Referenced user's e-mail, returned for a User. A user can also be found by e-mail.

200

Returns the updated incoming webhook integration.

200 OK
{
  "data": {
    "id": "123456789",
    "type": "incoming_webhook",
    "attributes": {
      "name": "Production service",
      "escalation_policy_id": "73",
      "url": "https://incidents.betterstack.com/api/v1/incoming-webhook/token-placeholder",
      "paused": false,
      "call": false,
      "sms": false,
      "email": true,
      "push": true,
      "critical_alert": false,
      "team_wait": 180,
      "recovery_period": 0,
      "started_rule_type": "any",
      "acknowledged_rule_type": "any",
      "resolved_rule_type": "any",
      "cause_field": {
        "special_type": "cause",
        "field_target": "body",
        "match_type": "match_everything"
      },
      "title_field": {
        "special_type": "title",
        "field_target": "json",
        "target_field": "alert.title",
        "match_type": "match_everything"
      },
      "started_alert_id_field": {
        "special_type": "alert_id",
        "field_target": "json",
        "target_field": "alert.id",
        "match_type": "match_everything"
      },
      "acknowledged_alert_id_field": {
        "special_type": "alert_id",
        "field_target": "json",
        "target_field": "alert.id",
        "match_type": "match_everything"
      },
      "resolved_alert_id_field": {
        "special_type": "alert_id",
        "field_target": "json",
        "target_field": "alert.id",
        "match_type": "match_everything"
      },
      "other_started_fields": [
        {
          "name": "Service",
          "field_target": "json",
          "target_field": "alert.service",
          "match_type": "match_everything"
        }
      ],
      "other_acknowledged_fields": [
        {
          "name": "Service",
          "field_target": "json",
          "target_field": "alert.service",
          "match_type": "match_everything"
        }
      ],
      "other_resolved_fields": [
        {
          "name": "Service",
          "field_target": "json",
          "target_field": "alert.service",
          "match_type": "match_everything"
        }
      ],
      "started_rules": [
        {
          "rule_target": "json",
          "target_field": "alert.status",
          "match_type": "equals",
          "content": "firing"
        }
      ],
      "acknowledged_rules": [
        {
          "rule_target": "json",
          "target_field": "alert.status",
          "match_type": "equals",
          "content": "acknowledged"
        }
      ],
      "resolved_rules": [
        {
          "rule_target": "json",
          "target_field": "alert.status",
          "match_type": "equals",
          "content": "resolved"
        }
      ],
      "sample_query_string": "source=grafana&env=production",
      "sample_headers": "Content-Type: application/json; charset=utf-8",
      "sample_body": "{\"alert\":{\"id\":\"a1b2c3\",\"title\":\"High CPU on web-1\",\"status\":\"firing\",\"service\":\"Checkout\"}}",
      "created_at": "2026-09-09T10:06:12.418Z",
      "updated_at": "2026-09-09T10:06:31.902Z",
      "team_id": "t123",
      "team_name": "Production",
      "metadata": {
        "Service": [
          {
            "type": "String",
            "value": "Checkout"
          }
        ]
      }
    }
  }
}
401

The API token is missing or invalid.

401 Unauthorized
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
403

The token is read-only, your role doesn't include Manage on Monitors, heartbeats, integrations, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes incoming webhooks.

403 Forbidden
{
  "errors": "This API token is read-only and cannot be used for write operations."
}
404

The incoming webhook integration doesn't exist, or the token can't access it.

422

Validation failed or an attribute is unknown. A channel the plan doesn't include counts as unknown. If the plan doesn't include escalation policies, escalation_policy_id is listed in unauthorized_attributes. Nothing is saved. Removing the policy, or sending the one already set, always works.

422 Unprocessable Content
{
  "errors": "Please upgrade your account before using these attributes",
  "unauthorized_attributes": [
    "escalation_policy_id"
  ]
}
id string

The ID of the incoming webhook integration.

type string

Always incoming_webhook.

name string or null

The name of the incoming webhook shown in the dashboard.

escalation_policy_id string or null

ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.

url string

The URL that receives your webhooks.

paused boolean

Whether the integration is paused. A paused integration opens no incidents.

call boolean

Whether to call the on-call person. Ignored while an escalation policy is set.

sms boolean

Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.

email boolean

Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.

push boolean

Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.

critical_alert boolean

Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.

team_wait integer or null

Seconds to wait before escalating to the whole team. 0 alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.

recovery_period integer

How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while resolved_rule_type isn't unused. Possible values: 0, 60, 180, 300, 900, 1800, 3600, 7200.

started_rule_type string

When requests open an incident. Every value other than unused needs at least one rule. When started_alert_id_field finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one.
Valid values:
unused: Every request that doesn't acknowledge or resolve an incident opens one.
any: A request opens an incident when at least one of started_rules matches.
all: A request opens an incident when all of started_rules match.

acknowledged_rule_type string

When requests acknowledge an incident. Any value other than unused needs started_alert_id_field, acknowledged_alert_id_field and at least one rule.
Valid values:
unused: Requests never acknowledge an incident.
any: A request acknowledges an incident when at least one of acknowledged_rules matches.
all: A request acknowledges an incident when all of acknowledged_rules match.

resolved_rule_type string

When requests resolve an incident. Any value other than unused needs started_alert_id_field, resolved_alert_id_field and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one.
Valid values:
unused: Requests never resolve an incident.
any: A request resolves an incident when at least one of resolved_rules matches.
all: A request resolves an incident when all of resolved_rules match.

cause_field object or null

How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is Unknown cause.

cause_field.name string or null

The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.

cause_field.special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

cause_field.field_target string

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

cause_field.target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

cause_field.match_type string

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

cause_field.content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

cause_field.content_before string or null

The start delimiter for match_between.

cause_field.content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

title_field object or null

Field that extracts the incident title, with the same keys as cause_field.

started_alert_id_field object or null

How to extract the alert ID from the request that starts an incident, with the same keys as cause_field. Later requests acknowledge or resolve the open incident with the same alert ID. Required when acknowledged_rule_type or resolved_rule_type isn't unused.

acknowledged_alert_id_field object or null

How to extract the alert ID from a request that acknowledges an incident, with the same keys as cause_field. Required when acknowledged_rule_type isn't unused.

resolved_alert_id_field object or null

How to extract the alert ID from a request that resolves an incident, with the same keys as cause_field. Required when resolved_rule_type isn't unused.

other_started_fields array of objects or null

Custom fields extracted from the request that opens an incident, saved as incident metadata.

other_started_fields[].name string or null

The metadata key to save the extracted value under. Required, and must be unique within the array.

other_started_fields[].special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

other_started_fields[].field_target string

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

other_started_fields[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

other_started_fields[].match_type string

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

other_started_fields[].content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

other_started_fields[].content_before string or null

The start delimiter for match_between.

other_started_fields[].content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

other_acknowledged_fields array of objects or null

Custom fields extracted from a request that acknowledges an incident.

other_acknowledged_fields[].name string or null

The metadata key to save the extracted value under. Required, and must be unique within the array.

other_acknowledged_fields[].special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

other_acknowledged_fields[].field_target string

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

other_acknowledged_fields[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

other_acknowledged_fields[].match_type string

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

other_acknowledged_fields[].content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

other_acknowledged_fields[].content_before string or null

The start delimiter for match_between.

other_acknowledged_fields[].content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

other_resolved_fields array of objects or null

Custom fields extracted from a request that resolves an incident.

other_resolved_fields[].name string or null

The metadata key to save the extracted value under. Required, and must be unique within the array.

other_resolved_fields[].special_type string or null

The built-in role of this field. null for a custom field.
Valid values:
alert_id: Extracts the alert ID that ties later requests to the same incident.
cause: Extracts the incident cause.
title: Extracts the incident title.

other_resolved_fields[].field_target string

Part of the payload this field reads.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

other_resolved_fields[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

other_resolved_fields[].match_type string

What to extract.
Valid values:
match_before: Extracts the text before content.
match_after: Extracts the text after content.
match_between: Extracts the text between content_before and content_after.
match_regex: Extracts the match of the regular expression in content, or its capture group.
match_everything: Extracts the whole value.

other_resolved_fields[].content string or null

The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.

other_resolved_fields[].content_before string or null

The start delimiter for match_between.

other_resolved_fields[].content_after string or null

Where extraction stops for match_between. Leave it empty to extract to the end.

started_rules array of objects

The conditions started_rule_type checks. At least one rule is required when the type is any or all.

started_rules[].rule_target string

Part of the payload this rule matches.
Valid values:
query_string: A parameter in the request's query string.
header: A request header.
body: The whole request body, as plain text.
json: A value in the request body, read as JSON.
xml: An element in the request body, read as XML.
sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.

started_rules[].target_field string or null

Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.

started_rules[].match_type string

How to compare the value with content.
Valid values:
contains: Matches when the value contains content.
contains_not: Matches when the value doesn't contain content.
matches_regex: Matches when the value matches the regular expression in content.
matches_regex_not: Matches when the value doesn't match the regular expression in content.
equals: Matches when the value equals content.
equals_not: Matches when the value doesn't equal content.

started_rules[].content string

The value to compare with. Must be a valid regular expression for matches_regex and matches_regex_not.

started_rules[].created_at datetime

When the rule was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

started_rules[].updated_at datetime

When the rule was last changed. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

acknowledged_rules array of objects

The conditions acknowledged_rule_type checks, with the same keys as started_rules. At least one is required when the type is any or all.

resolved_rules array of objects

The conditions resolved_rule_type checks, with the same keys as started_rules. At least one is required when the type is any or all.

sample_query_string string or null

The query string of the sample request saved in the dashboard to preview extraction.

sample_headers string or null

The headers of the sample request saved in the dashboard to preview extraction.

sample_body string or null

The body of the sample request saved in the dashboard to preview extraction.

created_at datetime

When the integration was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the integration was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

team_id string

Team that owns this integration, such as t123.

team_name string

Name of the team that owns this integration.

metadata object

Custom metadata. Each key holds a list of values. A value is a string, written as {type: "String", value}, or a catalog reference, written as {type, item_id, name, email}. User references are returned as u123 and team references as t123. Get a user's ID via List team members, and a team's ID via List teams. A key accepts a single value or a list. Values under one key must all be the same type and can't repeat.

metadata.<key>[].type string

String, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source.

metadata.<key>[].value string

The text of a String value.

metadata.<key>[].item_id string

ID of the referenced item. For a user it's u123 or their e-mail. For a team it's t123, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via List team members, and a team's ID via List teams.

metadata.<key>[].name string or null

Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of item_id.

metadata.<key>[].email string

Referenced user's e-mail, returned for a User. A user can also be found by e-mail.

Example cURL

Update an incoming webhook integration
curl --request PATCH \
  --url https://incidents.betterstack.com/api/v3/incoming-webhook-integrations/4 \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "name": "Production service"
}'