Skip to main content
POST
Create a Slack alert trigger

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Body

application/json
slack_webhook
string<uri>
required

Incoming webhook URL the alert is posted to

name
string
required

How the trigger is listed in the app

alert_type
enum<string>
required
Available options:
CRITICAL,
WARNING,
INFO
message
string

Extra line included with each alert

filters
object

Which traces the trigger fires on. An empty object fires on all of them.

Response

The trigger was created

message
string
required

Human-readable confirmation