vision

Create a notification destination for this alert. One HogFunction is created per alert event kind atomically.

post/api/projects/{project_id}/vision/alerts/{id}/destinations/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/vision/alerts/{id}/destinations/
  • Auth: HTTP bearer

Path parameters

idstring uuid required

A UUID string identifying this vision alert configuration.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

type'slack' | 'webhook' required
  • slack - slack
  • webhook - webhook
slack_workspace_idinteger

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

slack_channel_idstring

Slack channel ID. Required when type=slack.

slack_channel_namestring

Human-readable channel name for display.

webhook_urlstring uri

HTTPS endpoint to post to. Required when type=webhook.

Response

hog_function_idsstring[] required

HogFunctions backing the created destination, one per event kind.

Changes

No recorded changes to this operation across all 1 revision of this API.