I'm creating a journey through the journey REST API. I want to add a data extension to that journey. To add a specific data extension, as far as I can see, I need the data extensions eventDefinitionKey and Id and I wonder how I get those, I cant seem to find anything in the docs. Does anyone have any experience with this?
You need to provide your own event definition key, when creating an event definition with the
/eventDefinitions POST request. This is similar to populating the EVENT DEFINITION KEY when creating the entry source event in the UI:
Do keep in mind, that it needs to be unique.
Data extension ID is the external key, which is a GUID by default, but can be changed into something more readable (however only in Email Studio and not in Contact Builder):