provider logs POST /api/environments/{environment_id}/logs/alerts/{id}/destinations/
@utdk/posthog /api/environments/{environment_id}/logs/alerts/{id}/destinations/
environments_logs_alerts_destinations_create
Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
id path required
A UUID string identifying this logs alert configuration.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsLogsAlertsDestinationsCreate
POST/api/environments/{environment_id}/logs/alerts/{id}/destinations/
Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

required

A UUID string identifying this logs alert configuration.

Input

required

Destination type — slack, webhook, or teams. * `slack` - slack * `webhook` - webhook * `teams` - teams

Integration ID for the Slack workspace. Required when type=slack.

Slack channel ID. Required when type=slack.

Human-readable channel name for display.

HTTPS endpoint to POST to. Required when type=webhook, or the Teams webhook URL when type=teams.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsLogsAlertsDestinationsCreate()