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
Available options:
defense,
attack
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

The example message.

data
object