Create alert or pipeline destination
Creates a new alert destination configuration for an organization. Destinations define where alert notifications are sent when alert conditions are met, including webhooks, email addresses, and SNS topics.
IMPORTANT: The template field is REQUIRED to create an alert destination. Use 'Default' for the built-in template. For pipeline destinations, this includes external systems like OpenObserve, Splunk, Elasticsearch, etc. Use the 'module' query parameter to specify destination type: 'alert' (default) or 'pipeline'.
Without a template, the destination becomes a pipeline destination and cannot be used with alerts.
Example HTTP destination:
{"name": "my_webhook", "url": "https://example.com/webhook", "method": "post", "type": "http", "template": "Default"}
Example Email destination:
{"name": "my_email", "type": "email", "emails": ["alerts@example.com"], "template": "Default"}
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScripthttps://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/alerts/destinations/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Organization name
Query parameters
Destination module type: 'alert' (default) or 'pipeline'
Request body
Example request
{
"channel_id": "C0FAKE00001",
"name": "my_alert_webhook",
"template": "Default",
"url": "https://example.com/webhook"
}Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.