Skip to content
AchaduDevelopers
Operational APIGo to website
Dashboard
Developers/API/journey_create
Journeys

Create journey

Creates initially safe visual automation.

POST/journeysjourneys:write

Request

namestring · bodyJourney name.mandatory
descriptionstring · bodyObjective of the journey.optional
triggerstring · bodyInitial trigger.mandatory
blocksarray · bodyFlow blocks.optional
channelsarray · bodyAllowed channels.optional
segment_idstring · bodyEligible segment.optional
activeboolean · bodyActivate the journey.optional

Example

curl
curl -X POST 'https://achadu.com/api/v1/journeys' \
+  -H 'Authorization: Bearer ach_live_...' \
+  -H 'Accept: application/json' \
+  -H 'Content-Type: application/json' \
+  --data '{
  "name": "My integration",
  "trigger": "string",
  "description": "string",
  "blocks": [],
  "channels": [
    "instagram"
  ]
}'

Answer

201Resource created
4xxError with code, message and request_id