Create an incoming webhook integration

Create an incoming webhook integration. The response includes the url to send requests to. Requests sent to it open, acknowledge and resolve incidents as the fields and rules you set describe.

POST https://incidents.betterstack.com/api/v3/incoming-webhook-integrations

Query parameters

team_id
string

Headers

Authorization
required string
Content-Type
string

Body parameters

name
string or null
escalation_policy_id
string or null
paused
DEFAULT false boolean
call
DEFAULT false boolean
sms
DEFAULT false boolean
email
DEFAULT true boolean
push
DEFAULT false boolean
critical_alert
DEFAULT false boolean
team_wait
integer or null
recovery_period
DEFAULT 0 integer
started_rule_type
DEFAULT unused string
acknowledged_rule_type
DEFAULT unused string
resolved_rule_type
DEFAULT unused string
cause_field
object or null
cause_field.name
string or null
cause_field.special_type
string or null
cause_field.field_target
required string
cause_field.target_field
string or null
cause_field.match_type
required string
cause_field.content
string or null
cause_field.content_before
string or null
cause_field.content_after
string or null
title_field
object or null
started_alert_id_field
object or null
acknowledged_alert_id_field
object or null
resolved_alert_id_field
object or null
other_started_fields
array of objects or null
other_started_fields[].name
required string or null
other_started_fields[].special_type
string or null
other_started_fields[].field_target
required string
other_started_fields[].target_field
string or null
other_started_fields[].match_type
required string
other_started_fields[].content
string or null
other_started_fields[].content_before
string or null
other_started_fields[].content_after
string or null
other_acknowledged_fields
array of objects or null
other_acknowledged_fields[].name
required string or null
other_acknowledged_fields[].special_type
string or null
other_acknowledged_fields[].field_target
required string
other_acknowledged_fields[].target_field
string or null
other_acknowledged_fields[].match_type
required string
other_acknowledged_fields[].content
string or null
other_acknowledged_fields[].content_before
string or null
other_acknowledged_fields[].content_after
string or null
other_resolved_fields
array of objects or null
other_resolved_fields[].name
required string or null
other_resolved_fields[].special_type
string or null
other_resolved_fields[].field_target
required string
other_resolved_fields[].target_field
string or null
other_resolved_fields[].match_type
required string
other_resolved_fields[].content
string or null
other_resolved_fields[].content_before
string or null
other_resolved_fields[].content_after
string or null
started_rules
array of objects
started_rules[].rule_target
required string
started_rules[].target_field
string or null
started_rules[].match_type
required string
started_rules[].content
required string
acknowledged_rules
array of objects
resolved_rules
array of objects
metadata
object
metadata.<key>[].type
string
metadata.<key>[].value
string
metadata.<key>[].item_id
string
metadata.<key>[].name
string or null
metadata.<key>[].email
string
201

Response body

{
  "data": {
    "id": "123456789",
    "type": "incoming_webhook",
    "attributes": {
      "name": "Backend 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

Response body

{
  "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

Response body

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

Response body

{
  "errors": "Please upgrade your account before using these attributes",
  "unauthorized_attributes": [
    "escalation_policy_id"
  ]
}

Response attributes

id
string
type
string
name
string or null
escalation_policy_id
string or null
url
string
paused
boolean
call
boolean
sms
boolean
email
boolean
push
boolean
critical_alert
boolean
team_wait
integer or null
recovery_period
integer
started_rule_type
string
acknowledged_rule_type
string
resolved_rule_type
string
cause_field
object or null
cause_field.name
string or null
cause_field.special_type
string or null
cause_field.field_target
string
cause_field.target_field
string or null
cause_field.match_type
string
cause_field.content
string or null
cause_field.content_before
string or null
cause_field.content_after
string or null
title_field
object or null
started_alert_id_field
object or null
acknowledged_alert_id_field
object or null
resolved_alert_id_field
object or null
other_started_fields
array of objects or null
other_started_fields[].name
string or null
other_started_fields[].special_type
string or null
other_started_fields[].field_target
string
other_started_fields[].target_field
string or null
other_started_fields[].match_type
string
other_started_fields[].content
string or null
other_started_fields[].content_before
string or null
other_started_fields[].content_after
string or null
other_acknowledged_fields
array of objects or null
other_acknowledged_fields[].name
string or null
other_acknowledged_fields[].special_type
string or null
other_acknowledged_fields[].field_target
string
other_acknowledged_fields[].target_field
string or null
other_acknowledged_fields[].match_type
string
other_acknowledged_fields[].content
string or null
other_acknowledged_fields[].content_before
string or null
other_acknowledged_fields[].content_after
string or null
other_resolved_fields
array of objects or null
other_resolved_fields[].name
string or null
other_resolved_fields[].special_type
string or null
other_resolved_fields[].field_target
string
other_resolved_fields[].target_field
string or null
other_resolved_fields[].match_type
string
other_resolved_fields[].content
string or null
other_resolved_fields[].content_before
string or null
other_resolved_fields[].content_after
string or null
started_rules
array of objects
started_rules[].rule_target
string
started_rules[].target_field
string or null
started_rules[].match_type
string
started_rules[].content
string
started_rules[].created_at
datetime
started_rules[].updated_at
datetime
acknowledged_rules
array of objects
resolved_rules
array of objects
sample_query_string
string or null
sample_headers
string or null
sample_body
string or null
created_at
datetime
updated_at
datetime
team_id
string
team_name
string
metadata
object
metadata.<key>[].type
string
metadata.<key>[].value
string
metadata.<key>[].item_id
string
metadata.<key>[].name
string or null
metadata.<key>[].email
string

Example cURL

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