Create Webhook
Create a new webhook.
Once a webhook is created, events will be sent to it based on the criteria specified in the webhook.
The data sent follows the Event schema and is sent as a JSON array in the POST request in the data
field. Below is an example request body:
Body
The URL that the webhook will send events to.
"https://your-webhook-url.com"
Whether to enable batching for the webhook. Defaults to false
.
true
The event types that the webhook will send. Defaults to ["*"] (all event types)
.
["page", "track", "identify", "group"]
The event names that the webhook will send. Defaults to ["*"] (all event names)
.
["UserSignedUp", "UserLoggedIn"]
Whether to flatten the event data. This is useful for downstream systems that don't support nested data structures. Defaults to false
.
true
Response
The UUID of the webhook. Automatically generated.
"123e4567-e89b-12d3-a456-426614174000"
The URL that the webhook will send events to.
"https://your-webhook-url.com"
Whether to enable batching for the webhook.
true
The date and time the webhook was created.
"2021-01-01T00:00:00.000Z"
The event types that the webhook will send. Use *
to match all event types.
["page", "track", "identify", "group"]
The event names that the webhook will send. Use *
to match all event names.
["UserSignedUp", "UserLoggedIn"]
Whether to flatten the event data. This is useful for downstream systems that don't support nested data structures.
true
Was this page helpful?