Skip to content

Create customer journey

POST/customer360/journeys

Creates a new customer journey tied to a segment and entry trigger rules. Journeys start in 'draft' status. Call the activate endpoint when ready to begin enrolling customers. Export targets define the channels and templates used to communicate with customers during the journey.

Request

Request body

Content type application/json (required).

FieldTypeRequiredDescription
namestringYes

Journey display name (e.g. "Enterprise Onboarding").

Max length: 180

descriptionstring, nullableNo

Optional description of the journey's purpose and scope.

Max length: 2000

segment_idinteger, nullableNo

ID of the customer segment that qualifies profiles for this journey. Omit for manually curated or all-customer journeys.

statusstringNo

Journey lifecycle status.

One of: "draft", "active", "archived" · Default: "draft"

trigger_rules_jsonstring, nullableNo

JSON array of trigger rule objects defining when customers enter this journey (e.g. on profile creation, health score drop, etc.).

export_targets_jsonstring, nullableNo

JSON array of export target objects defining the channels and templates used to communicate during the journey (e.g. email, SMS).

Example

{
  "name": "Enterprise Onboarding",
  "description": "30-day onboarding journey for enterprise accounts.",
  "segment_id": 7,
  "status": "draft",
  "trigger_rules_json": "[{\"event\":\"profile.created\",\"condition\":{\"tier\":\"enterprise\"}}]",
  "export_targets_json": "[{\"channel\":\"email\",\"template\":\"onboarding_welcome\"},{\"channel\":\"email\",\"template\":\"onboarding_day7\"}]"
}

Responses

302 Redirect to journeys list after creation

422 Validation error

Example request

curl -X POST "https://{tenant}.faciotech.net/api/v1/customer360/journeys" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name": "Enterprise Onboarding", "description": "30-day onboarding journey for enterprise accounts.", "segment_id": 7, "status": "draft", "trigger_rules_json": "[{\"event\":\"profile.created\",\"condition\":{\"tier\":\"enterprise\"}}]", "export_targets_json": "[{\"channel\":\"email\",\"template\":\"onboarding_welcome\"},{\"channel\":\"email\",\"template\":\"onboarding_day7\"}]"}'
Loading