v4
latestOpenAPI 3.0.02026-08-04109113304.5 KBList all Events
Get all Events for a Project. This endpoint lists all types of Events including Pageview Events which are stored as Pages. You can also get Goal objects from Optimizely Classic by setting the include_classic parameter to true.
Query parameters
Optional pagination argument that specifies the maximum number of objects to return per request
Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
The ID of the Project you would like to list all Events for
Whether or not to include classic Events in the list of Events. If this parameter is not provided it will default to false
Whether or not to skip Pageview Events in the list of Events. If this parameter is not provided it will default to false
Response
List of Events for the supplied Project ID
Example response
[
{
"config": {
"selector": ".menu-options"
},
"description": "Item added to cart",
"experiment_count": 3,
"key": "add_to_cart",
"name": "Add to Cart",
"page_id": 5000,
"project_id": 1000
}
]