Skip to content
Scalekit Docs
Go to Dashboard

Webhook event object

A webhook (also called a web callback or HTTP push API) is a way for Scalekit to provide your applications with real-time information. A webhook delivers data to your applications as it happens, meaning you get data immediately, unlike typical APIs where you would need to poll for data very frequently to get it in real-time. Events represent specific actions or changes, while webhooks are the mechanism used to deliver these event notifications to your specified endpoint.

By leveraging webhooks, you can build responsive and dynamic integrations that react immediately to changes in Scalekit System, enabling you to keep your systems in sync and automate user lifecycle management and other related use cases.

The webhook event object contains standardized fields that provide context about the event, along with event-specific data in the data field.

Sample Event Payload
{
"spec_version": "1",
"id": "evt_123456789",
"object": "DirectoryUser",
"environment_id": "env_123456789",
"occurred_at": "2024-08-21T10:20:17.072Z",
"organization_id": "org_123456789",
"type": "organization.directory.user_created",
"data": {
// Event Data
}
}
PropertyDescription
spec_versionThe version of the event specification format. Currently “1”.
idA unique identifier for the event (e.g., evt_123456789).
objectThe type of object that triggered the event (e.g., “DirectoryUser”, “Directory”, “Connection”).
environment_idThe ID of the environment where the event occurred.
occurred_atISO 8601 timestamp indicating when the event occurred.
organization_idThe ID of the organization associated with the event.
typeThe specific event type (e.g., “organization.directory.user_created”).
dataEvent-specific payload containing details relevant to the event type.