Skip to main content

Webhook Setup Guide

Prerequisites

Before you start, set up an HTTP client to send your events to Matia. Your website, your application, or any other system that makes HTTP requests can fill this role.

Setup Guide

In the integration setup form:

  1. Name the Destination schema where your events should land.
  2. Type the name of the Destination table that will hold your events.
  3. Under Sync format, pick Packed or Unpacked to decide how Matia writes each event to that table (see the comparison below).

Packed vs Unpacked

The two formats differ in how much of the event's JSON Matia breaks out into columns. Take this sample event:

{
"foo": 1,
"nested": {
"bar": 2
}
}

Unpacked

Each top-level field gets its own column, and Matia detects the column types. Anything nested deeper stays as JSON, so the sample event lands as:

_ID INTEGERFOO INTEGERNESTED JSON
?1{"bar":2}

Packed

The whole event is kept intact in one JSON column, so the sample event lands as:

_ID INTEGERDATA JSON
?{"foo":1,"nested":{"bar":2}}

In the connector setup form:

  1. Enter a Name for the connector.
  2. (Optional) Enter a Description for the connector.
  3. Select the Owner of the connector.
  4. (Optional) Verify that your Webhook is successfully connected by clicking on Test Connection.
  5. Click Connect.

Schema Information

All events a webhook connector receives go into the same table, so for several webhook tables in one schema, set up one connector per table.

Matia adds these columns to every webhook table:

COLUMNDESCRIPTION
_created🔑 When Matia recorded the event.
_id🔑 A random UUID, generated when the event arrives.
_index🔑 The event's position in its batch, numbered 0, 1, 2, and so on from the first event. Every event in a batch carries the same _id, so this number is what keeps each row distinct.
_ipThe sending client's IP address.

ON THIS PAGE

Need Help?

Get help and support on all things Matia.

Contact Us