Journey API
- Base URL:
https://journey-config.sls.epilot.io - Full API Docs: https://docs.epilot.io/api/journey
Usageโ
import { epilot } from '@epilot/sdk'
epilot.authorize(() => '<token>')
const { data } = await epilot.journey.getJourneysByOrgId(...)
Tree-shakeable importโ
import { getClient, authorize } from '@epilot/sdk/journey'
const journeyClient = getClient()
authorize(journeyClient, () => '<token>')
const { data } = await journeyClient.getJourneysByOrgId(...)
Operationsโ
Journeys
getJourneysByOrgIdgetJourneyremoveJourneycreateJourneyRevisionlistJourneyRevisionsgetJourneyRevisionupdateJourneyRevisionMetadatapublishJourneyRevisiongetJourneyPublishStategetJourneyEnvironmentresolveJourneyExternalValuesgetJourneyEnvironmentVariablesgetJourneyTemplateVariablesgetJourneyProductscreateJourneyupdateJourneypatchUpdateJourneysearchJourneysgenerateDocumentgetSettingsForJourneygetButtonOptions
Journeys V2
Schemas
EnvironmentMapEntryEnvironmentMapEnvironmentLinkEnvironmentLinkListEnvironmentScalarListJourneyEnvironmentResponseJourneyExternalValuesRequestJourneyExternalValuesResponseExternalValueErrorJourneyTemplatingContextJourneyTemplateVariablesResponseJourneyTemplatingJourneyTemplatingLinkJourneyTemplatingTranslatableJourneyEnvironmentVariablesResponseGetJourneysResponseJourneyResponseJourneyProductsResponsePatchUpdateJourneyRequestJourneyCreationRequestJourneyCreationRequestV2SearchJourneysQueryRequestSearchJourneysResponseJourneyJourneyServedRevisionJourneyActivationGuaranteeJourneyFeatureFlagsJourneyAuditInfoJourneyRevisionRequestPublishRevisionRequestRevisionMetadataUpdateJourneyRevisionSummaryJourneyRevisionListJourneyRevisionJourneyRevisionConflictJourneyPublishStatePublishResultJourneyValidationResponseJourneyValidationErrorS3ReferenceTemplateSettingsGenerateDocumentResponseGenerateDocumentRequestGetSettingsForJourneyButtonOptionValidationRuleRefRuleRef
getJourneysByOrgIdโ
Get all journeys by organization id
GET /v1/journey/organization/{id}
const { data } = await client.getJourneysByOrgId({
id: '123e4567-e89b-12d3-a456-426614174000',
hydrate: 'example',
})
Response
{}
getJourneyโ
Get journey by id. Private journeys requires valid private token to be passed
GET /v1/journey/configuration/{id}
const { data } = await client.getJourney({
id: '123e4567-e89b-12d3-a456-426614174000',
version: 1,
revision_id: 'example',
source: 'example',
orgId: 'example',
})
Response
{
"journeyId": "string",
"organizationId": "string",
"brandId": "string",
"name": "string",
"steps": [
{
"showStepName": true,
"title": "string",
"subTitle": "string",
"showStepSubtitle": true,
"showStepper": true,
"showStepperLabels": true,
"stepperType": "numbers",
"hideNextButton": true,
"guestVisible": true,
"name": "string",
"stepId": "string",
"schema": {},
"uischema": {},
"maxWidth": "small"
}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{
"type": "inject",
"sourceType": "journey",
"source": "string",
"target": "string"
}
],
"logics": [
{
"autoGeneratedId": "string",
"conditions": ["string"],
"actions": ["string"]
}
],
"logicsV4": {},
"contextSchema": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"paramKey": "string",
"isRequired": true,
"shouldLoadEntity": true,
"description": "string"
}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {
"mode": "full-screen",
"lang": "de",
"width": "string",
"topBar": true,
"scrollToTop": true,
"button": {}
},
"safeModeAutomation": true,
"canary": true,
"designId": "string",
"templateId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"targetedCustomer": "string",
"description": "string",
"organizationSettings": {},
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"useAustrianLabels": true,
"enableDarkMode": true,
"accessMode": "PUBLIC",
"authGate": {
"stepId": "string"
},
"isPublished": true,
"status": "string",
"isActive": true,
"savingProgress": {
"mode": "auto",
"supportedRevision": 0
},
"thirdPartyCookies": true,
"betaFeatures": {
"modernProducts": true,
"modernLauncher": true
},
"offline": {
"enabled": true,
"packTtlHours": 24
}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {
"field1": "rule101",
"field2": ["rule102", "rule103"]
}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
"createdBy": "string",
"updatedBy": "string",
"__lastModifiedAt": "string",
"createdAt": "string",
"lastModifiedAt": "string",
"deletedAt": "string",
"version": 0,
"revisions": 0,
"featureFlags": {},
"templating": {
"customVariables": [
{}
],
"env": {}
},
"revision_id": "42"
}
removeJourneyโ
Remove journey by id
DELETE /v1/journey/configuration/{id}
const { data } = await client.removeJourney({
id: '123e4567-e89b-12d3-a456-426614174000',
})
createJourneyRevisionโ
Creates a revision: an immutable copy of the complete journey configuration, identified by revision_id. Nothing customers receive changes; the revision only becomes the published version when it is
POST /v1/journey/configuration/{id}/revisions
const { data } = await client.createJourneyRevision(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
journeyId: 'string',
organizationId: 'string',
brandId: 'string',
name: 'string',
steps: [
{
showStepName: true,
title: 'string',
subTitle: 'string',
showStepSubtitle: true,
showStepper: true,
showStepperLabels: true,
stepperType: 'numbers',
hideNextButton: true,
guestVisible: true,
name: 'string',
stepId: 'string',
schema: {},
uischema: {},
maxWidth: 'small'
}
],
design: {
logoUrl: 'string',
theme: {},
designTokens: {}
},
rules: [
{
type: 'inject',
sourceType: 'journey',
source: 'string',
target: 'string'
}
],
logics: [
{
autoGeneratedId: 'string',
conditions: ['string'],
actions: ['string']
}
],
logicsV4: {},
contextSchema: [
{
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
type: 'string',
paramKey: 'string',
isRequired: true,
shouldLoadEntity: true,
description: 'string'
}
],
journey_type: 'Sales template (Premium)',
protected: true,
protectedEditable: ['string'],
settings: {
embedOptions: {
mode: 'full-screen',
lang: 'de',
width: 'string',
topBar: true,
scrollToTop: true,
button: { /* ... */ }
},
safeModeAutomation: true,
canary: true,
designId: 'string',
templateId: 'string',
entityId: 'string',
mappingsAutomationId: 'string',
newMappings: true,
targetedCustomer: 'string',
description: 'string',
organizationSettings: {},
publicToken: 'string',
runtimeEntities: ['ORDER'],
filePurposes: ['string'],
entityTags: ['string'],
addressSuggestionsFileUrl: 'string',
addressSuggestionsFileId: 'string',
addressSuggestionsCountryCode: 'string',
addressSuggestionsEnableAutoComplete: true,
addressSuggestionsSource: ['string'],
addressSuggestionsEnableFreeText: true,
useNewDesign: true,
useAustrianLabels: true,
enableDarkMode: true,
accessMode: 'PUBLIC',
authGate: {
stepId: 'string'
},
isPublished: true,
status: 'string',
isActive: true,
savingProgress: {
mode: 'auto',
supportedRevision: 0
},
thirdPartyCookies: true,
betaFeatures: {
modernProducts: true,
modernLauncher: true
},
offline: {
enabled: true,
packTtlHours: 24
}
},
validationRules: {
block1: 'rule123',
block2: ['rule456', 'rule789'],
block3: {
field1: 'rule101',
field2: ['rule102', 'rule103']
}
},
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
createdBy: 'string',
updatedBy: 'string',
__lastModifiedAt: 'string',
parent_revision_id: '41',
based_on_revision_id: '37',
mapping_config_version: 12,
revision_name: 'Changes to Steps and Logic'
},
)
Response
{
"revision_id": "42",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "Summer campaign",
"description": "string",
"published_at": "1970-01-01T00:00:00.000Z",
"is_published": true,
"metadata_updated_at": "1970-01-01T00:00:00.000Z",
"metadata_updated_by": "string",
"mapping_config_version": 12
}
listJourneyRevisionsโ
Lists the journey's revision history, newest first. Metadata only, no configuration payload. is_published says whether a revision is the published version right now, which is a different question fr
GET /v1/journey/configuration/{id}/revisions
const { data } = await client.listJourneyRevisions({
id: '123e4567-e89b-12d3-a456-426614174000',
limit: 1,
cursor: 'example',
})
Response
{
"results": [
{
"revision_id": "42",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "Summer campaign",
"description": "string",
"published_at": "1970-01-01T00:00:00.000Z",
"is_published": true,
"metadata_updated_at": "1970-01-01T00:00:00.000Z",
"metadata_updated_by": "string",
"mapping_config_version": 12
}
],
"next_cursor": "string"
}
getJourneyRevisionโ
Returns one revision with its full configuration, in the shape the builder holds a journey in, so it can be loaded straight into the editor as unsaved changes. Reading a revision changes nothing; a cl
GET /v1/journey/configuration/{id}/revisions/{revision_id}
const { data } = await client.getJourneyRevision({
id: '123e4567-e89b-12d3-a456-426614174000',
revision_id: 'example',
})
Response
{
"revision_id": "42",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "Summer campaign",
"description": "string",
"published_at": "1970-01-01T00:00:00.000Z",
"is_published": true,
"metadata_updated_at": "1970-01-01T00:00:00.000Z",
"metadata_updated_by": "string",
"mapping_config_version": 12,
"configuration": {
"journeyId": "string",
"organizationId": "string",
"brandId": "string",
"name": "string",
"steps": [
{}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{}
],
"logics": [
{}
],
"logicsV4": {},
"contextSchema": [
{}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {},
"safeModeAutomation": true,
"canary": true,
"designId": "string",
"templateId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"targetedCustomer": "string",
"description": "string",
"organizationSettings": {},
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"useAustrianLabels": true,
"enableDarkMode": true,
"accessMode": "PUBLIC",
"authGate": {},
"isPublished": true,
"status": "string",
"isActive": true,
"savingProgress": {},
"thirdPartyCookies": true,
"betaFeatures": {},
"offline": {}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
"createdBy": "string",
"updatedBy": "string",
"__lastModifiedAt": "string",
"createdAt": "string",
"lastModifiedAt": "string",
"deletedAt": "string",
"version": 0,
"revisions": 0,
"featureFlags": {},
"templating": {
"customVariables": [],
"env": {}
}
}
}
updateJourneyRevisionMetadataโ
Corrects the name and description of a revision that has been published, e.g. to fix a typo or add context after the fact. Metadata only: the revision's configuration, the journey record customers rec
PATCH /v1/journey/configuration/{id}/revisions/{revision_id}
const { data } = await client.updateJourneyRevisionMetadata(
{
id: '123e4567-e89b-12d3-a456-426614174000',
revision_id: 'example',
},
{
name: 'Summer campaign',
description: 'string'
},
)
Response
{
"revision_id": "42",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "Summer campaign",
"description": "string",
"published_at": "1970-01-01T00:00:00.000Z",
"is_published": true,
"metadata_updated_at": "1970-01-01T00:00:00.000Z",
"metadata_updated_by": "string",
"mapping_config_version": 12
}
publishJourneyRevisionโ
Makes one revision the published version, the one customers receive, in a single transaction: the revision's configuration is copied onto the journey record, its datasource set onto the published data
POST /v1/journey/configuration/{id}/publish
const { data } = await client.publishJourneyRevision(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
revision_id: '42',
name: 'Summer campaign',
description: 'string'
},
)
Response
{
"revision_id": "42",
"name": "Summer campaign",
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"post_publish_warnings": ["string"]
}
getJourneyPublishStateโ
Answers which revision is the published version without paging through the history. A journey that has not adopted versioning yet returns 200 with published_revision_id: null, not 404.
GET /v1/journey/configuration/{id}/publish-state
const { data } = await client.getJourneyPublishState({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"journey_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"published_revision_id": "42",
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string"
}
getJourneyEnvironmentโ
Resolve the environment variables referenced by this journey: the environment-backed datasources declared in its steps, whether they source a block's options or supply the value an attached validation
GET /v1/journey/configuration/{id}/environment
const { data } = await client.getJourneyEnvironment({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"items": [
{
"datasourceId": "string",
"type": "Text",
"value": "string"
}
],
"errors": [
{
"datasourceId": "string",
"code": "not_found"
}
],
"variables": [
{
"key": "string",
"type": "Text",
"value": "string"
}
],
"variableErrors": [
{
"key": "string",
"code": "not_found"
}
]
}
resolveJourneyExternalValuesโ
Resolve the External Values hooks this journey's validation rules compare against.
POST /v1/journey/configuration/{id}/external-values
const { data } = await client.resolveJourneyExternalValues(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
items: [
{
datasourceId: 'string',
context: {}
}
]
},
)
Response
{
"items": [
{
"datasourceId": "string",
"values": {},
"errors": [
{
"result_id": "string",
"code": "string",
"message": "string"
}
],
"policy": {
"on_unavailable": "skip"
}
}
],
"errors": [
{
"datasourceId": "string",
"code": "unknown_datasource"
}
]
}
getJourneyEnvironmentVariablesโ
List the organization's client-safe environment variables a journey may use: Map and List<Link> as an options source; Text, Number, Boolean and lists of them in logic conditions. Only variables that c
GET /v1/journey/environment-variables
const { data } = await client.getJourneyEnvironmentVariables()
Response
{
"items": [
{
"key": "string",
"type": "Text",
"value": "string",
"description": "string"
}
]
}
getJourneyTemplateVariablesโ
List what a journey template can reference beyond the entity's own attributes: the organization's Custom Variables and its scalar environment variables (String, Text, Number, Boolean). Names o
GET /v1/journey/template-variables
const { data } = await client.getJourneyTemplateVariables()
Response
{
"customVariables": [
{
"key": "string",
"name": "string"
}
],
"environment": [
{
"key": "string",
"type": "String",
"description": "string",
"group": "string"
}
]
}
getJourneyProductsโ
Get products available in the journey by id. requires public journey token to be passed.
GET /v1/journey/products/{id}
const { data } = await client.getJourneyProducts({
id: '123e4567-e89b-12d3-a456-426614174000',
source: 'example',
postal_code: 'example',
city: 'example',
street: 'example',
street_number: 'example',
})
Response
[
{
"type": "string",
"_schema": "string",
"_title": "string",
"name": "string",
"_id": "string",
"_org": "string",
"code": "string",
"description": "string",
"feature": [
{}
],
"product_images": [
{}
],
"legal_footnote": "string",
"product_downloads": [
{}
],
"price": {}
}
]
createJourneyโ
Create a Journey
POST /v1/journey/configuration
const { data } = await client.createJourney(
{
skipAutomation: 'example',
},
{
journeyId: 'string',
organizationId: 'string',
brandId: 'string',
name: 'string',
steps: [
{
showStepName: true,
title: 'string',
subTitle: 'string',
showStepSubtitle: true,
showStepper: true,
showStepperLabels: true,
stepperType: 'numbers',
hideNextButton: true,
guestVisible: true,
name: 'string',
stepId: 'string',
schema: {},
uischema: {},
maxWidth: 'small'
}
],
design: {
logoUrl: 'string',
theme: {},
designTokens: {}
},
rules: [
{
type: 'inject',
sourceType: 'journey',
source: 'string',
target: 'string'
}
],
logics: [
{
autoGeneratedId: 'string',
conditions: ['string'],
actions: ['string']
}
],
logicsV4: {},
contextSchema: [
{
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
type: 'string',
paramKey: 'string',
isRequired: true,
shouldLoadEntity: true,
description: 'string'
}
],
journey_type: 'Sales template (Premium)',
protected: true,
protectedEditable: ['string'],
settings: {
embedOptions: {
mode: 'full-screen',
lang: 'de',
width: 'string',
topBar: true,
scrollToTop: true,
button: { /* ... */ }
},
safeModeAutomation: true,
canary: true,
designId: 'string',
templateId: 'string',
entityId: 'string',
mappingsAutomationId: 'string',
newMappings: true,
targetedCustomer: 'string',
description: 'string',
organizationSettings: {},
publicToken: 'string',
runtimeEntities: ['ORDER'],
filePurposes: ['string'],
entityTags: ['string'],
addressSuggestionsFileUrl: 'string',
addressSuggestionsFileId: 'string',
addressSuggestionsCountryCode: 'string',
addressSuggestionsEnableAutoComplete: true,
addressSuggestionsSource: ['string'],
addressSuggestionsEnableFreeText: true,
useNewDesign: true,
useAustrianLabels: true,
enableDarkMode: true,
accessMode: 'PUBLIC',
authGate: {
stepId: 'string'
},
isPublished: true,
status: 'string',
isActive: true,
savingProgress: {
mode: 'auto',
supportedRevision: 0
},
thirdPartyCookies: true,
betaFeatures: {
modernProducts: true,
modernLauncher: true
},
offline: {
enabled: true,
packTtlHours: 24
}
},
validationRules: {
block1: 'rule123',
block2: ['rule456', 'rule789'],
block3: {
field1: 'rule101',
field2: ['rule102', 'rule103']
}
},
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
createdBy: 'string',
updatedBy: 'string',
__lastModifiedAt: 'string'
},
)
Response
{
"journeyId": "string",
"organizationId": "string",
"brandId": "string",
"name": "string",
"steps": [
{
"showStepName": true,
"title": "string",
"subTitle": "string",
"showStepSubtitle": true,
"showStepper": true,
"showStepperLabels": true,
"stepperType": "numbers",
"hideNextButton": true,
"guestVisible": true,
"name": "string",
"stepId": "string",
"schema": {},
"uischema": {},
"maxWidth": "small"
}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{
"type": "inject",
"sourceType": "journey",
"source": "string",
"target": "string"
}
],
"logics": [
{
"autoGeneratedId": "string",
"conditions": ["string"],
"actions": ["string"]
}
],
"logicsV4": {},
"contextSchema": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"paramKey": "string",
"isRequired": true,
"shouldLoadEntity": true,
"description": "string"
}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {
"mode": "full-screen",
"lang": "de",
"width": "string",
"topBar": true,
"scrollToTop": true,
"button": {}
},
"safeModeAutomation": true,
"canary": true,
"designId": "string",
"templateId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"targetedCustomer": "string",
"description": "string",
"organizationSettings": {},
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"useAustrianLabels": true,
"enableDarkMode": true,
"accessMode": "PUBLIC",
"authGate": {
"stepId": "string"
},
"isPublished": true,
"status": "string",
"isActive": true,
"savingProgress": {
"mode": "auto",
"supportedRevision": 0
},
"thirdPartyCookies": true,
"betaFeatures": {
"modernProducts": true,
"modernLauncher": true
},
"offline": {
"enabled": true,
"packTtlHours": 24
}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {
"field1": "rule101",
"field2": ["rule102", "rule103"]
}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
"createdBy": "string",
"updatedBy": "string",
"__lastModifiedAt": "string",
"createdAt": "string",
"lastModifiedAt": "string",
"deletedAt": "string",
"version": 0,
"revisions": 0,
"featureFlags": {},
"templating": {
"customVariables": [
{}
],
"env": {}
}
}
updateJourneyโ
Update a Journey
PUT /v1/journey/configuration
const { data } = await client.updateJourney(
null,
{
journeyId: 'string',
organizationId: 'string',
brandId: 'string',
name: 'string',
steps: [
{
showStepName: true,
title: 'string',
subTitle: 'string',
showStepSubtitle: true,
showStepper: true,
showStepperLabels: true,
stepperType: 'numbers',
hideNextButton: true,
guestVisible: true,
name: 'string',
stepId: 'string',
schema: {},
uischema: {},
maxWidth: 'small'
}
],
design: {
logoUrl: 'string',
theme: {},
designTokens: {}
},
rules: [
{
type: 'inject',
sourceType: 'journey',
source: 'string',
target: 'string'
}
],
logics: [
{
autoGeneratedId: 'string',
conditions: ['string'],
actions: ['string']
}
],
logicsV4: {},
contextSchema: [
{
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
type: 'string',
paramKey: 'string',
isRequired: true,
shouldLoadEntity: true,
description: 'string'
}
],
journey_type: 'Sales template (Premium)',
protected: true,
protectedEditable: ['string'],
settings: {
embedOptions: {
mode: 'full-screen',
lang: 'de',
width: 'string',
topBar: true,
scrollToTop: true,
button: { /* ... */ }
},
safeModeAutomation: true,
canary: true,
designId: 'string',
templateId: 'string',
entityId: 'string',
mappingsAutomationId: 'string',
newMappings: true,
targetedCustomer: 'string',
description: 'string',
organizationSettings: {},
publicToken: 'string',
runtimeEntities: ['ORDER'],
filePurposes: ['string'],
entityTags: ['string'],
addressSuggestionsFileUrl: 'string',
addressSuggestionsFileId: 'string',
addressSuggestionsCountryCode: 'string',
addressSuggestionsEnableAutoComplete: true,
addressSuggestionsSource: ['string'],
addressSuggestionsEnableFreeText: true,
useNewDesign: true,
useAustrianLabels: true,
enableDarkMode: true,
accessMode: 'PUBLIC',
authGate: {
stepId: 'string'
},
isPublished: true,
status: 'string',
isActive: true,
savingProgress: {
mode: 'auto',
supportedRevision: 0
},
thirdPartyCookies: true,
betaFeatures: {
modernProducts: true,
modernLauncher: true
},
offline: {
enabled: true,
packTtlHours: 24
}
},
validationRules: {
block1: 'rule123',
block2: ['rule456', 'rule789'],
block3: {
field1: 'rule101',
field2: ['rule102', 'rule103']
}
},
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
createdBy: 'string',
updatedBy: 'string',
__lastModifiedAt: 'string'
},
)
patchUpdateJourneyโ
Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
PATCH /v1/journey/configuration
const { data } = await client.patchUpdateJourney(
null,
{
journeyId: '509cdffe-424f-457a-95c2-9708c304ce77',
__lastModifiedAt: 'string'
},
)
Response
{
"createdJourney": {
"journeyId": "string",
"organizationId": "string",
"brandId": "string",
"name": "string",
"steps": [
{}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{}
],
"logics": [
{}
],
"logicsV4": {},
"contextSchema": [
{}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {},
"safeModeAutomation": true,
"canary": true,
"designId": "string",
"templateId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"targetedCustomer": "string",
"description": "string",
"organizationSettings": {},
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"useAustrianLabels": true,
"enableDarkMode": true,
"accessMode": "PUBLIC",
"authGate": {},
"isPublished": true,
"status": "string",
"isActive": true,
"savingProgress": {},
"thirdPartyCookies": true,
"betaFeatures": {},
"offline": {}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
"createdBy": "string",
"updatedBy": "string",
"__lastModifiedAt": "string",
"createdAt": "string",
"lastModifiedAt": "string",
"deletedAt": "string",
"version": 0,
"revisions": 0,
"featureFlags": {},
"templating": {
"customVariables": [],
"env": {}
}
}
}
searchJourneysโ
Search Journeys
POST /v1/journey/configuration/search
const { data } = await client.searchJourneys(
null,
{
q: '_tags:*Flex*',
from: 0,
size: 25,
sort: '_created_at:desc'
},
)
Response
{
"hits": 1,
"results": [
{
"_id": "e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8",
"_schema": "journey",
"_title": "Journey Entity Title",
"_org": "739224",
"_created_at": "2020-01-01T00:00:00.000Z",
"_updated_at": "2020-01-01T00:00:00.000Z",
"_tags": ["Flex"],
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
"journey_name": "Journey Name",
"journey_id": "de7df470-253e-11ed-9174-116b8a718c0a",
"journey_type": "Sales template",
"design": "Design EPILOT",
"created_by": [
{
"id": "12345"
}
],
"journey_version": "Flex"
}
]
}
generateDocumentโ
Builds document generated from a template with journey values."
POST /v1/journey/document:generate
const { data } = await client.generateDocument(
null,
{
file_id: '1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p',
context_data: {
additionalProperties: 'string'
},
context_entity_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
language: 'de'
},
)
Response
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"job_status": "STARTED",
"message": "string",
"pdf_output": {
"preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf",
"output_document": {
"s3ref": {
"bucket": "document-api-preview-prod",
"key": "preview/my-template.pdf"
}
}
},
"docx_output": {
"preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx",
"output_document": {
"s3ref": {
"bucket": "document-api-preview-prod",
"key": "preview/my-template.docx"
}
}
},
"variable_payload": {
"additionalProperties": "string"
},
"template_settings": {
"custom_margins": {
"top": 2.54,
"bottom": 2.54
},
"suggested_margins": {
"top": 2.54,
"bottom": 2.54
},
"display_margin_guidelines": true,
"enable_data_table_margin_autofix": false,
"template_with_datatable": false,
"enabled_template_settings_persistence": false,
"misconfigured_margins": false,
"file_entity_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
}
}
createJourneyV2โ
Create a Journey
POST /v2/journey/configuration
const { data } = await client.createJourneyV2(
{
skipAutomation: 'example',
},
{
journeyId: 'string',
brandId: 'string',
name: 'string',
steps: [
{
showStepName: true,
title: 'string',
subTitle: 'string',
showStepSubtitle: true,
showStepper: true,
showStepperLabels: true,
stepperType: 'numbers',
hideNextButton: true,
guestVisible: true,
name: 'string',
stepId: 'string',
schema: {},
uischema: {},
maxWidth: 'small'
}
],
design: {
logoUrl: 'string',
theme: {},
designTokens: {}
},
rules: [
{
type: 'inject',
sourceType: 'journey',
source: 'string',
target: 'string'
}
],
logics: [
{
autoGeneratedId: 'string',
conditions: ['string'],
actions: ['string']
}
],
logicsV4: {},
contextSchema: [
{
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
type: 'string',
paramKey: 'string',
isRequired: true,
shouldLoadEntity: true,
description: 'string'
}
],
journey_type: 'Sales template (Premium)',
protected: true,
protectedEditable: ['string'],
settings: {
embedOptions: {
mode: 'full-screen',
lang: 'de',
width: 'string',
topBar: true,
scrollToTop: true,
button: { /* ... */ }
},
safeModeAutomation: true,
designId: 'string',
entityId: 'string',
mappingsAutomationId: 'string',
newMappings: true,
templateId: 'string',
targetedCustomer: 'string',
description: 'string',
publicToken: 'string',
runtimeEntities: ['ORDER'],
filePurposes: ['string'],
entityTags: ['string'],
addressSuggestionsFileUrl: 'string',
addressSuggestionsFileId: 'string',
addressSuggestionsCountryCode: 'string',
addressSuggestionsEnableAutoComplete: true,
addressSuggestionsSource: ['string'],
addressSuggestionsEnableFreeText: true,
useNewDesign: true,
thirdPartyCookies: true,
accessMode: 'PUBLIC',
authGate: {
stepId: 'string'
},
enableDarkMode: true,
useAustrianLabels: true,
isActive: true,
savingProgress: {
mode: 'auto',
supportedRevision: 0
},
betaFeatures: {
modernProducts: true,
modernLauncher: true
},
offline: {
enabled: true,
packTtlHours: 24
}
},
validationRules: {
block1: 'rule123',
block2: ['rule456', 'rule789'],
block3: {
field1: 'rule101',
field2: ['rule102', 'rule103']
}
},
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
},
)
Response
{
"journeyId": "string",
"brandId": "string",
"name": "string",
"steps": [
{
"showStepName": true,
"title": "string",
"subTitle": "string",
"showStepSubtitle": true,
"showStepper": true,
"showStepperLabels": true,
"stepperType": "numbers",
"hideNextButton": true,
"guestVisible": true,
"name": "string",
"stepId": "string",
"schema": {},
"uischema": {},
"maxWidth": "small"
}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{
"type": "inject",
"sourceType": "journey",
"source": "string",
"target": "string"
}
],
"logics": [
{
"autoGeneratedId": "string",
"conditions": ["string"],
"actions": ["string"]
}
],
"logicsV4": {},
"contextSchema": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"paramKey": "string",
"isRequired": true,
"shouldLoadEntity": true,
"description": "string"
}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {
"mode": "full-screen",
"lang": "de",
"width": "string",
"topBar": true,
"scrollToTop": true,
"button": {}
},
"safeModeAutomation": true,
"designId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"templateId": "string",
"targetedCustomer": "string",
"description": "string",
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"thirdPartyCookies": true,
"accessMode": "PUBLIC",
"authGate": {
"stepId": "string"
},
"enableDarkMode": true,
"useAustrianLabels": true,
"isActive": true,
"savingProgress": {
"mode": "auto",
"supportedRevision": 0
},
"betaFeatures": {
"modernProducts": true,
"modernLauncher": true
},
"offline": {
"enabled": true,
"packTtlHours": 24
}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {
"field1": "rule101",
"field2": ["rule102", "rule103"]
}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}
updateJourneyV2โ
Update a Journey
PUT /v2/journey/configuration
const { data } = await client.updateJourneyV2(
null,
{
journeyId: 'string',
brandId: 'string',
name: 'string',
steps: [
{
showStepName: true,
title: 'string',
subTitle: 'string',
showStepSubtitle: true,
showStepper: true,
showStepperLabels: true,
stepperType: 'numbers',
hideNextButton: true,
guestVisible: true,
name: 'string',
stepId: 'string',
schema: {},
uischema: {},
maxWidth: 'small'
}
],
design: {
logoUrl: 'string',
theme: {},
designTokens: {}
},
rules: [
{
type: 'inject',
sourceType: 'journey',
source: 'string',
target: 'string'
}
],
logics: [
{
autoGeneratedId: 'string',
conditions: ['string'],
actions: ['string']
}
],
logicsV4: {},
contextSchema: [
{
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
type: 'string',
paramKey: 'string',
isRequired: true,
shouldLoadEntity: true,
description: 'string'
}
],
journey_type: 'Sales template (Premium)',
protected: true,
protectedEditable: ['string'],
settings: {
embedOptions: {
mode: 'full-screen',
lang: 'de',
width: 'string',
topBar: true,
scrollToTop: true,
button: { /* ... */ }
},
safeModeAutomation: true,
designId: 'string',
entityId: 'string',
mappingsAutomationId: 'string',
newMappings: true,
templateId: 'string',
targetedCustomer: 'string',
description: 'string',
publicToken: 'string',
runtimeEntities: ['ORDER'],
filePurposes: ['string'],
entityTags: ['string'],
addressSuggestionsFileUrl: 'string',
addressSuggestionsFileId: 'string',
addressSuggestionsCountryCode: 'string',
addressSuggestionsEnableAutoComplete: true,
addressSuggestionsSource: ['string'],
addressSuggestionsEnableFreeText: true,
useNewDesign: true,
thirdPartyCookies: true,
accessMode: 'PUBLIC',
authGate: {
stepId: 'string'
},
enableDarkMode: true,
useAustrianLabels: true,
isActive: true,
savingProgress: {
mode: 'auto',
supportedRevision: 0
},
betaFeatures: {
modernProducts: true,
modernLauncher: true
},
offline: {
enabled: true,
packTtlHours: 24
}
},
validationRules: {
block1: 'rule123',
block2: ['rule456', 'rule789'],
block3: {
field1: 'rule101',
field2: ['rule102', 'rule103']
}
},
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
},
)
Response
{
"journeyId": "string",
"brandId": "string",
"name": "string",
"steps": [
{
"showStepName": true,
"title": "string",
"subTitle": "string",
"showStepSubtitle": true,
"showStepper": true,
"showStepperLabels": true,
"stepperType": "numbers",
"hideNextButton": true,
"guestVisible": true,
"name": "string",
"stepId": "string",
"schema": {},
"uischema": {},
"maxWidth": "small"
}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{
"type": "inject",
"sourceType": "journey",
"source": "string",
"target": "string"
}
],
"logics": [
{
"autoGeneratedId": "string",
"conditions": ["string"],
"actions": ["string"]
}
],
"logicsV4": {},
"contextSchema": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"paramKey": "string",
"isRequired": true,
"shouldLoadEntity": true,
"description": "string"
}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {
"mode": "full-screen",
"lang": "de",
"width": "string",
"topBar": true,
"scrollToTop": true,
"button": {}
},
"safeModeAutomation": true,
"designId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"templateId": "string",
"targetedCustomer": "string",
"description": "string",
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"thirdPartyCookies": true,
"accessMode": "PUBLIC",
"authGate": {
"stepId": "string"
},
"enableDarkMode": true,
"useAustrianLabels": true,
"isActive": true,
"savingProgress": {
"mode": "auto",
"supportedRevision": 0
},
"betaFeatures": {
"modernProducts": true,
"modernLauncher": true
},
"offline": {
"enabled": true,
"packTtlHours": 24
}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {
"field1": "rule101",
"field2": ["rule102", "rule103"]
}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}
patchUpdateJourneyV2โ
Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
PATCH /v2/journey/configuration
const { data } = await client.patchUpdateJourneyV2(
null,
{
journeyId: '509cdffe-424f-457a-95c2-9708c304ce77',
__lastModifiedAt: 'string'
},
)
Response
{
"journeyId": "string",
"brandId": "string",
"name": "string",
"steps": [
{
"showStepName": true,
"title": "string",
"subTitle": "string",
"showStepSubtitle": true,
"showStepper": true,
"showStepperLabels": true,
"stepperType": "numbers",
"hideNextButton": true,
"guestVisible": true,
"name": "string",
"stepId": "string",
"schema": {},
"uischema": {},
"maxWidth": "small"
}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{
"type": "inject",
"sourceType": "journey",
"source": "string",
"target": "string"
}
],
"logics": [
{
"autoGeneratedId": "string",
"conditions": ["string"],
"actions": ["string"]
}
],
"logicsV4": {},
"contextSchema": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"paramKey": "string",
"isRequired": true,
"shouldLoadEntity": true,
"description": "string"
}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {
"mode": "full-screen",
"lang": "de",
"width": "string",
"topBar": true,
"scrollToTop": true,
"button": {}
},
"safeModeAutomation": true,
"designId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"templateId": "string",
"targetedCustomer": "string",
"description": "string",
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"thirdPartyCookies": true,
"accessMode": "PUBLIC",
"authGate": {
"stepId": "string"
},
"enableDarkMode": true,
"useAustrianLabels": true,
"isActive": true,
"savingProgress": {
"mode": "auto",
"supportedRevision": 0
},
"betaFeatures": {
"modernProducts": true,
"modernLauncher": true
},
"offline": {
"enabled": true,
"packTtlHours": 24
}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {
"field1": "rule101",
"field2": ["rule102", "rule103"]
}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}
getJourneyV2โ
Get journey by id
GET /v2/journey/configuration/{id}
const { data } = await client.getJourneyV2({
id: '123e4567-e89b-12d3-a456-426614174000',
version: 1,
})
Response
{
"journeyId": "string",
"brandId": "string",
"name": "string",
"steps": [
{
"showStepName": true,
"title": "string",
"subTitle": "string",
"showStepSubtitle": true,
"showStepper": true,
"showStepperLabels": true,
"stepperType": "numbers",
"hideNextButton": true,
"guestVisible": true,
"name": "string",
"stepId": "string",
"schema": {},
"uischema": {},
"maxWidth": "small"
}
],
"design": {
"logoUrl": "string",
"theme": {},
"designTokens": {}
},
"rules": [
{
"type": "inject",
"sourceType": "journey",
"source": "string",
"target": "string"
}
],
"logics": [
{
"autoGeneratedId": "string",
"conditions": ["string"],
"actions": ["string"]
}
],
"logicsV4": {},
"contextSchema": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"paramKey": "string",
"isRequired": true,
"shouldLoadEntity": true,
"description": "string"
}
],
"journey_type": "Sales template (Premium)",
"protected": true,
"protectedEditable": ["string"],
"settings": {
"embedOptions": {
"mode": "full-screen",
"lang": "de",
"width": "string",
"topBar": true,
"scrollToTop": true,
"button": {}
},
"safeModeAutomation": true,
"designId": "string",
"entityId": "string",
"mappingsAutomationId": "string",
"newMappings": true,
"templateId": "string",
"targetedCustomer": "string",
"description": "string",
"publicToken": "string",
"runtimeEntities": ["ORDER"],
"filePurposes": ["string"],
"entityTags": ["string"],
"addressSuggestionsFileUrl": "string",
"addressSuggestionsFileId": "string",
"addressSuggestionsCountryCode": "string",
"addressSuggestionsEnableAutoComplete": true,
"addressSuggestionsSource": ["string"],
"addressSuggestionsEnableFreeText": true,
"useNewDesign": true,
"thirdPartyCookies": true,
"accessMode": "PUBLIC",
"authGate": {
"stepId": "string"
},
"enableDarkMode": true,
"useAustrianLabels": true,
"isActive": true,
"savingProgress": {
"mode": "auto",
"supportedRevision": 0
},
"betaFeatures": {
"modernProducts": true,
"modernLauncher": true
},
"offline": {
"enabled": true,
"packTtlHours": 24
}
},
"validationRules": {
"block1": "rule123",
"block2": ["rule456", "rule789"],
"block3": {
"field1": "rule101",
"field2": ["rule102", "rule103"]
}
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}
removeJourneyV2โ
Remove journey by id
DELETE /v2/journey/configuration/{id}
const { data } = await client.removeJourneyV2({
id: '123e4567-e89b-12d3-a456-426614174000',
})
getSettingsForJourneyโ
Get settings related to the journey using journey ID.
GET /v1/journey/{id}/settings
const { data } = await client.getSettingsForJourney({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"organizationId": "739224",
"canary": true,
"thirdPartyCookies": true,
"offline": true
}
getButtonOptionsโ
Get button options from a csv file.
GET /v1/journey/button-options
const { data } = await client.getButtonOptions({
fileId: 'example',
})
Response
[
{
"value": "Button Hidden Value",
"label": "Button Label"
}
]
Schemasโ
EnvironmentMapEntryโ
type EnvironmentMapEntry = {
key: string
value: string | Record<string, string>
}
EnvironmentMapโ
type EnvironmentMap = {
fallbackLanguage?: string
options: Array<{
key: string
value: string | Record<string, string>
}>
}
EnvironmentLinkโ
One link a customer clicks. label and description are each either a
plain string or one string per language, deciding that independently.
Mirrors environments-api's LinkFields.
type EnvironmentLink = {
url: string
label: string | Record<string, string>
description?: string | Record<string, string>
}
EnvironmentLinkListโ
A list of links, served under this service's own List<Link> type
token. environments-api types the variable List and declares the
element type inside the value; journey-api composes the two so a
consumer needs only one discriminant.
type EnvironmentLinkList = {
itemType: "Link"
fallbackLanguage?: string
items: Array<{
url: string
label: string | Record<string, string>
description?: string | Record<string, string>
}>
}
EnvironmentScalarListโ
A list of scalars, served under this service's own List<Text>,
List<Number> or List<Boolean> token (ER-5455). Read by logic
conditions; flattened to items by the journey runtime.
type EnvironmentScalarList = {
itemType: "Text" | "Number" | "Boolean"
items: string | number | boolean[]
}
JourneyEnvironmentResponseโ
type JourneyEnvironmentResponse = {
items: Array<{
datasourceId: string
type: "Text" | "Number" | "Boolean" | "Map" | "List<Link>"
value: string | number | boolean | {
fallbackLanguage?: { ... }
options: { ... }
} | {
itemType: { ... }
fallbackLanguage?: { ... }
items: { ... }
}
}>
errors: Array<{
datasourceId: string
code: "not_found" | "unsupported_type" | "not_set" | "invalid_value" | "incompatible_consumer"
}>
variables?: Array<{
key: string
type: "Text" | "Number" | "Boolean" | "List<Text>" | "List<Number>" | "List<Boolean>"
value: string | number | boolean | {
itemType: { ... }
items: { ... }
}
}>
variableErrors?: Array<{
key: string
code: "not_found" | "unsupported_type" | "not_set" | "invalid_value"
}>
}
JourneyExternalValuesRequestโ
type JourneyExternalValuesRequest = {
items: Array<{
datasourceId: string
context: Record<string, unknown>
}>
}
JourneyExternalValuesResponseโ
type JourneyExternalValuesResponse = {
items: Array<{
datasourceId: string
values: Record<string, unknown>
errors?: Array<{
result_id?: { ... }
code: { ... }
message?: { ... }
}>
policy?: {
on_unavailable?: { ... }
}
}>
errors: Array<{
datasourceId: string
code: "unknown_datasource" | "resolver_unavailable"
}>
}
ExternalValueErrorโ
type ExternalValueError = {
result_id?: string
code: string
message?: string
}
JourneyTemplatingContextโ
What the journey's Handlebars templates need from the organization, derived from the served configuration only. Present when the journey contains templates and templating is enabled for the organization. Read-only: like featureFlags, it is dropped from any write, so a client that sends the configu
type JourneyTemplatingContext = {
templating?: {
customVariables: Array<{
key: { ... }
template: { ... }
}>
env: Record<string, string | number | boolean | {
url: { ... }
label: { ... }
description?: { ... }
}>
}
}
JourneyTemplateVariablesResponseโ
type JourneyTemplateVariablesResponse = {
customVariables: Array<{
key: string
name: string
}>
environment: Array<{
key: string
type: "String" | "Text" | "Number" | "Boolean" | "Link"
description?: string
group?: string
}>
}
JourneyTemplatingโ
type JourneyTemplating = {
customVariables: Array<{
key: string
template: string
}>
env: Record<string, string | number | boolean | {
url: string
label: string | Record<string, string>
description?: string | Record<string, string>
}>
}
JourneyTemplatingLinkโ
A Link variable; label and description are a string or per-language strings, resolved by the runtime
type JourneyTemplatingLink = {
url: string
label: string | Record<string, string>
description?: string | Record<string, string>
}
JourneyTemplatingTranslatableโ
type JourneyTemplatingTranslatable = string | Record<string, string>
JourneyEnvironmentVariablesResponseโ
type JourneyEnvironmentVariablesResponse = {
items: Array<{
key: string
type: "Text" | "Number" | "Boolean" | "Map" | "List<Link>" | "List<Text>" | "List<Number>" | "List<Boolean>"
value: string | number | boolean | {
fallbackLanguage?: { ... }
options: { ... }
} | {
itemType: { ... }
fallbackLanguage?: { ... }
items: { ... }
} | {
itemType: { ... }
items: { ... }
}
description?: string
}>
}
GetJourneysResponseโ
type GetJourneysResponse = object
JourneyResponseโ
type JourneyResponse = {
createdJourney?: {
journeyId?: string
organizationId: string
brandId?: string
name: string
steps: Array<{
showStepName?: { ... }
title?: { ... }
subTitle?: { ... }
showStepSubtitle?: { ... }
showStepper?: { ... }
showStepperLabels?: { ... }
stepperType?: { ... }
hideNextButton?: { ... }
guestVisible?: { ... }
name: { ... }
stepId?: { ... }
schema: { ... }
uischema: { ... }
maxWidth?: { ... }
}>
design?: {
logoUrl?: { ... }
theme?: { ... }
designTokens?: { ... }
}
rules?: Array<{
type: { ... }
sourceType: { ... }
source: { ... }
target: { ... }
}>
logics?: Array<{
autoGeneratedId?: { ... }
conditions: { ... }
actions: { ... }
}>
logicsV4?: Record<string, {
id?: { ... }
protected?: { ... }
action?: { ... }
triggeredOn?: { ... }
conditions?: { ... }
settings?: { ... }
}>
contextSchema?: Array<{
id?: { ... }
type: { ... }
paramKey: { ... }
isRequired?: { ... }
shouldLoadEntity?: { ... }
description?: { ... }
}>
journey_type?: string
protected?: boolean
protectedEditable?: string[]
settings?: {
embedOptions?: { ... }
safeModeAutomation?: { ... }
canary?: { ... }
designId: { ... }
templateId?: { ... }
entityId?: { ... }
mappingsAutomationId?: { ... }
newMappings?: { ... }
targetedCustomer?: { ... }
description?: { ... }
organizationSettings?: { ... }
publicToken?: { ... }
runtimeEntities?: { ... }
filePurposes?: { ... }
entityTags?: { ... }
addressSuggestionsFileUrl?: { ... }
addressSuggestionsFileId?: { ... }
addressSuggestionsCountryCode?: { ... }
addressSuggestionsEnableAutoComplete?: { ... }
addressSuggestionsSource?: { ... }
addressSuggestionsEnableFreeText?: { ... }
useNewDesign?: { ... }
useAustrianLabels?: { ... }
enableDarkMode?: { ... }
accessMode?: { ... }
authGate?: { ... }
isPublished?: { ... }
status?: { ... }
isActive?: { ... }
savingProgress?: { ... }
thirdPartyCookies?: { ... }
betaFeatures?: { ... }
offline?: { ... }
}
validationRules?: Record<string, string | string[] | Record<string, string | string[]>>
_manifest?: string // uuid[]
createdBy?: string
updatedBy?: string
__lastModifiedAt?: string
createdAt: string
lastModifiedAt: string
deletedAt?: string
// ...
}
JourneyProductsResponseโ
type JourneyProductsResponse = Array<{
type?: string
_schema?: string
_title?: string
name?: string
_id?: string
_org?: string
code?: string
description?: string
feature?: unknown[]
product_images?: unknown[]
legal_footnote?: string
product_downloads?: unknown[]
price?: object
}>
PatchUpdateJourneyRequestโ
Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
type PatchUpdateJourneyRequest = {
journeyId: string // uuid
__lastModifiedAt?: string
}
JourneyCreationRequestโ
type JourneyCreationRequest = {
journeyId?: string
organizationId: string
brandId?: string
name: string
steps: Array<{
showStepName?: boolean
title?: string
subTitle?: string
showStepSubtitle?: boolean
showStepper?: boolean
showStepperLabels?: boolean
stepperType?: "numbers" | "progress bar"
hideNextButton?: boolean
guestVisible?: boolean
name: string
stepId?: string
schema: unknown
uischema: unknown
maxWidth?: "small" | "medium" | "large" | "extra large"
}>
design?: {
logoUrl?: string
theme?: Record<string, unknown>
designTokens?: object
}
rules?: Array<{
type: "inject" | "injectWithKey"
sourceType: "journey" | "step" | "block"
source: string
target: string
}>
logics?: Array<{
autoGeneratedId?: string
conditions: string[]
actions: string[]
}>
logicsV4?: Record<string, {
id?: string // uuid
protected?: boolean
action?: string
triggeredOn?: string
conditions?: Array<Array<{
operator?: { ... }
functionName?: { ... }
fact?: { ... }
value?: { ... }
args?: { ... }
}>>
settings?: object
}>
contextSchema?: Array<{
id?: string // uuid
type: string
paramKey: string
isRequired?: boolean
shouldLoadEntity?: boolean
description?: string
}>
journey_type?: string
protected?: boolean
protectedEditable?: string[]
settings?: {
embedOptions?: {
mode?: { ... }
lang?: { ... }
width?: { ... }
topBar?: { ... }
scrollToTop?: { ... }
button?: { ... }
}
safeModeAutomation?: boolean
canary?: boolean
designId: string
templateId?: string
entityId?: string
mappingsAutomationId?: string
newMappings?: boolean
targetedCustomer?: string
description?: string
organizationSettings?: Record<string, boolean>
publicToken?: string
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
filePurposes?: string[]
entityTags?: string[]
addressSuggestionsFileUrl?: string
addressSuggestionsFileId?: string
addressSuggestionsCountryCode?: string
addressSuggestionsEnableAutoComplete?: boolean
addressSuggestionsSource?: string[]
addressSuggestionsEnableFreeText?: boolean
useNewDesign?: boolean
useAustrianLabels?: boolean
enableDarkMode?: boolean
accessMode?: "PUBLIC" | "PRIVATE"
authGate?: {
stepId: { ... }
}
isPublished?: boolean
status?: string
// ...
}
JourneyCreationRequestV2โ
type JourneyCreationRequestV2 = {
journeyId?: string
brandId?: string
name: string
steps: Array<{
showStepName?: boolean
title?: string
subTitle?: string
showStepSubtitle?: boolean
showStepper?: boolean
showStepperLabels?: boolean
stepperType?: "numbers" | "progress bar"
hideNextButton?: boolean
guestVisible?: boolean
name: string
stepId?: string
schema: unknown
uischema: unknown
maxWidth?: "small" | "medium" | "large" | "extra large"
}>
design?: {
logoUrl?: string
theme?: Record<string, unknown>
designTokens?: object
}
rules?: Array<{
type: "inject" | "injectWithKey"
sourceType: "journey" | "step" | "block"
source: string
target: string
}>
logics?: Array<{
autoGeneratedId?: string
conditions: string[]
actions: string[]
}>
logicsV4?: Record<string, {
id?: string // uuid
protected?: boolean
action?: string
triggeredOn?: string
conditions?: Array<Array<{
operator?: { ... }
functionName?: { ... }
fact?: { ... }
value?: { ... }
args?: { ... }
}>>
settings?: object
}>
contextSchema?: Array<{
id?: string // uuid
type: string
paramKey: string
isRequired?: boolean
shouldLoadEntity?: boolean
description?: string
}>
journey_type?: string
protected?: boolean
protectedEditable?: string[]
settings?: {
embedOptions?: {
mode?: { ... }
lang?: { ... }
width?: { ... }
topBar?: { ... }
scrollToTop?: { ... }
button?: { ... }
}
safeModeAutomation?: boolean
designId?: string
entityId?: string
mappingsAutomationId?: string
newMappings?: boolean
templateId?: string
targetedCustomer?: string
description?: string
publicToken?: string
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
filePurposes?: string[]
entityTags?: string[]
addressSuggestionsFileUrl?: string
addressSuggestionsFileId?: string
addressSuggestionsCountryCode?: string
addressSuggestionsEnableAutoComplete?: boolean
addressSuggestionsSource?: string[]
addressSuggestionsEnableFreeText?: boolean
useNewDesign?: boolean
thirdPartyCookies?: boolean
accessMode?: "PUBLIC" | "PRIVATE"
authGate?: {
stepId: { ... }
}
enableDarkMode?: boolean
useAustrianLabels?: boolean
isActive?: boolean
savingProgress?: {
mode?: { ... }
supportedRevision?: { ... }
// ...
}
SearchJourneysQueryRequestโ
type SearchJourneysQueryRequest = {
q?: string
from?: number
size?: number
sort?: string
}
SearchJourneysResponseโ
type SearchJourneysResponse = {
hits?: number
results?: Array<{
_id?: string // uuid
_schema?: string
_title?: string
_org?: string
_created_at?: string // date-time
_updated_at?: string // date-time
_tags?: string[]
_manifest?: string // uuid[]
journey_name?: string
journey_id?: string // uuid
journey_type?: string
design?: string
created_by?: Array<{
id?: { ... }
}>
journey_version?: "Flex"
}>
}
Journeyโ
type Journey = {
journeyId?: string
organizationId: string
brandId?: string
name: string
steps: Array<{
showStepName?: boolean
title?: string
subTitle?: string
showStepSubtitle?: boolean
showStepper?: boolean
showStepperLabels?: boolean
stepperType?: "numbers" | "progress bar"
hideNextButton?: boolean
guestVisible?: boolean
name: string
stepId?: string
schema: unknown
uischema: unknown
maxWidth?: "small" | "medium" | "large" | "extra large"
}>
design?: {
logoUrl?: string
theme?: Record<string, unknown>
designTokens?: object
}
rules?: Array<{
type: "inject" | "injectWithKey"
sourceType: "journey" | "step" | "block"
source: string
target: string
}>
logics?: Array<{
autoGeneratedId?: string
conditions: string[]
actions: string[]
}>
logicsV4?: Record<string, {
id?: string // uuid
protected?: boolean
action?: string
triggeredOn?: string
conditions?: Array<Array<{
operator?: { ... }
functionName?: { ... }
fact?: { ... }
value?: { ... }
args?: { ... }
}>>
settings?: object
}>
contextSchema?: Array<{
id?: string // uuid
type: string
paramKey: string
isRequired?: boolean
shouldLoadEntity?: boolean
description?: string
}>
journey_type?: string
protected?: boolean
protectedEditable?: string[]
settings?: {
embedOptions?: {
mode?: { ... }
lang?: { ... }
width?: { ... }
topBar?: { ... }
scrollToTop?: { ... }
button?: { ... }
}
safeModeAutomation?: boolean
canary?: boolean
designId: string
templateId?: string
entityId?: string
mappingsAutomationId?: string
newMappings?: boolean
targetedCustomer?: string
description?: string
organizationSettings?: Record<string, boolean>
publicToken?: string
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
filePurposes?: string[]
entityTags?: string[]
addressSuggestionsFileUrl?: string
addressSuggestionsFileId?: string
addressSuggestionsCountryCode?: string
addressSuggestionsEnableAutoComplete?: boolean
addressSuggestionsSource?: string[]
addressSuggestionsEnableFreeText?: boolean
useNewDesign?: boolean
useAustrianLabels?: boolean
enableDarkMode?: boolean
accessMode?: "PUBLIC" | "PRIVATE"
authGate?: {
stepId: { ... }
}
isPublished?: boolean
status?: string
// ...
}
JourneyServedRevisionโ
Which revision the runtime read served: the requested one, or the published version when no revision was requested. Absent while the journey has not adopted versioning and on legacy version reads.
type JourneyServedRevision = {
revision_id?: string
}
JourneyActivationGuaranteeโ
Journeys read from the API always carry an explicit settings.isActive. The flag remains optional in request bodies.
type JourneyActivationGuarantee = {
settings: {
isActive: boolean
}
}
JourneyFeatureFlagsโ
type JourneyFeatureFlags = {
featureFlags?: Record<string, unknown>
}
JourneyAuditInfoโ
type JourneyAuditInfo = {
createdAt: string
lastModifiedAt: string
deletedAt?: string
version: number
revisions: number
}
JourneyRevisionRequestโ
The complete journey configuration a revision is created from, same shape as the PUT body. Server-managed attributes of the journey record (revisions, version, publish metadata) are ignored.
type JourneyRevisionRequest = {
journeyId?: string
organizationId: string
brandId?: string
name: string
steps: Array<{
showStepName?: boolean
title?: string
subTitle?: string
showStepSubtitle?: boolean
showStepper?: boolean
showStepperLabels?: boolean
stepperType?: "numbers" | "progress bar"
hideNextButton?: boolean
guestVisible?: boolean
name: string
stepId?: string
schema: unknown
uischema: unknown
maxWidth?: "small" | "medium" | "large" | "extra large"
}>
design?: {
logoUrl?: string
theme?: Record<string, unknown>
designTokens?: object
}
rules?: Array<{
type: "inject" | "injectWithKey"
sourceType: "journey" | "step" | "block"
source: string
target: string
}>
logics?: Array<{
autoGeneratedId?: string
conditions: string[]
actions: string[]
}>
logicsV4?: Record<string, {
id?: string // uuid
protected?: boolean
action?: string
triggeredOn?: string
conditions?: Array<Array<{
operator?: { ... }
functionName?: { ... }
fact?: { ... }
value?: { ... }
args?: { ... }
}>>
settings?: object
}>
contextSchema?: Array<{
id?: string // uuid
type: string
paramKey: string
isRequired?: boolean
shouldLoadEntity?: boolean
description?: string
}>
journey_type?: string
protected?: boolean
protectedEditable?: string[]
settings?: {
embedOptions?: {
mode?: { ... }
lang?: { ... }
width?: { ... }
topBar?: { ... }
scrollToTop?: { ... }
button?: { ... }
}
safeModeAutomation?: boolean
canary?: boolean
designId: string
templateId?: string
entityId?: string
mappingsAutomationId?: string
newMappings?: boolean
targetedCustomer?: string
description?: string
organizationSettings?: Record<string, boolean>
publicToken?: string
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
filePurposes?: string[]
entityTags?: string[]
addressSuggestionsFileUrl?: string
addressSuggestionsFileId?: string
addressSuggestionsCountryCode?: string
addressSuggestionsEnableAutoComplete?: boolean
addressSuggestionsSource?: string[]
addressSuggestionsEnableFreeText?: boolean
useNewDesign?: boolean
useAustrianLabels?: boolean
enableDarkMode?: boolean
accessMode?: "PUBLIC" | "PRIVATE"
authGate?: {
stepId: { ... }
}
isPublished?: boolean
status?: string
// ...
}
PublishRevisionRequestโ
type PublishRevisionRequest = {
revision_id: string
name?: string
description?: string
}
RevisionMetadataUpdateโ
type RevisionMetadataUpdate = {
name?: string
description?: string
}
JourneyRevisionSummaryโ
type JourneyRevisionSummary = {
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
published_at?: string // date-time
is_published: boolean
metadata_updated_at?: string // date-time
metadata_updated_by?: string
mapping_config_version?: number
}
JourneyRevisionListโ
type JourneyRevisionList = {
results: Array<{
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
published_at?: string // date-time
is_published: boolean
metadata_updated_at?: string // date-time
metadata_updated_by?: string
mapping_config_version?: number
}>
next_cursor?: string
}
JourneyRevisionโ
type JourneyRevision = {
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
published_at?: string // date-time
is_published: boolean
metadata_updated_at?: string // date-time
metadata_updated_by?: string
mapping_config_version?: number
configuration: {
journeyId?: string
organizationId: string
brandId?: string
name: string
steps: Array<{
showStepName?: { ... }
title?: { ... }
subTitle?: { ... }
showStepSubtitle?: { ... }
showStepper?: { ... }
showStepperLabels?: { ... }
stepperType?: { ... }
hideNextButton?: { ... }
guestVisible?: { ... }
name: { ... }
stepId?: { ... }
schema: { ... }
uischema: { ... }
maxWidth?: { ... }
}>
design?: {
logoUrl?: { ... }
theme?: { ... }
designTokens?: { ... }
}
rules?: Array<{
type: { ... }
sourceType: { ... }
source: { ... }
target: { ... }
}>
logics?: Array<{
autoGeneratedId?: { ... }
conditions: { ... }
actions: { ... }
}>
logicsV4?: Record<string, {
id?: { ... }
protected?: { ... }
action?: { ... }
triggeredOn?: { ... }
conditions?: { ... }
settings?: { ... }
}>
contextSchema?: Array<{
id?: { ... }
type: { ... }
paramKey: { ... }
isRequired?: { ... }
shouldLoadEntity?: { ... }
description?: { ... }
}>
journey_type?: string
protected?: boolean
protectedEditable?: string[]
settings?: {
embedOptions?: { ... }
safeModeAutomation?: { ... }
canary?: { ... }
designId: { ... }
templateId?: { ... }
entityId?: { ... }
mappingsAutomationId?: { ... }
newMappings?: { ... }
targetedCustomer?: { ... }
description?: { ... }
organizationSettings?: { ... }
publicToken?: { ... }
runtimeEntities?: { ... }
filePurposes?: { ... }
entityTags?: { ... }
addressSuggestionsFileUrl?: { ... }
addressSuggestionsFileId?: { ... }
addressSuggestionsCountryCode?: { ... }
addressSuggestionsEnableAutoComplete?: { ... }
addressSuggestionsSource?: { ... }
addressSuggestionsEnableFreeText?: { ... }
useNewDesign?: { ... }
useAustrianLabels?: { ... }
enableDarkMode?: { ... }
accessMode?: { ... }
authGate?: { ... }
isPublished?: { ... }
status?: { ... }
isActive?: { ... }
savingProgress?: { ... }
thirdPartyCookies?: { ... }
betaFeatures?: { ... }
// ...
}
JourneyRevisionConflictโ
type JourneyRevisionConflict = {
message: string
latest_revision: {
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
published_at?: string // date-time
is_published: boolean
metadata_updated_at?: string // date-time
metadata_updated_by?: string
mapping_config_version?: number
}
}
JourneyPublishStateโ
type JourneyPublishState = {
journey_id: string // uuid
published_revision_id: string
published_at?: string // date-time
published_by?: string
}
PublishResultโ
type PublishResult = {
revision_id: string
name: string
published_at: string // date-time
published_by?: string
post_publish_warnings: string[]
}
JourneyValidationResponseโ
type JourneyValidationResponse = {
valid: boolean
errors: Array<{
type?: string
severity?: "critical" | "high" | "medium" | "low"
message?: string
affectedStepIds?: string[]
count?: number
autoFix?: {
feasible?: { ... }
confidence?: { ... }
reason?: { ... }
details?: { ... }
}
}>
warnings?: Array<{
type?: string
message?: string
}>
}
JourneyValidationErrorโ
type JourneyValidationError = {
error: string
message: string
details: Array<{
pattern?: string
severity?: "critical" | "high" | "medium" | "low"
message?: string
count?: number
}>
}
S3Referenceโ
type S3Reference = {
bucket: string
key: string
}
TemplateSettingsโ
Template Settings for document generation
type TemplateSettings = {
custom_margins?: {
top?: number
bottom?: number
}
suggested_margins?: {
top?: number
bottom?: number
}
display_margin_guidelines?: boolean
enable_data_table_margin_autofix?: boolean
template_with_datatable?: boolean
enabled_template_settings_persistence?: boolean
misconfigured_margins?: boolean
file_entity_id?: string // uuid
}
GenerateDocumentResponseโ
type GenerateDocumentResponse = {
job_id?: string // uuid
job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED"
message?: string
pdf_output?: {
preview_url?: string
output_document?: {
filename?: { ... }
s3ref?: { ... }
}
}
docx_output?: {
preview_url?: string
output_document?: {
filename?: { ... }
s3ref?: { ... }
}
}
variable_payload?: {
additionalProperties?: string
}
template_settings?: {
custom_margins?: {
top?: { ... }
bottom?: { ... }
}
suggested_margins?: {
top?: { ... }
bottom?: { ... }
}
display_margin_guidelines?: boolean
enable_data_table_margin_autofix?: boolean
template_with_datatable?: boolean
enabled_template_settings_persistence?: boolean
misconfigured_margins?: boolean
file_entity_id?: string // uuid
}
}
GenerateDocumentRequestโ
type GenerateDocumentRequest = {
file_id: string
context_data: {
additionalProperties?: string
}
context_entity_id?: string // uuid
language?: string
}
GetSettingsForJourneyโ
type GetSettingsForJourney = {
organizationId?: string
canary?: boolean
thirdPartyCookies?: boolean
offline?: boolean
}
ButtonOptionโ
A single button option data
type ButtonOption = {
value?: string
label?: string
}
ValidationRuleRefโ
References to validation rules organized by blocks and fields. Maps block IDs to either one or more ordered rule IDs (for block-level rules) or rule references (for field-level rules).
type ValidationRuleRef = Record<string, string | string[] | Record<string, string | string[]>>
RuleRefโ
Field-level rule references within a block. Maps field names to one or more ordered rule IDs.
type RuleRef = Record<string, string | string[]>