--- title: "Use Custom Event API" slug: "use-custom-event-api" updated: 2026-11-23T12:30:28Z published: 2026-11-23T12:30:28Z canonical: "support.gainsight.com/use-custom-event-api" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Use Custom Event API This article explains how to use the Custom Event API. ## Overview Gainsight PX Web SDK supports the ability to send custom events via API. Trigger an API call to create a custom event using the name for the custom event as well as properties/values for that event. The following data types are supported: - string - number - boolean - datetime ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date and time) - nested objects that are saved as a string Here is an example call: ```plaintext // Tracking examples with event properties aptrinsic('track', 'Video', {"name":"Welcome Video","Category":"Onboarding","Length" :5000 ,"Launched" : true , "Launched date":"2018-03-08T18:11:00Z" }); // Track search aptrinsic('track', 'Search', {"terms":"profile setting how-to","results":10,"Category":"Admin"}); // ``` Also, in the example above the custom event includes property/values for the custom event (name, Audience size, Launched, etc), your custom event would, of course, have properties specific to your custom event. **Note**: Custom Event properties are case insensitive. For example, the event property of name can be sent as "*Name"* or "*name"*. ## Custom Event Limits For information on the custom event limits, refer to the [*Gainsight PX Package Overview*](/v1/docs/gainsight-px-package-overview-and-system-limits#custom-events) article.