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).
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Journey display name (e.g. "Enterprise Onboarding"). Max length: 180 |
description | string, nullable | No | Optional description of the journey's purpose and scope. Max length: 2000 |
segment_id | integer, nullable | No | ID of the customer segment that qualifies profiles for this journey. Omit for manually curated or all-customer journeys. |
status | string | No | Journey lifecycle status. One of: |
trigger_rules_json | string, nullable | No | JSON array of trigger rule objects defining when customers enter this journey (e.g. on profile creation, health score drop, etc.). |
export_targets_json | string, nullable | No | 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\"}]"}'