Plan Events API Code Samples

Selection of code samples that demonstrate the use of the Plan Events API. Copy and edit these code samples to suit your needs.

When using the code samples, remember to replace:

  • {vanity_name} with your tenant name
  • {api_key} with your API key
  • {security_token} with a valid security token

These code samples may not include all available parameters and request body fields for each endpoint. For the endpoint's full request schema, see "Plan Events" in API Reference.

Retrieve planning events

Use this sample request to retrieve planning events with the following attributes:

  • Event type: memberPromoted, autoPromotion, and bulkPromotionDemotionEvent.
  • Limit: 10
  • Created on or after: 2025-04-18
Copy
Retrieve all planning events with the selected attributes for plan 26096e86-4f8b-403e-9f05-aad2da09c7c1
curl --location --request GET 'https://{vanity_name}.api.visier.io/v1/planning/data/events?planId=26096e86-4f8b-403e-9f05-aad2da09c7c1&fromDate=1745000000000&eventTypes=memberPromoted&eventTypes=autoPromotion&eventTypes=bulkPromotionDemotionEvent&limit=10&start=0' \
-H 'apikey: {api_key}' \
-H 'Cookie: VisierASIDToken={security_token}'

The response returns a list of matching event summaries and the limit used for the request.

Retrieve a planning event

Use this sample request to retrieve the full details of a single memberPromoted event, including the promoted row's member path.

Copy
Retrieve planning event 0181d69b-3c74-4825-ba3b-b9c3c382eeac
curl --location --request GET 'https://{vanity_name}.api.visier.io/v1/planning/data/events/0181d69b-3c74-4825-ba3b-b9c3c382eeac' \
-H 'apikey: {api_key}' \
-H 'Cookie: VisierASIDToken={security_token}'

The response returns the event's details, along with the full member path of the promoted row across every plan segment.