Skip to main content
PUT
Turn competitor alerts on or off, and for Attack and for Defense pick the Slack channel and whether each alert is emailed. Set up the webhook, the Attack threshold and its scope, and how far back a single interaction still alerts. Each alert type has its own rule: the interactions that count (*_interaction_kinds), the minimum people engaged at the account (*_min_people), the period (*_period_days), and whether a single comment in the period is enough on its own (*_comment_alone). An account alerts once per monitoring run, listing every person engaged, when it meets the rule and someone new was engaged. Each alert is posted in its use case’s channel, naming the owner from your CRM (the account owner for Attack, the CS owner for Defense, read live when the alert is sent, nobody when the field is empty), emailed to that owner and the use case’s extra addresses when email is on, and POSTed to the webhook when it is on. Send only the fields you want to change; a field you leave out keeps its saved value. An API key may always call it; a signed-in person needs the admin role.
No channel, no email and no webhook means no alerts. Saving with none is allowed, and the response says so with has_delivery: false. With email on but no owner in your CRM and no extra address, that alert is not emailed.

Authorizations

Authorization
string
header
required

The API key you created on the API settings page of the Clustr app.

Body

application/json
enabled
boolean
attack_slack_channel_id
string

A Slack channel id; empty clears it.

defense_slack_channel_id
string

A Slack channel id; empty clears it.

attack_email_enabled
boolean

Email each Attack alert to the account owner and attack_email_recipients.

defense_email_enabled
boolean

Email each Defense alert to the CS owner and defense_email_recipients.

attack_email_recipients
string<email>[]

Replaces the list; empty clears it.

Maximum array length: 50
defense_email_recipients
string<email>[]

Replaces the list; empty clears it.

Maximum array length: 50
webhook_enabled
boolean

Needs a webhook_url.

webhook_url
string

An http(s) URL; empty clears it.

webhook_secret
string
write-only

Signs each POST (X-ClustR-Signature). Omitted keeps the saved one; empty clears it.

attack_threshold_interactions
integer
Required range: 1 <= x <= 10000
attack_threshold_days
integer
Required range: 1 <= x <= 365
attack_threshold_scope
enum<string>
Available options:
per_competitor,
all_competitors
alert_history_days
integer
Required range: 1 <= x <= 365
customers
boolean
targets
boolean
attack_other_accounts
boolean

False mutes the Attack alerts on other accounts (not on your target account list); true alerts on them too. Default true.

defense_interaction_kinds
enum<string>[]

Defense: the interactions that count.

Minimum array length: 1
Available options:
comment,
like
attack_interaction_kinds
enum<string>[]

Attack: the interactions that count.

Minimum array length: 1
Available options:
comment,
like
defense_min_people
integer

Defense: the people engaged an account needs to alert.

Required range: 1 <= x <= 1000
attack_min_people
integer

Attack: the people engaged an account needs to alert.

Required range: 1 <= x <= 1000
defense_period_days
integer

Defense: the period, in days.

Required range: 1 <= x <= 365
attack_period_days
integer

Attack: the period, in days.

Required range: 1 <= x <= 365
defense_comment_alone
boolean

Defense: a comment is enough. One comment in the period alerts, below defense_min_people.

attack_comment_alone
boolean

Attack: a comment is enough. One comment in the period alerts, below attack_min_people.

notify_defaults
boolean
deprecated

Deprecated and ignored.

slack_dm
boolean
deprecated

Deprecated and ignored.

slack_channel_id
string
deprecated

Deprecated and ignored.

recipients
string<email>[]
deprecated

Deprecated and ignored.

Response

Typed result envelope.

data
object

Mirrors handlers.competitorAlertsResponse.