Skip to content

mixpanel_webhook (Resource)

Manages a Mixpanel Webhook (mixpanel_webhook) — an outbound HTTP destination that receives real-time event data from a Mixpanel project. Webhooks can send events to external services as they arrive.

Example Usage

resource "mixpanel_webhook" "example" {
  project_id = 1234567

  name = "Order events webhook"
  url  = "https://example.com/hooks/mixpanel"

  auth_type = "basic"
  username  = "mixpanel"
  password  = "s3cr3t"
}

Schema

Required

  • name (String) Webhook display name (1-100 chars).
  • url (String) Destination URL (1-2083 chars).

Optional

  • auth_type (String)
  • password (String, Sensitive)
  • project_id (Number)
  • username (String)

Read-Only

  • created (String)
  • creator_id (Number)
  • creator_name (String)
  • id (String) The ID of this resource.
  • is_enabled (Boolean)
  • modified (String)

Import

Import a webhook using PROJECT_ID:WEBHOOK_ID:

import {
  to = mixpanel_webhook.example
  id = "1234567:webhook_abc123"
}
terraform import mixpanel_webhook.example 1234567:webhook_abc123