Skip to main content
POST
Create or update incident trigger subscription

Restrictions

Usage

  • Use this when an AI SRE automation rule needs to receive new-incident trigger events from selected On-call channels.
  • source, consumer, and consumer_ref identify the subscription. Omitting subscription_id upserts the row for that tuple.
  • Only Critical, Warning, and Info severities are valid; enabled defaults to true.
  • Every call is recorded in the account audit log. Don’t put secrets in request fields.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json

Create or update an incident trigger subscription.

source
string
required

Subscription source. Use ai_sre_automation for AI SRE automation rules.

consumer
string
required

Consumer system. Use fc_safari for AI SRE automation rules.

consumer_ref
string
required

Consumer-owned reference, such as an Automation rule ID.

channel_ids
integer<int64>[]
required

On-call channel IDs whose new incidents should trigger the consumer.

Minimum array length: 1
severities
enum<string>[]
required

Incident severities to subscribe to. Ok is not valid.

Minimum array length: 1
Available options:
Critical,
Warning,
Info
subscription_id
string

Existing subscription ID. Omit to create or upsert by source, consumer, and consumer_ref.

enabled
boolean

Whether the subscription is enabled. Defaults to true when omitted.

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
required

Incident trigger subscription stored by On-call.