Skip to main content
PATCH
Set trigger

Authorizations

Authorization
string
header
required

Organization API key, sent as Authorization: Bearer boom_org_....

Path Parameters

journeyId
string
required

A draft journey id, or the initiative id (resolves to its current draft).

Minimum string length: 1

Body

application/json
triggerType
enum<string>
required

How people enter the journey.

Available options:
manual,
segment,
cdp_event,
inbound
segmentId
string

Required for segment triggers. The segment's id (from segments_list / segments_get) — NOT its slug.

segmentName
string
eventName
string

Required for cdp_event triggers.

inboundAction
enum<string>

Required for inbound triggers.

Available options:
WHATSAPP_MESSAGE,
SMS_MESSAGE,
INSTAGRAM_MESSAGE
inboundChannelIds
string[]

Required for inbound triggers: the channel ids to listen on. Must be NATIVE WhatsApp or SMS channels with an ONLINE sender; if you pass an ineligible one the error names the eligible ids. Several published journeys may share one channel as long as their keywords differ: publishing a rule whose keyword (or blank catch-all) is already taken on that channel is refused with INBOUND_CHANNEL_TAKEN. Each arriving message enrols exactly one of them, the most specific matching rule, ties going to the older initiative.

inboundKeyword
string

The word the inbound message must match for this journey to enrol — e.g. 'PRECIO'. Blank or absent means the trigger is the catch-all and fires on ANY message arriving on the channel, which is almost never what you want beside other journeys on the same number. Several journeys may share one channel as long as their keywords differ — two rules with the same keyword on one channel, or two blank ones, are refused at publish with INBOUND_CHANNEL_TAKEN. The keyword is matched accent-, case- and punctuation-insensitively, and stored normalized.

inboundMatchMode
enum<string>

How inboundKeyword is matched: EXACT (the message is only-the-word), ALL_WORDS (the message contains all-the-words, in any order), or CONTAINS (the message contains-the-word, adjacent and in order). All three are word-based, so no mode ever matches inside a longer word ('precioso' does not match 'precio'). Defaults to EXACT. Ignored when inboundKeyword is blank.

Available options:
EXACT,
CONTAINS,
ALL_WORDS
maxEnrollments
integer

Frequency cap; both-or-neither with enrollmentWindow.

Required range: 1 <= x <= 9007199254740991
enrollmentWindow
string

Frequency-cap window, e.g. '7d'.

Response

Success

id
string
required

Journey (workflow version) id.

initiativeId
string
required

The initiative this journey belongs to.

status
enum<string>
required

DRAFT (editable), PUBLISHED (live, frozen), or STOPPED (retired).

Available options:
DRAFT,
PUBLISHED,
STOPPED
version
integer
required

Version number within the initiative.

Required range: -9007199254740991 <= x <= 9007199254740991
definition
object
required

The full journey graph.