--- title: "Engagement Custom Event API" slug: "engagement-custom-event-api" updated: 2026-11-23T12:30:19Z published: 2026-11-23T12:30:19Z canonical: "support.gainsight.com/engagement-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. # Engagement Custom Event API ## Overview Gainsight PX Engagement Custom Event API allows you to return a list of custom events that are specified as triggers in the audience rules for active engagements. Custom events include the following: - Events referenced directly in the audience rules - Events referenced indirectly via a mapped feature By using this API, the custom events sent to Gainsight PX can be limited to those that are associated with active engagements. ## API Endpoint ```plaintext GET https://esp.aptrinsic.com/rte/v1/engagement/rules?p={productId}&t=CUSTOM_EVENTS ``` Example: ```plaintext https://esp.aptrinsic.com/rte/v1/engagement/rules?p=AP-XXXXXXXXXXXX-2&t=CUSTOM_EVENTS ``` ## Syntax The syntax of the API is: ```plaintext {  "customEvents": [    {      "name": "", // custom event name      "properties": [] // Array of event property names    }  ] } ``` Sample Output: ```plaintext {  "customEvents": [    {      "name": "Test custom event",      "properties": [        "date",        "boolean"      ]    },    {      "name": "Chart Export",      "properties": [        "Destination",        "ChartType"      ]    },    {      "name": "NUM",      "properties": [        "num"      ]    },    {      "name": "gil4",      "properties": [        "myStr",        "myBool"      ]    },    {      "name": "testreg1",      "properties": []    },    {      "name": "ChargedBattery",      "properties": [        "size"      ]    }  ] } ```