alerts

Send this alert to a Slack channel as well as by email. The workspace must already be connected to the project. The returned IDs identify the destination.

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

Request

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

Path parameters

idstring uuid required

A UUID string identifying this 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'
  • slack - slack
slack_workspace_idinteger required

Integration ID of the Slack workspace to post in. List them with the integrations endpoint.

slack_channel_idstring required

Slack channel ID to post in, for example C0123456789.

slack_channel_namestring

Channel name shown on the destination, for example product-alerts.

Response

hog_function_idsstring[] required

IDs of the created destination. Pass them to destinations/delete to remove it.

Changes

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