Events

Events Created

Sent with events recorded by the Whop pixel or POST /events: page views, standard events such as view_content and add_to_cart, and custom events. Each event carries the visitor's wuid, UTM parameters and ad click ids as the page reported them. Events are batched: each delivery carries up to 50 of the account's new events in data.events, a few minutes after they happen. An event can be delivered twice, so deduplicate on its id and event_name together. child_resource_events does not apply to this event

Required permissions:

  • webhook_receive:events
postWebhookevents.created

Headers

webhook-id, string required

A unique identifier for this webhook request

Example:msg_xxxxxxxxxxxxxxxxxxxxxxxx
webhook-signature, string required

The signature of the webhook request with the webhook version prepended

Example:v1,BASE64ENCODEDSIGNATURE
webhook-timestamp, string required

The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

Example:1727606400

Payload

object required
account_id, string nullable

The account ID that this webhook event is associated with

api_version, 'v1' required

The API version for this webhook

api_version_date, string nullable required

The dated API version (Api-Version-Date) the payload is serialized to

data, object required
id, string required

A unique ID for every single webhook request

previous_attributes, object

For some .updated events, the old values of the payload fields that changed, keyed by field name. Omitted when no capture is available for the event

timestamp, string date-time required

The timestamp in ISO 8601 format that the webhook was sent at on the server

type, 'events.created' required

The webhook event type

Example payload

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "api_version": "v1",
  "api_version_date": "2026-07-20",
  "data": {
    "events": [
      {
        "event_name": "add_to_cart",
        "id": "evnt_8f14e45fceea167a5a36dedd4bea2543",
        "value": {
          "amount": "-1234.56",
          "currency": "usd",
          "decimals": 2,
          "display_decimals": 2
        },
        "wuid": "wuid_Rk7pQm2LzW9tYx4Nv8"
      }
    ],
    "id": "evtbatch_9f86d081884c7d659a2feaa0"
  },
  "id": "msg_xxxxxxxxxxxxxxxxxxxxxxxx",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "type": "events.created"
}

Response

Return a 200 status to indicate that the data was received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.