Each message sent through Svix has an associated event type. Event types are identifiers denoting the type of the message being sent.
Event types are just string, and can be anything. For example:
Event types are primarily used to decide which events are sent to which endpoint. By default, all messages are sent to all endpoints. Though when adding or editing endpoints, users can choose to only subscribe to some of the event types for this particular endpoint.
It's recommended to add the event types you are going to use ahead of time. You can do it using the scripts in the bulk creating event types section.
This is how choosing event types look like in the pre-built application portal:
You can add, edit, and delete event types in the dashboard or through the API below.
The easiest way to bulk-create event types is by just writing a simple script to load a pipe delimited
CSV file or a
JSON file with the event types and make the API requests.
Here is an example
CSV file (without headers) of events:
Here are some example scripts for processing the above file: