Create Interaction (Journey) - Simple Journey

POST https://{{et_subdomain}}.rest.marketingcloudapis.com/interaction/v1/interactions

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/postCreateInteraction.htm

Creates or saves a journey. To create a new journey provide the request body in the appropriate Journey Specification. Please read the Journey Spec page to understand which properties are required to create a journey via the API. The id, key, createdDate, modifiedDate, status and definitionId are assigned by Journey Builder and are never to be passed in as parameters for creating a journey.

Request Body

{"key"=>"postman-demo", "name"=>"Postman Demo", "description"=>"Api created Journey", "entryMode"=>"MultipleEntries", "defaults"=>{"email"=>["{{Event.APIEvent-0dbe46de-74f9-a309-7778-298c0a565f93.\"Email\"}}"]}, "workflowApiVersion"=>1, "triggers"=>[{"key"=>"TRIGGER", "name"=>"api-event", "description"=>"", "type"=>"APIEvent", "configurationArguments"=>{"criteria"=>""}, "metaData"=>{"eventDefinitionId"=>"e35aa03b-4a75-47e5-a855-92fa07dce953", "eventDefinitionKey"=>"APIEvent-0dbe46de-74f9-a309-7778-298c0a565f93"}}], "activities"=>[{"key"=>"postman-email-key-1", "name"=>"Welcome Email", "description"=>"", "type"=>"EMAILV2", "outcomes"=>[{"key"=>"sent-email-now-wait", "next"=>"welcome-email-then-wait"}], "configurationArguments"=>{"applicationExtensionKey"=>"jb-email-activity", "triggeredSend"=>{"emailId"=>182582, "emailSubject"=>"Welcome to Makana", "name"=>"Makana Welcome Email", "isSalesforceTracking"=>true, "isMultipart"=>true, "isSendLogging"=>true, "suppressTracking"=>false, "sendClassificationId"=>"8da936da-9a40-e711-af11-78e3b50b7f0c", "isTrackingClicks"=>true}}, "metaData"=>{"isConfigured"=>true}}, {"key"=>"welcome-email-then-wait", "name"=>"1 minute", "type"=>"WAIT", "configurationArguments"=>{"waitDuration"=>1, "waitUnit"=>"MINUTES"}, "metaData"=>{"isConfigured"=>true, "waitType"=>"duration"}}]}

RESPONSES

status: OK

{"id":"4dcf372f-231d-498d-a851-122cf09a3eb2","key":"postman-demo","name":"Postman Demo","lastPublishedDate":"0001-01-01T00:00:00","description":"Api created Journey","version":1,"workflowApiVersion":1,"createdDate":"2019-07-23T12:50:58.627","modifiedDate":"2019-07-23T12:50:58.627","activities":[{"id":"a1434469-7966-447b-ac0a-5803b40a1d27","key":"postman-email-key-1","name":"Welcome Email","description":"","type":"EMAILV2","outcomes":[{"key":"sent-email-now-wait","next":"welcome-email-then-wait","arguments":{},"metaData":{}}],"arguments":{},"configurationArguments":{"applicationExtensionKey":"jb-email-activity","triggeredSend":{"emailId":182582,"emailSubject":"Welcome to Makana","name":"Makana Welcome Email","isSalesforceTracking":true,"isMultipart":true,"isSendLogging":true,"suppressTracking":false,"sendClassificationId":"8da936da-9a40-e711-af11-78e3b50b7f0c","isTrackingClicks":true}},"metaData":{"isConfigured":true}},{"id":"67ada0c2-be58-4193-8dc4-46765df2af49","key":"welcome-email-then-wait","name":"1 minute","type":"WAIT","outcomes":[{"arguments":{},"metaData":{}}],"arguments":{},"configurationArguments":{"waitDuration":1,"waitUnit":"MINUTES"},"metaData":{"isConfigured":true,"waitType":"duration"}}],"triggers":[{"id":"002426d5-bb38-49b4-83ce-adcbd4927168","key":"TRIGGER","name":"api-event","description":"","type":"APIEvent","outcomes":[],"arguments":{},"configurationArguments":{"criteria":""},"metaData":{"eventDefinitionId":"e35aa03b-4a75-47e5-a855-92fa07dce953","eventDefinitionKey":"APIEvent-0dbe46de-74f9-a309-7778-298c0a565f93"}}],"goals":[],"exits":[],"entryMode":"MultipleEntries","defaults":{"email":["{{Event.APIEvent-0dbe46de-74f9-a309-7778-298c0a565f93.\"Email\"}}"],"properties":{}},"metaData":{},"executionMode":"Production","categoryId":731761,"status":"Draft","definitionId":"4dcf372f-231d-498d-a851-122cf09a3eb2"}