Skip to main content
POST
Build an example of one alert type from a real account in your workspace with recent competitor activity. The response shows the message as Slack and email show it, the owner it names, where it would go, and how many accounts would alert today under the rule. Send use_case (defense or attack) and any of the fields Update Competitor Alerts takes. They are a draft: nothing is saved, and a field you leave out reads its saved value. This lets you check a new rule, channel or email list before saving it. The preview covers the alert type even when it is turned off, and webhook_secret is ignored. Nothing is sent: no Slack post, no email and no webhook call.

Response

Authorizations

Authorization
string
header
required

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

Body

application/json
use_case
enum<string>
required

The alert type to preview: defense (your customers) or attack (accounts that are not customers).

Available options:
defense,
attack
enabled
boolean

Whether competitor alerts go out. false stops every Slack post, email, webhook call and team refresh recap.

attack_slack_channel_id
string

The Slack channel Attack alerts post in, as a Slack channel id such as C0123456789. An empty string clears it.

defense_slack_channel_id
string

The Slack channel Defense alerts post in. May be the same as the Attack channel. An empty string clears it.

attack_email_enabled
boolean

Email each Attack alert to the account owner from your CRM and to attack_email_recipients.

defense_email_enabled
boolean

Email each Defense alert to the CS owner from your CRM and to defense_email_recipients.

attack_email_recipients
string<email>[]

Extra addresses that get every Attack alert by email, at most 50. Replaces the saved list; an empty list clears it. An address without an @ is a 400.

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

Extra addresses that get every Defense alert by email, at most 50. Replaces the saved list.

Maximum array length: 50
webhook_enabled
boolean

Sends every alert and every team refresh recap to webhook_url as a POST request. Requires webhook_url; without one the call answers 400.

webhook_url
string

The endpoint, https:// (or http://) with a host, at most 2048 characters. An empty string clears it. See Webhook payloads.

webhook_secret
string
write-only

The secret that signs each request with X-ClustR-Signature. It is write-only: the response reports has_webhook_secret in its place. Leave it out to keep the saved secret; an empty string removes it. At most 256 characters.

attack_threshold_interactions
integer

An account that is not a customer alerts when it has at least this many interactions over attack_threshold_days. From 1 to 10000. Default 10.

Required range: 1 <= x <= 10000
attack_threshold_days
integer

The period the threshold counts over, in days. From 1 to 365. Default 30.

Required range: 1 <= x <= 365
attack_threshold_scope
enum<string>

per_competitor (default) counts an account's interactions with each competitor's team on its own. all_competitors counts them across all your competitors together; the alert then names the most active one.

Available options:
per_competitor,
all_competitors
alert_history_days
integer

How old a Defense interaction or a critical comment may be and still alert, in days. From 1 to 365. Default 14. Older activity still appears in every view without alerting.

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

Defense alerts: interactions on one of your customers.

targets
boolean

Attack alerts: critical comments and threshold alerts on accounts that are not customers, both your target accounts and every other account a competitor engages with. Each alert is labelled "Target account" or "Other account" (account_scope in the webhook).

attack_other_accounts
boolean

true (default) keeps the Attack alerts on other accounts, the non-customers that are not on your target account list. false mutes them: Attack then alerts on your target accounts only.

defense_interaction_kinds
enum<string>[]

Defense alerts: the interactions that count, comment and/or like. Default both.

Available options:
comment,
like
attack_interaction_kinds
enum<string>[]

Attack alerts: the interactions that count, comment and/or like. Default both.

Available options:
comment,
like
defense_min_people
integer

Defense alerts: an account alerts once this many people there were engaged in the period. Default 2.

attack_min_people
integer

Attack alerts: an account alerts once this many people there were engaged in the period. Default 2.

defense_period_days
integer

Defense alerts: the period the people engaged are counted over, in days (1 to 365). Default 30.

attack_period_days
integer

Attack alerts: the period the people engaged are counted over, in days (1 to 365). Default 30.

defense_comment_alone
boolean

Defense alerts: a comment is enough. An account also alerts when one comment there falls in the period, below defense_min_people.

attack_comment_alone
boolean

Attack alerts: a comment is enough. An account also alerts when one comment there falls in the period, below attack_min_people.

notify_defaults
boolean
slack_dm
boolean
slack_channel_id
string
recipients
string<email>[]

Response

The example alert

success
boolean
required
Example:

true

data
object
required