---
title: "Create Events"
method: POST
path: "/create-events"
tags: ["Events", "V2"]
---

# Create Events

`POST /create-events`

## Headers

- `referer` string
- `user-agent` string
- `x-forwarded-for` string
- `x-forwarded-host` string

## Request body

- Event[]
  - `tenant` string, required
  - `market` string, required
  - `deduplication_id` string, nullable
  - `type` 'page_view' | 'click' | 'add_to_cart' | 'purchase' | 'element_visible' | 'ws_click' | 'recommendations_inserted' | 'native_shopify_collection_click' | 'native_shopify_collection_view' | 'native_shopify_grid_item_click' | 'shopify_search_item_click' | 'shopify_search_add_to_cart' | 'shopify_search_purchase', required
  - `user_id` string, nullable
  - `session_id` string, nullable
  - `dsid` string, nullable
  - `ab_test_group` string, nullable
  - `product_id` string, nullable
  - `variant_ids` string[], nullable
  - `entity_identifiers` object, nullable
  - `url` string, nullable
  - `entity_price` string, nullable
  - `currency` string, nullable
  - `document_referrer` string, nullable
  - `document_width` string, nullable
  - `attribution_id` string, nullable
  - `recommendation_id` string, nullable
  - `search_result_id` string, nullable
  - `product_listing_result_id` string, nullable
  - `click_location` string, nullable
  - `page_url` string, nullable
  - `recommendation_type` string, nullable
  - `collection_handle` string, nullable
  - `shopify_collection_id` string, nullable
  - `grid_item_id` integer, nullable
  - `grid_item_link` string, nullable
  - `depict_ab_variant` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/depict/apis/depict-api.md) · [All operations](https://skmtc.net/depict/apis/depict-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/depict/depict-api/revisions/aad86b1030c7/schema)
