Skip to main content
POST
Create a notification

Authorizations

Authorization
string
header
required

Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>.

Body

application/json

Create a notification for an existing feed. Slack destinations are validated against the workspace's Slack connection (channel IDs must resolve); webhook URLs must be public http(s) endpoints — a URL whose host is, or resolves to, a private, loopback, link-local or unique-local address is refused (WEBHOOK_URL_INVALID), and the same screen runs again at every delivery.

name
string
required

Notification display name. Max 191 characters, no control characters.

Required string length: 1 - 191
feedId
integer
required

ID of the feed whose filters drive this notification. A feed can have at most one notification.

Required range: -9007199254740991 <= x <= 9007199254740991
destinations
object[]
required

Delivery destinations — at least one, at most one per type (EMAIL / SLACK / WEBHOOK). Each entry must carry exactly the sub-object matching its type.

Minimum array length: 1

Response

200 response

A delivery rule: mentions matching the linked feed's filters are sent to the configured destinations.

id
integer
required

Notification ID.

Required range: -9007199254740991 <= x <= 9007199254740991
name
string
required

Display name shown in the app and included in deliveries.

Example:

"Competitor mentions — Slack"

enabled
boolean
required

When false, the notification is paused and nothing is delivered.

feedId
integer
required

The feed whose filters determine which mentions trigger this notification.

Required range: -9007199254740991 <= x <= 9007199254740991
feedName
string | null
required

Display name of the linked feed.

destinations
object[]
required

Configured delivery destinations (at most one per type).

createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
updatedAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$