Search documentation...

K
ChangelogBook a demoSign up

Webhook

Overview

Hightouch supports ingesting events via webhook HTTP requests sent to a webhook endpoint hosted by Hightouch. This allows you to send events from any system that supports webhooks (eg. Stripe, Iterable, Shopify).

Once you create a webhook event source, Hightouch automatically creates a custom webhook endpoint that will extract, transform, and load webhook data into Hightouch Events. Your data can then be synced to your warehouse or streamed to our catalog of realtime destinations.

Setup

To get started, create an event source, select Webhook and follow the steps below.

Event Structure

All webhooks are ingested into Hightouch as track events. The HTTP request headers and body (JSON) are exposed as custom properties on the track event.

For example, the following webhook:

{
  "name": "Order Completed",
  "data": {
    "user_id": "user_123",
    "order_id": "order_456",
    "amount": 123.45
  }
}

Will be ingested into Hightouch as:

{
  "type": "track",
  "event": "Order Completed",
  "properties": {
    "body": {
      "name": "Order Completed",
      "data": {
        "user_id": "user_123",
        "order_id": "order_456",
        "amount": 123.45
      }
    },
    "headers": {}
  },
  "context": {
    "ip": "0.0.0.0"
  },
  "timestamp": "2024-07-29T14:52:37.648Z"
}

Field mappings

You can configure how Hightouch transforms incoming webhooks to Hightouch track events. Mappings can be configured for the following fields:

  • event - When providing a path to the field you want to use for the event name, please reference the path relative to the webhook request body, not the event object displayed in the Hightouch debugger.

You can also transform your events using Functions in order to standardize the schema or enrich its contents.

Schema Enforcement

Event Contracts can be attached to Webhook sources just like any other Event Source.

Ready to get started?

Jump right in or a book a demo. Your first destination is always free.

Book a demoSign upBook a demo

Need help?

Our team is relentlessly focused on your success. Don't hesitate to reach out!

Feature requests?

We'd love to hear your suggestions for integrations and other features.

Last updated: Sep 20, 2024

On this page

OverviewSetupEvent StructureField mappingsSchema Enforcement

Was this page helpful?