---
title: "Events Created"
method: POST
path: "events.created"
tags: ["Events"]
---

# Events Created

`POST events.created` (webhook)

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`

## Headers

- `webhook-id` string, required: A unique identifier for this webhook request
- `webhook-signature` string, required: The signature of the webhook request with the webhook version prepended
- `webhook-timestamp` string, required: The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

## Payload

- object
  - `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
    - `events` object[], required: Up to 50 of the account's new events, in the order Whop recorded them.
      - `context` object, required: UTM parameters, ad click ids and ad ids, as the page reported them. Keys the event did not carry are left out.
        - `ad_campaign_id` string, nullable
        - `ad_id` string, nullable
        - `ad_set_id` string, nullable
        - `fbclid` string, nullable
        - `gbraid` string, nullable
        - `gclid` string, nullable
        - `ig_sid` string, nullable
        - `li_fat_id` string, nullable
        - `msclkid` string, nullable
        - `rdt_cid` string, nullable
        - `sccid` string, nullable
        - `ttclid` string, nullable
        - `twclid` string, nullable
        - `utm_campaign` string, nullable
        - `utm_content` string, nullable
        - `utm_id` string, nullable
        - `utm_medium` string, nullable
        - `utm_source` string, nullable
        - `utm_term` string, nullable
        - `wbraid` string, nullable
      - `custom_name` string, nullable: The custom event's own name, for `custom` events.
      - `event_name` string, required: The event name as `POST /events` takes it, such as `page`, `view_content`, `add_to_cart` or `custom`.
      - `event_time` string, date-time, required: When the event happened.
      - `id` string, required: The event id, unique together with `event_name`. A redelivered event carries the same pair.
      - `product_id` string, nullable: The product the event was about.
      - `referrer_url` string, nullable: The page that linked to `url`.
      - `title` string, nullable: The page title.
      - `url` string, nullable: The page the event happened on.
      - `user` object, required: Who the event was about, as far as the page knew. Keys the event did not carry are left out.
        - `email` string, nullable
        - `first_name` string, nullable
        - `last_name` string, nullable
        - `name` string, nullable
        - `phone` string, nullable
        - `user_id` string, nullable
      - `value` Money, nullable
        - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
        - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
        - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
        - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
      - `variant_id` string, nullable: The variant the event was about.
      - `wuid` string, nullable, required: The visitor's `_wuid` first-party cookie id, so a browser session can be joined to this event. Null when the event carried none.
    - `id` string, required: The batch id. The same events always carry the same id, so a redelivered batch can be ignored.
  - `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

## Acknowledgement `200`

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

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
