How to create the email, segment and campaign via the API

Hi Guys,

I’ve been using Mautic vs 3 for a fair while now and I have been creating the emails and segments by the API for sometime. However creating the Campaign I want via the API seems very difficult mainly because when the campaign is sent via the api the event id’s are not created until the campaign is sent and then I think you would need a second call to the API to collect the event ID’s and send it all back in again to build the links between campaign events. Not very simple! But it also occurs to me I may be missing a simpler solution.

What if the campaign is used as a Master Campaign and it is just the emails and segments that are swapped in and out of this Master Campaign.

Is that the way round it is supposed to be used.

Anyone have any ideas please?

Thank you

Paul