Flashcat API (English)
API referenceDocs中文
API referenceDocs中文
  1. Webhook
  • Open API
    • Quick Start
    • About Pagination
    • Member Management
      • Invite members
      • Delete member
      • Reset information
      • Member list
    • Team Management
      • Team list
      • Basic information
      • Delete team
      • Team upsert
    • Schedule Management
      • Preview schedule
      • Update schedule
      • Enable schedule
      • Disable schedule
      • Create schedule
      • Delete schedule
      • View schedule details
      • Get schedule information by ID list
      • View schedule list
      • Personal schedule calendar
      • Role information
    • Information Retrieval
      • Channel
      • Member
      • Team
    • Preference Settings
      • View preference settings
      • Modify preference settings
    • Channel
      • Escalation Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Rule details
        • Create rule
        • Update rule
      • Subscription Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Create rule
        • Update rule
      • Drop Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Create rule
        • Update rule
      • Silence Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Rule details
        • Inner conditions
      • Inhibit Rules
        • Disable rule
        • Delete rule
        • Rule list
        • See creation interface for filters explanation
        • Channel ID
        • Rule name
      • Match conditions
      • Delete rule
      • See creation interface for filters explanation
      • Enable rule
      • Update rule
      • Rule ID
      • Rule name
      • Sort
      • Delete rule
      • See creation interface for filters explanation
      • Name by integration
      • Robot list
    • Template Management
      • Name
      • Enable rule
      • Delete rule
      • See creation interface for filters explanation
      • Channel ID
      • Rule name
      • Required when updating
      • Update rule
    • Incident Management
      • Group View
        • Channel
        • Rule name
        • Inner conditions
        • Channel
      • Match conditions
      • Enable rule
      • Disable rule
      • Delete rule
      • Rule list
      • See creation interface for filters explanation
      • Create rule
      • Rule description
      • Update rule
      • Channel
      • Match conditions
      • Match conditions
      • Update rule
      • Channel
      • Rule ID
      • Inner conditions
      • Enable rule
      • Rule list
      • Rule details
      • Rule name
      • Rule description
      • Match conditions
      • Rule description
      • See creation interface for filters explanation
      • Disable rule
      • Rule description
    • Alert Management
      • Group View
        • Required when updating
        • Rule name
        • Inner conditions
        • Disable rule
      • Alert Info
      • Close Alert
      • Alert List By Card
      • Alert List
      • Alert List By ID
      • Event List
      • Feed
      • Merge Incident
    • Change Management
      • Inner conditions
    • Insights (old)
      • Channel
      • Match conditions
      • Rule ID
      • Enable rule
      • Name
      • Disable rule
      • Rule name
      • Name
      • See creation interface for filters explanation
    • Custom Fields
      • Enable rule
      • Disable rule
      • See creation interface for filters explanation
      • Channel ID
      • Channel
    • Service Calendar
      • Match conditions
      • Delete rule
      • Update rule
      • Required when updating
      • Rule details
      • Required when updating
      • Inner conditions
      • Channel
    • Label Enhancement
      • Mapping
        • Rule name
        • Rule list
        • Rule description
        • Match conditions
        • Rule ID
        • Rule description
        • Inner conditions
        • Enable rule
        • Disable rule
        • Rule description
      • Enable rule
      • Delete rule
    • Alert Processing
      • Create rule
      • Rule name
    • Integration Routing
      • Required when updating
      • Rule description
      • Match conditions
    • License Management
      • Create rule
    • Insights
      • Team Metrics
      • Responder Metrics Export
      • Incident List
      • Responder Metrics
      • Account Metrics
      • Channel Metrics Export
      • Team Metrics Export
      • Incident Export
      • Alert Top
      • Cahnnel Metrics
  • Event API
    • Quick Start
    • Alert Event
    • Change Event
  • Webhook
    • Quick Start
    • Custom Actions
    • Alert Webhook
    • Incident Webhook
  1. Webhook

Incident Webhook

Configure Incident Webhook to have the system callback your configured address via HTTP when specific incident operations (such as trigger, close) occur. The callback content will include the latest key information about the incident, allowing you to integrate with your own tools.

I. Event Types#

The following event types are currently supported, with more possibly added in the future.
Event TypeDescription
i_newCreate incident (automatic or manual)
i_assignAssign incident (automatic or manual)
i_snoozeManually snooze incident
i_wakeUnsnooze incident
i_ackManually acknowledge incident
i_unackUnacknowledge incident
i_stormTrigger storm warning
i_customTrigger custom action
i_rslvClose incident (automatic or manual)
i_reopenReopen incident
i_mergeManually merge incidents
i_r_titleUpdate incident title
i_r_descUpdate incident description
i_r_impactUpdate incident impact
i_r_rcUpdate incident root cause
i_r_rsltnUpdate incident resolution
i_r_severityUpdate incident severity
i_r_fieldUpdate incident custom fields

II. Push Description#

Request Method#

POST, Content-Type:"application/json"

Request Payload:#

FieldTypeRequiredDescription
event_timeint64YesEvent occurrence timestamp in milliseconds
event_typestringYesEvent type, see Event Types for enumeration values
event_idstringYesEvent ID, same event may retry multiple times due to timeout, receiver needs to deduplicate
personPersonNoOperator, exists only for manual actions
incidentIncidentYesIncident details
Person:
FieldTypeRequiredDescription
person_idint64YesPerson ID
person_namestringYesPerson name
emailstringYesEmail address
Responder:
FieldTypeRequiredDescription
person_idint64YesPerson ID
person_namestringYesPerson name
emailstringYesEmail address
assigned_atint64NoAssignment time
acknowledged_atint64NoAcknowledgment time
Incident:
FieldTypeRequiredDescription
incident_idstringYesIncident ID
titlestringYesIncident title
descriptionstringNoIncident description
impactstringNoIncident impact
root_causestringNoIncident root cause
resolutionstringNoIncident resolution
incident_severitystringYesSeverity level, enum: Critical, Warning, Info
incident_statusstringYesIncident status, enum: Critical, Warning, Info, Ok
progressstringYesProcessing progress, enum: Triggered, Processing, Closed
created_atint64YesCreation time
updated_atint64YesUpdate time
start_timeint64YesTrigger time, Unix timestamp in seconds
last_timeint64NoLatest event time, latest event push time of associated alerts, Unix timestamp in seconds, default 0
end_timeint64NoRecovery time, incident auto-recovers when all associated alerts recover, Unix timestamp in seconds, default 0
ack_timeint64NoFirst acknowledgment time, incident can be acknowledged by multiple people, this is earliest ack time. Unix timestamp in seconds, default 0
close_timeint64NoClose time, end_time represents incident recovery time, close_time represents progress closure time. Recovery closes incident but closure doesn't affect recovery. Unix timestamp in seconds, default 0
snoozed_beforeint64NoSnooze end time
labelsmap[string]stringNoLabel key-values, both Key and Value are strings. No info for manual creation, for auto-creation it's the labels of first aggregated alert
fieldsmap[string]interface{}NoCustom field key-values, Key is string, Value can be any type depending on field type
creatorPersonNoCreator info, exists only for manually created incidents
closerPersonNoCloser info, exists only for manually closed incidents
responders[]ResponderNoList of responder information
alert_cntint64NoNumber of associated alerts
channel_idint64NoChannel ID, 0 means not belonging to any channel
channel_namestringNoChannel name
detail_urlstringYesDetail URL
group_methodstringNoGrouping method, enum: n: no grouping, p: rule-based grouping, i: intelligent grouping

Response#

HTTP status code 200 indicates successful push.

Request Example#

III. Common Questions#

1.
Is there a response timeout for the service?
The service must respond within 1 second, otherwise it will be considered as a failed response
2.
Will pushes continue after a failed push?
Currently, FlashDuty pushes at most once. A retry mechanism may be introduced in the future, and retries may also occur due to middleware timeouts. You need to handle idempotency properly
3.
How is push order guaranteed?
In theory, events for the same incident are pushed in chronological order, but retries and other situations may cause out-of-order delivery
The service can filter based on event_time. If a later event has been received, earlier events can be filtered out. Each push carries the latest and complete information, occasional event loss is tolerable
4.
Trusted IP whitelist for push sources?
47.94.95.118, 123.56.8.183, 47.94.193.81, 1.13.19.96
May be updated in the future, please check periodically
Previous
Alert Webhook
Built with