Skip to main content
POST
Create an alert
Private beta. This feature is only available to some organizations right now.
Authenticate with a personal access token.

Body

string
required
What to alert on. Use limits.all for a combined Limits alert, or a single limit such as limits.api, limits.concurrency, limits.queue, limits.webhooks.processing, limits.webhooks.env_rate, limits.webhooks.endpoint_rate or limits.webhooks.waiters.
string
required
One of dev, staging, prod or preview.
string
Preview branch. Only valid when environment is preview.
object
required
object
required
For Limits alerts, set kind to state and stateKey to the same value as capabilityKey.
object[]
required
At least one notifier, for example { "type": "channel", "channelId": "..." }.
object
required
Optional expiresAt (ISO 8601 date in the future).
string
A name for the alert.
Invalid components or signals return a 400 with an error message.

Examples

Watch every limit and raise when any is true:
Watch only the API rate limit, when usage reaches 90%: