Frenzy AI Personalization
  • Welcome to the Frenzy docs
  • Shopify App
    • Product Feed Sync
    • Install Components
    • Configuring Product Card
      • Custom Data
      • Reviews
      • Wishlist Icons
      • Quick Views
      • Swatches
      • Testing Product Cards
    • Search & Collections
      • Merchandising
        • Sorting
        • Rules
      • Filters
        • Filter Trees
    • Recommendation Widgets
      • Widgets
      • Data Sources
    • Synonyms
    • Global CSS
    • Tutorials
      • Search & Collection Page Merchandising
        • How to Bury Products Globally on all Collection Pages
        • How to Pin Products in Collection Group
        • How to Bury Sale Products Globally on all Collection Pages
        • How to Sort a Collection Page based on Newly Published/Created Products
        • How to Bury Sale Products Globally on all Search Pages
        • How to Hide Products on Search Pages Globally
        • How to boost products (using tags) for a Search Query
        • How to turn on Personalization on Collection Groups
        • How to show Shopify Merchandising on Collection Groups
        • How to bury Out Of Stock Products in Collection Groups
        • How to turn on Personalization on All Search Result Pages
        • How to setup top 10 automated Bestsellers Collections
        • How to Group Products using Tags on Collection Pages
        • How to setup custom products groups on Collection Pages
        • How to Group Products using Tags on Search Pages
        • How to set-up an A/B test on Search and Collection pages
      • Recommendation Carousels
        • How to change the title of the Carousel
        • How to set up an A/B test on a recommendation carousel
        • How to add a collection based homepage carousel
        • How to add 'Selected for You' homepage carousel
        • How to add 'Best Sellers' homepage carousel
        • How to Hide Products in Recommendation Carousels
        • How to create Manual Product Based Carousel
      • Filters
        • How to create filters from Product Tags
        • How to create filters from Product Metafields
        • How to create filters from Color Variants
      • Synonyms
      • Swatches
  • API Functions
    • Search
      • Search API Call
      • Suggest API Call
    • Carousels
      • /recommendation
      • /pair-with
      • /personalized-recommendation
      • /most-clicked-skus
      • /add-cart
    • Sharing Event Data
      • Google Tag Manager
      • API Call
    • product-data
  • Support
Powered by GitBook
On this page
  • send events to Frenzy AI
  • Response Object
  • Example Request

Was this helpful?

  1. API Functions
  2. Sharing Event Data

API Call

This page explains the request and response formats of the '/events' endpoint of Frenzy Search. It also provide examples to help you understand better.

send events to Frenzy AI

POST https://xyz.search.frenzy.ai /events

The request body will include an array of event objects.

Headers

Name
Type
Description

X-Frenzy-Authorization*

string

API key provided at the time of account creation.

Content-type*

string

application/json

Request Body

Name
Type
Description

event_name*

string

Type of event to share e.g. Add to Cart, etc.

user_id*

string

User ID that triggered the event.

query_id

string

Query ID sent in the response of search, recommendation, etc calls.

sku

string

Affected sku.

time

string

Time of event occurance UTC format. (e.g.

2021-02-13 17:00:02)

If not provided will use the arrival time of the request.

query

string

user entered query

filters

json

user selected filters

shop

string

name of the Shopify Store. (required for shopify stores)

{'status': 'Event saved', 'success': true}}
{'error': 'server_error'}

Response Object

status
success

String- describing if the event is saved. In case of failure, return the error message.

Boolean- describing if the event was saved or not.

Example Request

curl --location --request POST 'https://xyz.search.frenzy.ai/events' \
--header 'Content-Type: application/json' \
--header 'X-Frenzy-Authorization: API_KEY' \
--data-raw '[{
    "event_name":"add to cart",
    "user_id": "1234",
    "sku":"PSS-123-12345"
}]'

NOTE: Historic events can be shared over the API. Please add the time of event occurrence in the request.

PreviousGoogle Tag ManagerNextproduct-data

Last updated 1 year ago

Was this helpful?