--- title: "Eureka Event Collection API" slug: "eureka-event-collection-api" description: "Introduces Eureka's Event Collection API, an index linking to search, product-click, add-to-cart, purchase, and product-list-view event payload docs pages." tags: ["eureka event collection api", "event collection api"] updated: 2026-10-12T07:42:48Z published: 2026-10-12T07:42:48Z canonical: "academy.insiderone.com/eureka-event-collection-api" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Eureka Event Collection API The Eureka Event Collection API collects user engagement data from Insider One's Eureka search experience. This API enables you to send search analytics data to Insider One if y’t use the Eureka Search Pop-up or SDK. > [!NOTE] > If you are using the Eureka Search Pop-up, event logs are tracked automatically; no additional integration is needed. If you are using the Eureka SDK, refer to the [Eureka SDK Campaign Implementation](/v1/docs/eureka-sdk-campaign-implementation) guide for SDK-based event tracking. The primary purpose of the API is to enable you to collect the metrics needed to measure the success of the search experience. These metrics allow you to measure how successful the search experience you provide to your users is. After integrating with the Event Collection API, you can visit the [Eureka Analytics](/v1/docs/eureka-search-analytics) dashboard to visualize **engagement funnel metrics** and **keyword-based search insights**. ## Use cases You can use the Eureka Event Collection API for your different needs: - **Custom Search UI** If you use your own search interface instead of the Eureka Search Pop-up or SDK, you need to send user engagement data through this API. - **Mobile App Integration** When you use Eureka search results in your mobile app, but want to send engagement data from the server side. - **Server-Side Tracking** When you want to collect search, click, add-to-cart, and purchase events server-side (backend-to-backend). - **Category/Brand Listing Pages** If you manage your listing pages with the Eureka Category Merchandising API, you can use this API to collect engagement data from those pages. - **A/B Testing Analytics** When running A/B tests through Eureka SDK campaigns and measuring the performance of different variations. To start using the API, you need the following information from the [Inone settings](/docs/inone-account-settings): | Information | Description | Where to find it | | --- | --- | --- | | Authentication Token (x-auth-token) | [API authentication token](https://academy.insiderone.com/docs/api-authentication-tokens). Valid for all Eureka components (search, event collection) | **InOne panel** > [**Integration Settings**](https://academy.insiderone.com/docs/inone-integration-settings) > **Generate API Key** | | Partner ID | Your unique numeric identifier (e.g., 10000001). | **InOne panel** > [**Account Settings**](https://academy.insiderone.com/docs/inone-account-settings). | | Locale | Language and region code (e.g., en_GB, tr_TR). | Browser Console: Insider.systemRules.call('getLocale') | After you receive an API key, you can use it to authenticate your requests. ## Endpoint and Headers The Event Collection API operates through a single endpoint. You only need to configure the payload based on the event type. The API accepts only **POST** requests. > **POST** https://eurekaevent.api.useinsider.com/api/v1/events [](https://developers.insiderone.com/#e834137f-4c42-4e46-8f5c-33297fcbef16) | Headers | Sample Value | Description | | --- | --- | --- | | x-auth-token | INS.************************ | This key is required to authorize your request. Refer to [API Authentication Tokens](https://academy.insiderone.com/docs/api-authentication-tokens) to generate your Event Collection API token. | | x-partner-config-key | 10000001-en_GB | This is the concatenation of your partner ID and locale. Format: {partnerId}-{locale} | ## Event Types The Eureka Event Collection API supports the following event types. Click on each event type for detailed payload documentation. | Event Type | Event Type Value | Description | | --- | --- | --- | | [Search Event](/v1/docs/event-collection-search-event) | search | Sent when a user performs a search, and the search results page is displayed | | [Product List View Event](/v1/docs/event-collection-api-product-list-view-event) | product-list-view | Sent when a user views a category or brand listing page | | [Product Click Event](/v1/docs/event-collection-product-click-event) | product-click | Sent when a user clicks on a product from search results or a listing page | | [Add to Cart Event](/v1/docs/event-collection-add-to-cart-event) | add-to-cart | Sent when a user adds a product to their cart from search results or a listing page | | [Purchase Event](/v1/docs/eureka-purchase-event) | purchase | Sent when a user purchases a product that was accessed through search results | ## Request Payload The configuration for event payloads requires specific settings, and you can find detailed information for each payload type on its corresponding child page. Within the event payload, you will find common fields such as **traceId**, **strategyId**, **sorting**, **source**, **facets**, and **product** fields. To prepare defined object structures or identifications, refer to [Common Properties](/v1/docs/event-collection-common-properties). Send the product fields as parameters, including their field names and data types as stated. If any of the required fields is missing, the event will not be inserted. If any parameter not defined in the specification is sent via the Event API, it will not be processed. ## Response | Parameter | Definition | | --- | --- | | status | Shows the result of the request. Possible values: **- Success**: Event successfully collected. **- Error**: Unexpected server error. **- Invalid**: Validation error, request is invalid | | error | Contains code and message details when a server error occurs (HTTP 5XX) | | validations | Array containing error details when the request is invalid (HTTP 4XX) | - **Success Response** ```json {  "status": "Success" } ``` - **Error Response (HTTP 5XX)** ```json {  "status": "Error",  "code": 500,  "message": "Internal Server Error" } ``` - **Validation Error Response (HTTP 4XX)** ```json {  "code": 400,  "message": "Validation Exception Occurred",  "validations": [    "Key: 'AddToCart.SearchSessionId' Error:Field validation for 'SearchSessionId' failed on the 'required' tag"  ] } ``` ## Validations While using the Event Collection API, you may come across two types of exceptions: - AuthException - ValidationException You are expected to adjust the request according to the information provided in the exception message. ### AuthException **AuthException** indicates an exception during API usage, indicating that the **x-auth-token** request header parameter does not match the token provided in the Insider One InOne panel. #### Sample Response ```json {  "status": "AuthException",  "code": 403,  "message": "Partner token authentication is unsuccessful.",  "validations": null } ``` ### Validation Exception **Validation Exception** indicates an exceptional scenario in which the event payload or header is not as expected. The Event Collection API requires the **x-partner-config-key** parameter in the request header, and it must match your partner ID. Event-related validation details for each event are provided on the relevant event page. Below, you can see these validations along with explanations: - **required**: Field is mandatory and must be provided. - **required unless no result**: Required when results exist, optional when there are no results. - **date time**: Must be in **RFC 3339 / ISO 8601** format. - **Example:** 2023-09-27T14:40:35.967+03:00 - **past date**: Date must not indicate a future time. - **url**: The field value must be a URL string format. - **one of**: The field can have only one of the indicated values. - **min**: The field value must be greater than or equal to the given threshold. - **max**: The field value must be lower than or equal to the given threshold. - **excludes space:** Must not contain space characters. - **non_blank_string:** Must not be a blank string. #### Sample Response ```json {  "status": "ValidationException",  "code": 400,  "message": "Validation Error Occurred",  "validations": [    "Event type is required"  ] } ``` ## Limitations - All functions must be executed with a simple **HTTPS POST** request. - Only **new data** can be sent via this API. No data can be retrieved. - **x-partner-config-key** must be sent in the request header. - Parameters not defined in the specification will not be processed (ignored). - If any required field is missing, the event will not be recorded. ## Suggested Next After integrating event collection, see [Eureka Search Analytics](/docs/eureka-search-analytics) to review engagement funnel metrics and keyword-based insights in the analytics dashboard. ## Related - [Event Collection API: Search Event](/event-collection-search-event.md) - [Event Collection API: Product Click Event](/event-collection-product-click-event.md) - [Event Collection API: Add to Cart Event](/event-collection-add-to-cart-event.md) - [Event Collection API: Purchase Event](/eureka-purchase-event.md) - [Event Collection API: Common Payload Properties](/event-collection-common-payload-properties.md) - [API Authentication Tokens](/api-authentication-tokens.md) - [API Status and Error Codes](/api-status-and-error-codes.md) - [Insider One APIs in Postman](/insider-apis-in-postman.md)