Reporting your first event
Learn how to report your first private event to the WLL API in staging mode using your event type secret.
Overview
In this tutorial, you’ll report your first private event to the White Label Loyalty (WLL) API. You’ll practice authenticating with your event type secret and sending an event payload in staging (Test) mode.
By the end, you’ll be able to:
Report a private event to the
/eventsendpoint.Verify that the API accepted your event.
Prerequisites
Before starting, make sure you have:
Access to the Loyalty Console with your tenant and your tenant API key.
A user account created in the Test mode of your console (the event reported in this tutorial will be linked to this user).
A tool to make API requests (e.g. curl, Postman, or your preferred programming language).
Instructions
Create a private event type
Follow the instructions in Creating event types to create a private event type called VISITED_VENUE using the Loyalty Console.
Once the event type is created, keep the event secret handy for the next steps.

Recap
You authenticated using an event type secret.
You reported a private event to the WLL API.
You confirmed the event was accepted in staging mode for the intended user.
Assessment
Try the following:
Change the
subjectfrom userIDtoaccountNumberorauthIdentifierand send another event.Add a custom property (e.g.,
"venueId": "12345") to the event payload.What response do you get if you use an invalid secret?
Next steps
See Reporting events for deeper explanation
See the API reference for reporting events for all available fields
Continue to the next tutorial, Checking audience membership
Last updated
Was this helpful?