Get incoming webhook

Returns a single incoming webhook by ID.

GET https://incidents.betterstack.com/api/v2/incoming-webhooks/:incoming_webhook_id

URL parameters

incoming_webhook_id
required string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "4",
    "type": "incoming_webhook",
    "attributes": {
      "name": "test",
      "created_at": "2023-01-23T14:18:07.408Z",
      "updated_at": "2023-01-23T14:18:07.408Z",
      "policy_id": null,
      "url": "https://incidents.betterstack.com/api/v1/incoming-webhook/[token]",
      "sample_query_string": null,
      "sample_headers": null,
      "sample_body": null,
      "team_name": "Testing",
      "call": false,
      "sms": false,
      "email": true,
      "push": true,
      "critical_alert": false,
      "team_wait": 180,
      "recovery_period": 0,
      "paused": false,
      "started_rule_type": "unused",
      "acknowledged_rule_type": "unused",
      "resolved_rule_type": "unused",
      "started_rules": [],
      "acknowledged_rules": [],
      "resolved_rules": [],
      "cause_field": null,
      "title_field": null,
      "started_alert_id_field": null,
      "acknowledged_alert_id_field": null,
      "resolved_alert_id_field": null,
      "other_started_fields": null,
      "other_acknowledged_fields": null,
      "other_resolved_fields": null
    }
  }
}

Response attributes

id
string
type
string
attributes.name
string or null
attributes.created_at
string
attributes.updated_at
string
attributes.policy_id
string or null
attributes.url
string
attributes.sample_query_string
string or null
attributes.sample_headers
string or null
attributes.sample_body
string or null
attributes.team_name
string
attributes.call
boolean
attributes.sms
boolean
attributes.email
boolean
attributes.push
boolean
attributes.critical_alert
boolean
attributes.team_wait
integer or null
attributes.recovery_period
integer
attributes.paused
boolean
attributes.started_rule_type
string
attributes.acknowledged_rule_type
string
attributes.resolved_rule_type
string
attributes.started_rules
array
attributes.started_rules[].created_at
string
attributes.started_rules[].updated_at
string
attributes.started_rules[].rule_target
string
attributes.started_rules[].target_field
string or null
attributes.started_rules[].match_type
string
attributes.started_rules[].content
string
attributes.acknowledged_rules
array
attributes.resolved_rules
array
attributes.cause_field
object or null
attributes.cause_field.name
string or null
attributes.cause_field.special_type
string or null
attributes.cause_field.field_target
string
attributes.cause_field.target_field
string or null
attributes.cause_field.match_type
string
attributes.cause_field.content
string or null
attributes.cause_field.content_before
string or null
attributes.cause_field.content_after
string or null
attributes.title_field
object or null
attributes.started_alert_id_field
object or null
attributes.acknowledged_alert_id_field
object or null
attributes.resolved_alert_id_field
object or null
attributes.other_started_fields
array or null
attributes.other_acknowledged_fields
array or null
attributes.other_resolved_fields
array or null

Example cURL

Example
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/incoming-webhooks/4 \
  --header "Authorization: Bearer $TOKEN"