@epilot/sdk 2.3.8 → 2.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/configuration-hub.cjs +8 -8
  20. package/dist/apis/configuration-hub.d.cts +2 -2
  21. package/dist/apis/configuration-hub.d.ts +2 -2
  22. package/dist/apis/configuration-hub.js +2 -2
  23. package/dist/apis/consent.cjs +6 -6
  24. package/dist/apis/consent.js +1 -1
  25. package/dist/apis/customer-portal.cjs +6 -6
  26. package/dist/apis/customer-portal.js +1 -1
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-governance.cjs +6 -6
  30. package/dist/apis/data-governance.js +1 -1
  31. package/dist/apis/deduplication.cjs +6 -6
  32. package/dist/apis/deduplication.js +1 -1
  33. package/dist/apis/design.cjs +6 -6
  34. package/dist/apis/design.js +1 -1
  35. package/dist/apis/document.cjs +6 -6
  36. package/dist/apis/document.js +1 -1
  37. package/dist/apis/email-settings.cjs +6 -6
  38. package/dist/apis/email-settings.js +1 -1
  39. package/dist/apis/email-template.cjs +6 -6
  40. package/dist/apis/email-template.js +1 -1
  41. package/dist/apis/entity-mapping.cjs +6 -6
  42. package/dist/apis/entity-mapping.js +1 -1
  43. package/dist/apis/entity.cjs +6 -6
  44. package/dist/apis/entity.js +1 -1
  45. package/dist/apis/environments.cjs +6 -6
  46. package/dist/apis/environments.js +1 -1
  47. package/dist/apis/event-catalog.cjs +6 -6
  48. package/dist/apis/event-catalog.js +1 -1
  49. package/dist/apis/file.cjs +6 -6
  50. package/dist/apis/file.js +1 -1
  51. package/dist/apis/iban.cjs +6 -6
  52. package/dist/apis/iban.js +1 -1
  53. package/dist/apis/integration-toolkit.cjs +6 -6
  54. package/dist/apis/integration-toolkit.js +1 -1
  55. package/dist/apis/journey.cjs +6 -6
  56. package/dist/apis/journey.js +1 -1
  57. package/dist/apis/kanban.cjs +6 -6
  58. package/dist/apis/kanban.js +1 -1
  59. package/dist/apis/message.cjs +6 -6
  60. package/dist/apis/message.js +1 -1
  61. package/dist/apis/metering.cjs +6 -6
  62. package/dist/apis/metering.js +1 -1
  63. package/dist/apis/notes.cjs +6 -6
  64. package/dist/apis/notes.js +1 -1
  65. package/dist/apis/notification.cjs +6 -6
  66. package/dist/apis/notification.js +1 -1
  67. package/dist/apis/organization.cjs +6 -6
  68. package/dist/apis/organization.js +1 -1
  69. package/dist/apis/partner-directory.cjs +6 -6
  70. package/dist/apis/partner-directory.js +1 -1
  71. package/dist/apis/permissions.cjs +6 -6
  72. package/dist/apis/permissions.js +1 -1
  73. package/dist/apis/pricing-tier.cjs +6 -6
  74. package/dist/apis/pricing-tier.js +1 -1
  75. package/dist/apis/pricing.cjs +6 -6
  76. package/dist/apis/pricing.js +1 -1
  77. package/dist/apis/purpose.cjs +6 -6
  78. package/dist/apis/purpose.js +1 -1
  79. package/dist/apis/query.cjs +6 -6
  80. package/dist/apis/query.js +1 -1
  81. package/dist/apis/sandbox.cjs +6 -6
  82. package/dist/apis/sandbox.js +1 -1
  83. package/dist/apis/sharing.cjs +6 -6
  84. package/dist/apis/sharing.js +1 -1
  85. package/dist/apis/submission.cjs +6 -6
  86. package/dist/apis/submission.js +1 -1
  87. package/dist/apis/target.cjs +6 -6
  88. package/dist/apis/target.js +1 -1
  89. package/dist/apis/targeting.cjs +6 -6
  90. package/dist/apis/targeting.js +1 -1
  91. package/dist/apis/template-variables.cjs +6 -6
  92. package/dist/apis/template-variables.js +1 -1
  93. package/dist/apis/user.cjs +6 -6
  94. package/dist/apis/user.js +1 -1
  95. package/dist/apis/validation-rules.cjs +6 -6
  96. package/dist/apis/validation-rules.js +1 -1
  97. package/dist/apis/webhooks.cjs +6 -6
  98. package/dist/apis/webhooks.js +1 -1
  99. package/dist/apis/workflow-definition.cjs +6 -6
  100. package/dist/apis/workflow-definition.js +1 -1
  101. package/dist/apis/workflow.cjs +6 -6
  102. package/dist/apis/workflow.js +1 -1
  103. package/dist/chunk-AOFZDDXN.js +14 -0
  104. package/dist/{chunk-6DZXWV2A.cjs → chunk-L37V2R32.cjs} +2 -2
  105. package/dist/{chunk-7TFVO6SP.js → chunk-OMNMMMRJ.js} +2 -2
  106. package/dist/chunk-VFCH5IEL.cjs +14 -0
  107. package/dist/configuration-hub-2F636SNK.js +7 -0
  108. package/dist/configuration-hub-XQGJK2JA.cjs +7 -0
  109. package/dist/{configuration-hub-runtime-TEDEKI7E.js → configuration-hub-runtime-5R6Y4KF7.js} +1 -1
  110. package/dist/{configuration-hub-runtime-B7KKIHHY.cjs → configuration-hub-runtime-TY2X2ECO.cjs} +2 -2
  111. package/dist/configuration-hub.d-DZE3wTQE.d.cts +375 -0
  112. package/dist/configuration-hub.d-DZE3wTQE.d.ts +375 -0
  113. package/dist/index.cjs +10 -10
  114. package/dist/index.d.cts +1 -1
  115. package/dist/index.d.ts +1 -1
  116. package/dist/index.js +2 -2
  117. package/docs/configuration-hub.md +52 -1
  118. package/package.json +1 -1
  119. package/definitions/access-token-runtime.json +0 -1
  120. package/definitions/access-token.json +0 -663
  121. package/definitions/address-runtime.json +0 -1
  122. package/definitions/address-suggestions-runtime.json +0 -1
  123. package/definitions/address-suggestions.json +0 -582
  124. package/definitions/address.json +0 -578
  125. package/definitions/ai-agents-runtime.json +0 -1
  126. package/definitions/ai-agents.json +0 -1711
  127. package/definitions/app-runtime.json +0 -1
  128. package/definitions/app.json +0 -4493
  129. package/definitions/audit-logs-runtime.json +0 -1
  130. package/definitions/audit-logs.json +0 -305
  131. package/definitions/automation-runtime.json +0 -1
  132. package/definitions/automation.json +0 -5028
  133. package/definitions/billing-runtime.json +0 -1
  134. package/definitions/billing.json +0 -837
  135. package/definitions/blueprint-manifest-runtime.json +0 -1
  136. package/definitions/blueprint-manifest.json +0 -4846
  137. package/definitions/configuration-hub-runtime.json +0 -1
  138. package/definitions/configuration-hub.json +0 -399
  139. package/definitions/consent-runtime.json +0 -1
  140. package/definitions/consent.json +0 -344
  141. package/definitions/customer-portal-runtime.json +0 -1
  142. package/definitions/customer-portal.json +0 -16045
  143. package/definitions/dashboard-runtime.json +0 -1
  144. package/definitions/dashboard.json +0 -484
  145. package/definitions/data-governance-runtime.json +0 -1
  146. package/definitions/data-governance.json +0 -1126
  147. package/definitions/deduplication-runtime.json +0 -1
  148. package/definitions/deduplication.json +0 -314
  149. package/definitions/design-runtime.json +0 -1
  150. package/definitions/design.json +0 -1722
  151. package/definitions/document-runtime.json +0 -1
  152. package/definitions/document.json +0 -758
  153. package/definitions/email-settings-runtime.json +0 -1
  154. package/definitions/email-settings.json +0 -2777
  155. package/definitions/email-template-runtime.json +0 -1
  156. package/definitions/email-template.json +0 -1441
  157. package/definitions/entity-mapping-runtime.json +0 -1
  158. package/definitions/entity-mapping.json +0 -1642
  159. package/definitions/entity-runtime.json +0 -1
  160. package/definitions/entity.json +0 -10474
  161. package/definitions/environments-runtime.json +0 -1
  162. package/definitions/environments.json +0 -539
  163. package/definitions/event-catalog-runtime.json +0 -1
  164. package/definitions/event-catalog.json +0 -1051
  165. package/definitions/file-runtime.json +0 -1
  166. package/definitions/file.json +0 -2842
  167. package/definitions/iban-runtime.json +0 -1
  168. package/definitions/iban.json +0 -132
  169. package/definitions/integration-toolkit-runtime.json +0 -1
  170. package/definitions/integration-toolkit.json +0 -7998
  171. package/definitions/journey-runtime.json +0 -1
  172. package/definitions/journey.json +0 -2603
  173. package/definitions/kanban-runtime.json +0 -1
  174. package/definitions/kanban.json +0 -1505
  175. package/definitions/message-runtime.json +0 -1
  176. package/definitions/message.json +0 -2872
  177. package/definitions/metering-runtime.json +0 -1
  178. package/definitions/metering.json +0 -2321
  179. package/definitions/notes-runtime.json +0 -1
  180. package/definitions/notes.json +0 -1531
  181. package/definitions/notification-runtime.json +0 -1
  182. package/definitions/notification.json +0 -1425
  183. package/definitions/organization-runtime.json +0 -1
  184. package/definitions/organization.json +0 -1192
  185. package/definitions/partner-directory-runtime.json +0 -1
  186. package/definitions/partner-directory.json +0 -2284
  187. package/definitions/permissions-runtime.json +0 -1
  188. package/definitions/permissions.json +0 -1515
  189. package/definitions/pricing-runtime.json +0 -1
  190. package/definitions/pricing-tier-runtime.json +0 -1
  191. package/definitions/pricing-tier.json +0 -105
  192. package/definitions/pricing.json +0 -9884
  193. package/definitions/purpose-runtime.json +0 -1
  194. package/definitions/purpose.json +0 -524
  195. package/definitions/query-runtime.json +0 -1
  196. package/definitions/query.json +0 -3178
  197. package/definitions/sandbox-runtime.json +0 -1
  198. package/definitions/sandbox.json +0 -453
  199. package/definitions/sharing-runtime.json +0 -1
  200. package/definitions/sharing.json +0 -956
  201. package/definitions/submission-runtime.json +0 -1
  202. package/definitions/submission.json +0 -313
  203. package/definitions/targeting-runtime.json +0 -1
  204. package/definitions/targeting.json +0 -1474
  205. package/definitions/template-variables-runtime.json +0 -1
  206. package/definitions/template-variables.json +0 -1416
  207. package/definitions/user-runtime.json +0 -1
  208. package/definitions/user.json +0 -2460
  209. package/definitions/validation-rules-runtime.json +0 -1
  210. package/definitions/validation-rules.json +0 -1491
  211. package/definitions/webhooks-runtime.json +0 -1
  212. package/definitions/webhooks.json +0 -1634
  213. package/definitions/workflow-definition-runtime.json +0 -1
  214. package/definitions/workflow-definition.json +0 -3302
  215. package/definitions/workflow-runtime.json +0 -1
  216. package/definitions/workflow.json +0 -4248
  217. package/dist/chunk-4JAOFRYX.js +0 -14
  218. package/dist/chunk-Q7OKRNUG.cjs +0 -14
  219. package/dist/configuration-hub-LKSRCGYT.cjs +0 -7
  220. package/dist/configuration-hub-TZ2ULWV4.js +0 -7
  221. package/dist/configuration-hub.d-CqvhcMOn.d.cts +0 -166
  222. package/dist/configuration-hub.d-CqvhcMOn.d.ts +0 -166
@@ -1,2603 +0,0 @@
1
- {
2
- "openapi": "3.0.0",
3
- "info": {
4
- "title": "Journey API",
5
- "description": "API to configure journeys",
6
- "version": "1.4.1"
7
- },
8
- "security": [
9
- {
10
- "EpilotAuth": []
11
- }
12
- ],
13
- "tags": [
14
- {
15
- "name": "Journeys",
16
- "description": "Journey operations"
17
- },
18
- {
19
- "name": "Journeys V2",
20
- "description": "Journey V2 operations"
21
- },
22
- {
23
- "name": "journey_schema",
24
- "x-displayName": "Journey",
25
- "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Journey\" />\n"
26
- }
27
- ],
28
- "x-tagGroups": [
29
- {
30
- "name": "APIs",
31
- "tags": [
32
- "Journeys",
33
- "Journeys V2"
34
- ]
35
- },
36
- {
37
- "name": "Schemas",
38
- "tags": [
39
- "journey_schema"
40
- ]
41
- }
42
- ],
43
- "paths": {
44
- "/v1/journey/organization/{id}": {
45
- "get": {
46
- "operationId": "getJourneysByOrgId",
47
- "summary": "getJourneysByOrgId",
48
- "description": "Get all journeys by organization id",
49
- "tags": [
50
- "Journeys"
51
- ],
52
- "parameters": [
53
- {
54
- "name": "id",
55
- "in": "path",
56
- "description": "Organization ID",
57
- "required": true,
58
- "schema": {
59
- "type": "string",
60
- "example": "123"
61
- }
62
- },
63
- {
64
- "name": "hydrate",
65
- "in": "query",
66
- "description": "Hydrate",
67
- "required": false,
68
- "schema": {
69
- "type": "string",
70
- "example": "true"
71
- }
72
- }
73
- ],
74
- "responses": {
75
- "200": {
76
- "description": "Success",
77
- "content": {
78
- "application/json": {
79
- "schema": {
80
- "$ref": "#/components/schemas/GetJourneysResponse"
81
- }
82
- }
83
- }
84
- }
85
- }
86
- }
87
- },
88
- "/v1/journey/configuration/{id}": {
89
- "get": {
90
- "operationId": "getJourney",
91
- "summary": "getJourney",
92
- "description": "Get journey by id. Private journeys requires valid private token to be passed",
93
- "security": [
94
- {},
95
- {
96
- "EpilotAuth": []
97
- },
98
- {
99
- "PortalAuth": []
100
- }
101
- ],
102
- "tags": [
103
- "Journeys"
104
- ],
105
- "parameters": [
106
- {
107
- "name": "id",
108
- "in": "path",
109
- "description": "Journey ID",
110
- "required": true,
111
- "schema": {
112
- "type": "string",
113
- "format": "uuid",
114
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
115
- }
116
- },
117
- {
118
- "name": "source",
119
- "in": "query",
120
- "description": "What source ID. Journey or Entity ID",
121
- "required": false,
122
- "schema": {
123
- "type": "string"
124
- }
125
- },
126
- {
127
- "name": "orgId",
128
- "in": "query",
129
- "description": "Organization ID",
130
- "required": false,
131
- "schema": {
132
- "type": "string"
133
- }
134
- }
135
- ],
136
- "responses": {
137
- "200": {
138
- "description": "Success",
139
- "content": {
140
- "application/json": {
141
- "schema": {
142
- "$ref": "#/components/schemas/Journey"
143
- }
144
- }
145
- }
146
- }
147
- }
148
- },
149
- "delete": {
150
- "operationId": "removeJourney",
151
- "summary": "removeJourney",
152
- "description": "Remove journey by id",
153
- "tags": [
154
- "Journeys"
155
- ],
156
- "parameters": [
157
- {
158
- "name": "id",
159
- "in": "path",
160
- "description": "Journey ID",
161
- "required": true,
162
- "schema": {
163
- "type": "string",
164
- "format": "uuid",
165
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
166
- }
167
- }
168
- ],
169
- "responses": {
170
- "200": {
171
- "description": "Success",
172
- "content": {}
173
- },
174
- "404": {
175
- "description": "Journey not found",
176
- "content": {
177
- "application/json": {
178
- "schema": {
179
- "type": "object",
180
- "properties": {
181
- "message": {
182
- "type": "string",
183
- "example": "journey not found"
184
- }
185
- }
186
- }
187
- }
188
- }
189
- }
190
- }
191
- }
192
- },
193
- "/v1/journey/products/{id}": {
194
- "get": {
195
- "operationId": "getJourneyProducts",
196
- "summary": "getJourneyProducts",
197
- "description": "Get products available in the journey by id. requires public journey token to be passed.",
198
- "security": [
199
- {
200
- "EpilotAuth": []
201
- }
202
- ],
203
- "tags": [
204
- "Journeys"
205
- ],
206
- "parameters": [
207
- {
208
- "name": "id",
209
- "in": "path",
210
- "description": "Journey ID",
211
- "required": true,
212
- "schema": {
213
- "type": "string",
214
- "format": "uuid",
215
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
216
- }
217
- },
218
- {
219
- "name": "source",
220
- "in": "query",
221
- "description": "What source ID. Journey or Entity ID",
222
- "required": false,
223
- "schema": {
224
- "type": "string"
225
- }
226
- },
227
- {
228
- "name": "postal_code",
229
- "in": "query",
230
- "description": "Zip Code for availibility",
231
- "required": false,
232
- "schema": {
233
- "type": "string"
234
- }
235
- },
236
- {
237
- "name": "city",
238
- "in": "query",
239
- "description": "city for availibility",
240
- "required": false,
241
- "schema": {
242
- "type": "string"
243
- }
244
- },
245
- {
246
- "name": "street",
247
- "in": "query",
248
- "description": "street name for availibility",
249
- "required": false,
250
- "schema": {
251
- "type": "string"
252
- }
253
- },
254
- {
255
- "name": "street_number",
256
- "in": "query",
257
- "description": "street number for availibility",
258
- "required": false,
259
- "schema": {
260
- "type": "string"
261
- }
262
- }
263
- ],
264
- "responses": {
265
- "200": {
266
- "description": "Success",
267
- "content": {
268
- "application/json": {
269
- "schema": {
270
- "$ref": "#/components/schemas/JourneyProductsResponse"
271
- }
272
- }
273
- }
274
- }
275
- }
276
- }
277
- },
278
- "/v1/journey/configuration": {
279
- "post": {
280
- "operationId": "createJourney",
281
- "summary": "createJourney",
282
- "description": "Create a Journey",
283
- "tags": [
284
- "Journeys"
285
- ],
286
- "requestBody": {
287
- "content": {
288
- "application/json": {
289
- "schema": {
290
- "$ref": "#/components/schemas/JourneyCreationRequest"
291
- }
292
- }
293
- },
294
- "description": "Payload"
295
- },
296
- "parameters": [
297
- {
298
- "name": "skipAutomation",
299
- "in": "query",
300
- "description": "skip creating an Automation (it takes Yn format \"true, yes, 1, y\")",
301
- "required": false,
302
- "schema": {
303
- "type": "string",
304
- "format": "Yn",
305
- "example": "true"
306
- }
307
- }
308
- ],
309
- "responses": {
310
- "201": {
311
- "description": "Success",
312
- "content": {
313
- "application/json": {
314
- "schema": {
315
- "$ref": "#/components/schemas/Journey"
316
- }
317
- }
318
- }
319
- },
320
- "400": {
321
- "description": "Validation failed (when validation mode is STRICT)",
322
- "content": {
323
- "application/json": {
324
- "schema": {
325
- "$ref": "#/components/schemas/JourneyValidationError"
326
- }
327
- }
328
- }
329
- }
330
- }
331
- },
332
- "put": {
333
- "operationId": "updateJourney",
334
- "summary": "updateJourney",
335
- "description": "Update a Journey",
336
- "tags": [
337
- "Journeys"
338
- ],
339
- "requestBody": {
340
- "content": {
341
- "application/json": {
342
- "schema": {
343
- "$ref": "#/components/schemas/JourneyCreationRequest"
344
- }
345
- }
346
- },
347
- "description": "Payload"
348
- },
349
- "parameters": [],
350
- "responses": {
351
- "204": {
352
- "description": "Success",
353
- "headers": {
354
- "X-Resource-Revisions": {
355
- "schema": {
356
- "type": "integer",
357
- "minimum": 0
358
- },
359
- "description": "Last revisions number of the updated resource"
360
- }
361
- }
362
- },
363
- "400": {
364
- "description": "Validation failed (when validation mode is STRICT)",
365
- "content": {
366
- "application/json": {
367
- "schema": {
368
- "$ref": "#/components/schemas/JourneyValidationError"
369
- }
370
- }
371
- }
372
- },
373
- "409": {
374
- "description": "The Journey has been modified since your last read, please refresh it and try again"
375
- }
376
- }
377
- },
378
- "patch": {
379
- "operationId": "patchUpdateJourney",
380
- "summary": "patchUpdateJourney",
381
- "description": "Update a Journey (partially / patch). Support for nested properties updates (e.g. \"property[0].name\").",
382
- "tags": [
383
- "Journeys"
384
- ],
385
- "requestBody": {
386
- "content": {
387
- "application/json": {
388
- "schema": {
389
- "$ref": "#/components/schemas/PatchUpdateJourneyRequest"
390
- },
391
- "example": {
392
- "journeyId": "509cdffe-424f-457a-95c2-9708c304ce77",
393
- "name": "New Journey Name",
394
- "steps[0].uischema.elements[0].products": [
395
- "123456",
396
- "654321"
397
- ]
398
- }
399
- }
400
- },
401
- "description": "Payload"
402
- },
403
- "parameters": [],
404
- "responses": {
405
- "200": {
406
- "description": "Success",
407
- "content": {
408
- "application/json": {
409
- "schema": {
410
- "$ref": "#/components/schemas/JourneyResponse"
411
- }
412
- }
413
- }
414
- },
415
- "400": {
416
- "description": "Validation failed (when validation mode is STRICT)",
417
- "content": {
418
- "application/json": {
419
- "schema": {
420
- "$ref": "#/components/schemas/JourneyValidationError"
421
- }
422
- }
423
- }
424
- },
425
- "404": {
426
- "description": "Journey or associated entity not found",
427
- "content": {
428
- "application/json": {
429
- "schema": {
430
- "type": "object",
431
- "properties": {
432
- "message": {
433
- "type": "string",
434
- "example": "journey not found"
435
- }
436
- }
437
- }
438
- }
439
- }
440
- }
441
- }
442
- }
443
- },
444
- "/v1/journey/configuration/search": {
445
- "post": {
446
- "operationId": "searchJourneys",
447
- "summary": "searchJourneys",
448
- "description": "Search Journeys",
449
- "tags": [
450
- "Journeys"
451
- ],
452
- "requestBody": {
453
- "content": {
454
- "application/json": {
455
- "schema": {
456
- "$ref": "#/components/schemas/SearchJourneysQueryRequest"
457
- }
458
- }
459
- },
460
- "description": "Payload"
461
- },
462
- "parameters": [],
463
- "responses": {
464
- "200": {
465
- "description": "Success",
466
- "content": {
467
- "application/json": {
468
- "schema": {
469
- "$ref": "#/components/schemas/SearchJourneysResponse"
470
- }
471
- }
472
- }
473
- }
474
- }
475
- }
476
- },
477
- "/v1/journey/document:generate": {
478
- "post": {
479
- "operationId": "generateDocument",
480
- "summary": "generateDocument",
481
- "description": "Builds document generated from a template with journey values.\"\n\nSupported input document types:\n- .docx\n\nSupported output document types:\n- .pdf\n- .docx but limited to only text based variables\n\nUses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.\nUses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.\n",
482
- "security": [
483
- {},
484
- {
485
- "EpilotAuth": []
486
- }
487
- ],
488
- "tags": [
489
- "Journeys"
490
- ],
491
- "requestBody": {
492
- "content": {
493
- "application/json": {
494
- "schema": {
495
- "$ref": "#/components/schemas/GenerateDocumentRequest"
496
- }
497
- }
498
- }
499
- },
500
- "responses": {
501
- "200": {
502
- "description": "Generated document output",
503
- "content": {
504
- "application/json": {
505
- "schema": {
506
- "$ref": "#/components/schemas/GenerateDocumentResponse"
507
- }
508
- }
509
- }
510
- }
511
- }
512
- }
513
- },
514
- "/v2/journey/configuration": {
515
- "post": {
516
- "operationId": "createJourneyV2",
517
- "summary": "createJourneyV2",
518
- "description": "Create a Journey",
519
- "tags": [
520
- "Journeys V2"
521
- ],
522
- "requestBody": {
523
- "content": {
524
- "application/json": {
525
- "schema": {
526
- "$ref": "#/components/schemas/JourneyCreationRequestV2"
527
- }
528
- }
529
- },
530
- "description": "Payload"
531
- },
532
- "parameters": [
533
- {
534
- "name": "skipAutomation",
535
- "in": "query",
536
- "description": "skip creating an Automation (it takes Yn format \"true, yes, 1, y\")",
537
- "required": false,
538
- "schema": {
539
- "type": "string",
540
- "format": "Yn",
541
- "example": "true"
542
- }
543
- }
544
- ],
545
- "responses": {
546
- "201": {
547
- "description": "Success",
548
- "content": {
549
- "application/json": {
550
- "schema": {
551
- "$ref": "#/components/schemas/JourneyCreationRequestV2"
552
- }
553
- }
554
- }
555
- },
556
- "400": {
557
- "description": "Validation failed (when validation mode is STRICT)",
558
- "content": {
559
- "application/json": {
560
- "schema": {
561
- "$ref": "#/components/schemas/JourneyValidationError"
562
- }
563
- }
564
- }
565
- }
566
- }
567
- },
568
- "put": {
569
- "operationId": "updateJourneyV2",
570
- "summary": "updateJourneyV2",
571
- "description": "Update a Journey",
572
- "tags": [
573
- "Journeys V2"
574
- ],
575
- "requestBody": {
576
- "content": {
577
- "application/json": {
578
- "schema": {
579
- "$ref": "#/components/schemas/JourneyCreationRequestV2"
580
- }
581
- }
582
- },
583
- "description": "Payload"
584
- },
585
- "parameters": [],
586
- "responses": {
587
- "200": {
588
- "description": "Success",
589
- "content": {
590
- "application/json": {
591
- "schema": {
592
- "$ref": "#/components/schemas/JourneyCreationRequestV2"
593
- }
594
- }
595
- }
596
- },
597
- "400": {
598
- "description": "Validation failed (when validation mode is STRICT)",
599
- "content": {
600
- "application/json": {
601
- "schema": {
602
- "$ref": "#/components/schemas/JourneyValidationError"
603
- }
604
- }
605
- }
606
- },
607
- "404": {
608
- "description": "Journey or associated entity not found",
609
- "content": {
610
- "application/json": {
611
- "schema": {
612
- "type": "object",
613
- "properties": {
614
- "message": {
615
- "type": "string",
616
- "example": "journey not found"
617
- }
618
- }
619
- }
620
- }
621
- }
622
- }
623
- }
624
- },
625
- "patch": {
626
- "operationId": "patchUpdateJourneyV2",
627
- "summary": "patchUpdateJourneyV2",
628
- "description": "Update a Journey (partially / patch). Support for nested properties updates (e.g. \"property[0].name\").",
629
- "tags": [
630
- "Journeys V2"
631
- ],
632
- "requestBody": {
633
- "content": {
634
- "application/json": {
635
- "schema": {
636
- "$ref": "#/components/schemas/PatchUpdateJourneyRequest"
637
- },
638
- "example": {
639
- "journeyId": "509cdffe-424f-457a-95c2-9708c304ce77",
640
- "name": "New Journey Name",
641
- "steps[0].uischema.elements[0].products": [
642
- "123456",
643
- "654321"
644
- ]
645
- }
646
- }
647
- },
648
- "description": "Payload"
649
- },
650
- "parameters": [],
651
- "responses": {
652
- "200": {
653
- "description": "Success",
654
- "content": {
655
- "application/json": {
656
- "schema": {
657
- "$ref": "#/components/schemas/JourneyCreationRequestV2"
658
- }
659
- }
660
- }
661
- },
662
- "400": {
663
- "description": "Validation failed (when validation mode is STRICT)",
664
- "content": {
665
- "application/json": {
666
- "schema": {
667
- "$ref": "#/components/schemas/JourneyValidationError"
668
- }
669
- }
670
- }
671
- },
672
- "404": {
673
- "description": "Journey or associated entity not found",
674
- "content": {
675
- "application/json": {
676
- "schema": {
677
- "type": "object",
678
- "properties": {
679
- "message": {
680
- "type": "string",
681
- "example": "journey not found"
682
- }
683
- }
684
- }
685
- }
686
- }
687
- }
688
- }
689
- }
690
- },
691
- "/v2/journey/configuration/{id}": {
692
- "get": {
693
- "operationId": "getJourneyV2",
694
- "summary": "getJourneyV2",
695
- "description": "Get journey by id",
696
- "security": [],
697
- "tags": [
698
- "Journeys V2"
699
- ],
700
- "parameters": [
701
- {
702
- "name": "id",
703
- "in": "path",
704
- "description": "Journey ID",
705
- "required": true,
706
- "schema": {
707
- "type": "string",
708
- "format": "uuid",
709
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
710
- }
711
- }
712
- ],
713
- "responses": {
714
- "200": {
715
- "description": "Success",
716
- "content": {
717
- "application/json": {
718
- "schema": {
719
- "$ref": "#/components/schemas/JourneyCreationRequestV2"
720
- }
721
- }
722
- }
723
- }
724
- }
725
- },
726
- "delete": {
727
- "operationId": "removeJourneyV2",
728
- "summary": "removeJourneyV2",
729
- "description": "Remove journey by id",
730
- "tags": [
731
- "Journeys V2"
732
- ],
733
- "parameters": [
734
- {
735
- "name": "id",
736
- "in": "path",
737
- "description": "Journey ID",
738
- "required": true,
739
- "schema": {
740
- "type": "string",
741
- "format": "uuid",
742
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
743
- }
744
- }
745
- ],
746
- "responses": {
747
- "200": {
748
- "description": "Success",
749
- "content": {}
750
- }
751
- }
752
- }
753
- },
754
- "/v1/journey/{id}/settings": {
755
- "get": {
756
- "operationId": "getSettingsForJourney",
757
- "summary": "getSettingsForJourney",
758
- "description": "Get settings related to the journey using journey ID.",
759
- "tags": [
760
- "Journeys"
761
- ],
762
- "security": [
763
- {}
764
- ],
765
- "parameters": [
766
- {
767
- "name": "id",
768
- "in": "path",
769
- "description": "Journey ID",
770
- "required": true,
771
- "schema": {
772
- "type": "string",
773
- "format": "uuid",
774
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
775
- }
776
- }
777
- ],
778
- "responses": {
779
- "200": {
780
- "description": "Success",
781
- "content": {
782
- "application/json": {
783
- "schema": {
784
- "$ref": "#/components/schemas/GetSettingsForJourney"
785
- }
786
- }
787
- }
788
- },
789
- "404": {
790
- "description": "Not found",
791
- "content": {
792
- "application/json": {
793
- "schema": {
794
- "type": "object",
795
- "properties": {
796
- "message": {
797
- "type": "string",
798
- "example": "journey not found"
799
- }
800
- }
801
- }
802
- }
803
- }
804
- },
805
- "500": {
806
- "description": "Internal Server Error",
807
- "content": {
808
- "application/json": {
809
- "schema": {
810
- "type": "object",
811
- "properties": {
812
- "message": {
813
- "type": "string",
814
- "example": "Unknown API Error"
815
- }
816
- }
817
- }
818
- }
819
- }
820
- }
821
- }
822
- }
823
- },
824
- "/v1/journey/button-options": {
825
- "get": {
826
- "operationId": "getButtonOptions",
827
- "summary": "getButtonOptions",
828
- "description": "Get button options from a csv file.",
829
- "security": [
830
- {
831
- "EpilotAuth": []
832
- }
833
- ],
834
- "tags": [
835
- "Journeys"
836
- ],
837
- "parameters": [
838
- {
839
- "in": "query",
840
- "name": "fileId",
841
- "required": true,
842
- "description": "file id to get button options from",
843
- "schema": {
844
- "type": "string",
845
- "example": "535ef74a-dd66-4d01-94a9-725016e70d1c"
846
- }
847
- }
848
- ],
849
- "responses": {
850
- "200": {
851
- "description": "Success",
852
- "content": {
853
- "application/json": {
854
- "schema": {
855
- "type": "array",
856
- "items": {
857
- "$ref": "#/components/schemas/ButtonOption"
858
- }
859
- }
860
- }
861
- }
862
- },
863
- "400": {
864
- "description": "Bad Request - Invalid file or content",
865
- "content": {
866
- "application/json": {
867
- "schema": {
868
- "type": "object",
869
- "properties": {
870
- "message": {
871
- "type": "string",
872
- "example": "UTF-8 encoding error while processing CSV content"
873
- },
874
- "details": {
875
- "type": "string",
876
- "example": "Please ensure your CSV file is properly encoded in UTF-8 format"
877
- }
878
- }
879
- }
880
- }
881
- }
882
- },
883
- "404": {
884
- "description": "Not found",
885
- "content": {
886
- "application/json": {
887
- "schema": {
888
- "type": "object",
889
- "properties": {
890
- "message": {
891
- "type": "string",
892
- "example": "File with ID 535ef74a-dd66-4d01-94a9-725016e70d1c not found."
893
- }
894
- }
895
- }
896
- }
897
- }
898
- },
899
- "500": {
900
- "description": "Internal Server Error",
901
- "content": {
902
- "application/json": {
903
- "schema": {
904
- "type": "object",
905
- "properties": {
906
- "message": {
907
- "type": "string",
908
- "example": "Unknown API Error"
909
- }
910
- }
911
- }
912
- }
913
- }
914
- }
915
- }
916
- }
917
- }
918
- },
919
- "components": {
920
- "schemas": {
921
- "GetJourneysResponse": {
922
- "type": "object"
923
- },
924
- "JourneyResponse": {
925
- "type": "object",
926
- "properties": {
927
- "createdJourney": {
928
- "$ref": "#/components/schemas/Journey"
929
- }
930
- }
931
- },
932
- "JourneyProductsResponse": {
933
- "type": "array",
934
- "items": {
935
- "type": "object",
936
- "properties": {
937
- "type": {
938
- "type": "string"
939
- },
940
- "_schema": {
941
- "type": "string"
942
- },
943
- "_title": {
944
- "type": "string"
945
- },
946
- "name": {
947
- "type": "string"
948
- },
949
- "_id": {
950
- "type": "string"
951
- },
952
- "_org": {
953
- "type": "string"
954
- },
955
- "code": {
956
- "type": "string"
957
- },
958
- "description": {
959
- "type": "string"
960
- },
961
- "feature": {
962
- "type": "array",
963
- "items": {}
964
- },
965
- "product_images": {
966
- "type": "array",
967
- "items": {}
968
- },
969
- "legal_footnote": {
970
- "type": "string"
971
- },
972
- "product_downloads": {
973
- "type": "array",
974
- "items": {}
975
- },
976
- "price": {
977
- "type": "object"
978
- }
979
- }
980
- }
981
- },
982
- "PatchUpdateJourneyRequest": {
983
- "type": "object",
984
- "properties": {
985
- "journeyId": {
986
- "type": "string",
987
- "format": "uuid",
988
- "example": "509cdffe-424f-457a-95c2-9708c304ce77"
989
- },
990
- "__lastModifiedAt": {
991
- "type": "string",
992
- "description": "If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey",
993
- "nullable": true
994
- }
995
- },
996
- "additionalProperties": true,
997
- "description": "Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.\n",
998
- "required": [
999
- "journeyId"
1000
- ]
1001
- },
1002
- "JourneyCreationRequest": {
1003
- "type": "object",
1004
- "properties": {
1005
- "journeyId": {
1006
- "type": "string"
1007
- },
1008
- "organizationId": {
1009
- "type": "string"
1010
- },
1011
- "brandId": {
1012
- "type": "string"
1013
- },
1014
- "name": {
1015
- "type": "string"
1016
- },
1017
- "steps": {
1018
- "type": "array",
1019
- "items": {
1020
- "type": "object",
1021
- "additionalProperties": false,
1022
- "properties": {
1023
- "showStepName": {
1024
- "type": "boolean",
1025
- "nullable": true
1026
- },
1027
- "title": {
1028
- "type": "string",
1029
- "nullable": true
1030
- },
1031
- "subTitle": {
1032
- "type": "string",
1033
- "nullable": true
1034
- },
1035
- "showStepSubtitle": {
1036
- "type": "boolean",
1037
- "nullable": true
1038
- },
1039
- "showStepper": {
1040
- "type": "boolean",
1041
- "nullable": true
1042
- },
1043
- "showStepperLabels": {
1044
- "type": "boolean",
1045
- "nullable": true
1046
- },
1047
- "hideNextButton": {
1048
- "type": "boolean",
1049
- "nullable": true
1050
- },
1051
- "name": {
1052
- "type": "string"
1053
- },
1054
- "stepId": {
1055
- "type": "string"
1056
- },
1057
- "schema": {},
1058
- "uischema": {},
1059
- "maxWidth": {
1060
- "type": "string",
1061
- "enum": [
1062
- "small",
1063
- "medium",
1064
- "large",
1065
- "extra large"
1066
- ]
1067
- }
1068
- },
1069
- "required": [
1070
- "name",
1071
- "schema",
1072
- "uischema"
1073
- ]
1074
- }
1075
- },
1076
- "design": {
1077
- "type": "object",
1078
- "properties": {
1079
- "logoUrl": {
1080
- "type": "string",
1081
- "nullable": true
1082
- },
1083
- "theme": {
1084
- "type": "object",
1085
- "additionalProperties": {}
1086
- },
1087
- "designTokens": {
1088
- "type": "object"
1089
- }
1090
- },
1091
- "additionalProperties": false
1092
- },
1093
- "rules": {
1094
- "type": "array",
1095
- "items": {
1096
- "type": "object",
1097
- "properties": {
1098
- "type": {
1099
- "type": "string",
1100
- "enum": [
1101
- "inject",
1102
- "injectWithKey"
1103
- ]
1104
- },
1105
- "sourceType": {
1106
- "type": "string",
1107
- "enum": [
1108
- "journey",
1109
- "step",
1110
- "block"
1111
- ]
1112
- },
1113
- "source": {
1114
- "type": "string"
1115
- },
1116
- "target": {
1117
- "type": "string"
1118
- }
1119
- },
1120
- "required": [
1121
- "type",
1122
- "sourceType",
1123
- "source",
1124
- "target"
1125
- ],
1126
- "additionalProperties": false
1127
- }
1128
- },
1129
- "logics": {
1130
- "type": "array",
1131
- "items": {
1132
- "type": "object",
1133
- "properties": {
1134
- "autoGeneratedId": {
1135
- "type": "string"
1136
- },
1137
- "conditions": {
1138
- "type": "array",
1139
- "items": {
1140
- "type": "string"
1141
- }
1142
- },
1143
- "actions": {
1144
- "type": "array",
1145
- "items": {
1146
- "type": "string"
1147
- }
1148
- }
1149
- },
1150
- "required": [
1151
- "conditions",
1152
- "actions"
1153
- ],
1154
- "additionalProperties": false
1155
- }
1156
- },
1157
- "logicsV4": {
1158
- "type": "object",
1159
- "additionalProperties": {
1160
- "type": "object",
1161
- "properties": {
1162
- "id": {
1163
- "type": "string",
1164
- "format": "uuid",
1165
- "description": "Unique identifier for logic. Use uuidv7"
1166
- },
1167
- "protected": {
1168
- "type": "boolean",
1169
- "description": "If true, logic can't be manipulated by the configuring user"
1170
- },
1171
- "action": {
1172
- "type": "string",
1173
- "description": "Indicates which action to take in case logic evaluates to true"
1174
- },
1175
- "triggeredOn": {
1176
- "type": "string",
1177
- "description": "Indicates when the logic should be evaluated"
1178
- },
1179
- "conditions": {
1180
- "type": "array",
1181
- "items": {
1182
- "type": "array",
1183
- "items": {
1184
- "type": "object",
1185
- "properties": {
1186
- "operator": {
1187
- "type": "string",
1188
- "description": "Operator to be applied between the fact value and the value"
1189
- },
1190
- "functionName": {
1191
- "type": "string",
1192
- "description": "If operator is a custom function, this needs to be provided"
1193
- },
1194
- "fact": {
1195
- "type": "object",
1196
- "properties": {
1197
- "id": {
1198
- "type": "string",
1199
- "format": "uuid",
1200
- "description": "Unique identifier for a fact"
1201
- },
1202
- "referenceType": {
1203
- "type": "string",
1204
- "description": "Indicates reference type (block or context parameter)"
1205
- },
1206
- "referenceId": {
1207
- "type": "string",
1208
- "description": "Id of the reference"
1209
- },
1210
- "path": {
1211
- "type": "string",
1212
- "description": "Path to a property. Used if only part of the value is needed"
1213
- },
1214
- "meaning": {
1215
- "type": "string",
1216
- "description": "If path is a reference, indicates the intention of it"
1217
- }
1218
- }
1219
- },
1220
- "value": {
1221
- "oneOf": [
1222
- {
1223
- "type": "string"
1224
- },
1225
- {
1226
- "type": "number"
1227
- },
1228
- {
1229
- "type": "boolean"
1230
- },
1231
- {
1232
- "type": "object"
1233
- },
1234
- {
1235
- "type": "array",
1236
- "items": {}
1237
- }
1238
- ]
1239
- },
1240
- "args": {
1241
- "type": "object"
1242
- }
1243
- }
1244
- }
1245
- }
1246
- },
1247
- "settings": {
1248
- "type": "object",
1249
- "description": "Logic specific settings. Will vary by type of logic"
1250
- }
1251
- }
1252
- }
1253
- },
1254
- "contextSchema": {
1255
- "type": "array",
1256
- "items": {
1257
- "type": "object",
1258
- "properties": {
1259
- "id": {
1260
- "type": "string",
1261
- "format": "uuid",
1262
- "description": "Unique identifier for the context schema item"
1263
- },
1264
- "type": {
1265
- "type": "string",
1266
- "description": "Type of the parameter. It could be either an entity slug, or a text"
1267
- },
1268
- "paramKey": {
1269
- "type": "string",
1270
- "description": "Expected key to be received in the context"
1271
- },
1272
- "isRequired": {
1273
- "type": "boolean",
1274
- "description": "Indicates if a value is expected to be provided"
1275
- },
1276
- "shouldLoadEntity": {
1277
- "type": "boolean",
1278
- "description": "If type is not text, we can instruct the journey to fetch the entity id we receive as value"
1279
- }
1280
- },
1281
- "required": [
1282
- "paramKey",
1283
- "type"
1284
- ],
1285
- "additionalProperties": false
1286
- }
1287
- },
1288
- "journey_type": {
1289
- "type": "string",
1290
- "description": "Journey Template",
1291
- "example": "Sales template (Premium)"
1292
- },
1293
- "protected": {
1294
- "type": "boolean",
1295
- "description": "If true, journey is displayed in read-only mode"
1296
- },
1297
- "settings": {
1298
- "type": "object",
1299
- "properties": {
1300
- "embedOptions": {
1301
- "type": "object",
1302
- "properties": {
1303
- "mode": {
1304
- "type": "string",
1305
- "enum": [
1306
- "full-screen",
1307
- "inline"
1308
- ]
1309
- },
1310
- "lang": {
1311
- "type": "string",
1312
- "enum": [
1313
- "de",
1314
- "en",
1315
- "fr"
1316
- ]
1317
- },
1318
- "width": {
1319
- "type": "string"
1320
- },
1321
- "topBar": {
1322
- "type": "boolean"
1323
- },
1324
- "scrollToTop": {
1325
- "type": "boolean"
1326
- },
1327
- "button": {
1328
- "type": "object",
1329
- "properties": {
1330
- "text": {
1331
- "type": "string",
1332
- "nullable": true
1333
- },
1334
- "align": {
1335
- "type": "string",
1336
- "enum": [
1337
- "left",
1338
- "center",
1339
- "right"
1340
- ]
1341
- }
1342
- }
1343
- }
1344
- }
1345
- },
1346
- "safeModeAutomation": {
1347
- "type": "boolean"
1348
- },
1349
- "canary": {
1350
- "deprecated": true,
1351
- "description": "DEPRECATED - This API will return hardcoded value of false. Please note that this field is internal to epilot and should not be used by external clients. If you wish to get the canary flag, please use the /v1/journey/{id}/settings API.",
1352
- "type": "boolean"
1353
- },
1354
- "designId": {
1355
- "type": "string"
1356
- },
1357
- "templateId": {
1358
- "type": "string"
1359
- },
1360
- "entityId": {
1361
- "type": "string",
1362
- "nullable": true
1363
- },
1364
- "mappingsAutomationId": {
1365
- "type": "string"
1366
- },
1367
- "targetedCustomer": {
1368
- "type": "string"
1369
- },
1370
- "description": {
1371
- "type": "string",
1372
- "nullable": true
1373
- },
1374
- "organizationSettings": {
1375
- "type": "object",
1376
- "additionalProperties": {
1377
- "type": "boolean"
1378
- },
1379
- "nullable": true
1380
- },
1381
- "publicToken": {
1382
- "type": "string",
1383
- "nullable": true
1384
- },
1385
- "runtimeEntities": {
1386
- "type": "array",
1387
- "items": {
1388
- "type": "string",
1389
- "enum": [
1390
- "ORDER",
1391
- "OPPORTUNITY"
1392
- ]
1393
- }
1394
- },
1395
- "filePurposes": {
1396
- "type": "array",
1397
- "items": {
1398
- "type": "string"
1399
- }
1400
- },
1401
- "entityTags": {
1402
- "type": "array",
1403
- "items": {
1404
- "type": "string"
1405
- }
1406
- },
1407
- "addressSuggestionsFileUrl": {
1408
- "type": "string",
1409
- "nullable": true,
1410
- "deprecated": true,
1411
- "description": "@deprecated Use addressSuggestionsFileId instead"
1412
- },
1413
- "addressSuggestionsFileId": {
1414
- "type": "string",
1415
- "nullable": true
1416
- },
1417
- "addressSuggestionsCountryCode": {
1418
- "type": "string",
1419
- "nullable": true,
1420
- "description": "Country code for address format (e.g. DE, AT, CH, LU)"
1421
- },
1422
- "addressSuggestionsEnableAutoComplete": {
1423
- "type": "boolean",
1424
- "description": "Whether address auto-complete is enabled"
1425
- },
1426
- "addressSuggestionsSource": {
1427
- "type": "array",
1428
- "items": {
1429
- "type": "string"
1430
- },
1431
- "description": "Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)"
1432
- },
1433
- "addressSuggestionsEnableFreeText": {
1434
- "type": "boolean",
1435
- "description": "Whether free text input is allowed when auto-complete is on"
1436
- },
1437
- "useNewDesign": {
1438
- "type": "boolean",
1439
- "deprecated": true,
1440
- "description": "This property is deprecated and will be removed in a future version"
1441
- },
1442
- "useAustrianLabels": {
1443
- "type": "boolean",
1444
- "description": "If true, some journey input labels are in Austrian format"
1445
- },
1446
- "enableDarkMode": {
1447
- "type": "boolean",
1448
- "description": "If true, the journey shows an icon to toggle dark mode"
1449
- },
1450
- "accessMode": {
1451
- "type": "string",
1452
- "enum": [
1453
- "PUBLIC",
1454
- "PRIVATE"
1455
- ]
1456
- },
1457
- "isPublished": {
1458
- "type": "boolean"
1459
- },
1460
- "status": {
1461
- "type": "string"
1462
- },
1463
- "isActive": {
1464
- "type": "boolean"
1465
- },
1466
- "savingProgress": {
1467
- "type": "object",
1468
- "properties": {
1469
- "savingMode": {
1470
- "type": "string",
1471
- "enum": [
1472
- "auto",
1473
- "local",
1474
- "remote",
1475
- "none"
1476
- ]
1477
- },
1478
- "supportedVersion": {
1479
- "type": "number"
1480
- }
1481
- }
1482
- },
1483
- "thirdPartyCookies": {
1484
- "type": "boolean",
1485
- "description": "If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent."
1486
- }
1487
- },
1488
- "required": [
1489
- "designId"
1490
- ],
1491
- "additionalProperties": false
1492
- },
1493
- "validationRules": {
1494
- "$ref": "#/components/schemas/ValidationRuleRef"
1495
- },
1496
- "_manifest": {
1497
- "type": "array",
1498
- "description": "Manifest/Blueprint ID used to create/update the entity",
1499
- "items": {
1500
- "type": "string",
1501
- "format": "uuid",
1502
- "example": "123e4567-e89b-12d3-a456-426614174000"
1503
- }
1504
- },
1505
- "createdBy": {
1506
- "type": "string"
1507
- },
1508
- "updatedBy": {
1509
- "type": "string",
1510
- "nullable": true
1511
- },
1512
- "__lastModifiedAt": {
1513
- "type": "string",
1514
- "description": "If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey",
1515
- "nullable": true
1516
- }
1517
- },
1518
- "required": [
1519
- "organizationId",
1520
- "name",
1521
- "steps"
1522
- ],
1523
- "additionalProperties": true
1524
- },
1525
- "JourneyCreationRequestV2": {
1526
- "type": "object",
1527
- "properties": {
1528
- "journeyId": {
1529
- "type": "string"
1530
- },
1531
- "brandId": {
1532
- "type": "string"
1533
- },
1534
- "name": {
1535
- "type": "string"
1536
- },
1537
- "steps": {
1538
- "type": "array",
1539
- "items": {
1540
- "type": "object",
1541
- "additionalProperties": false,
1542
- "properties": {
1543
- "showStepName": {
1544
- "type": "boolean",
1545
- "nullable": true
1546
- },
1547
- "title": {
1548
- "type": "string",
1549
- "nullable": true
1550
- },
1551
- "subTitle": {
1552
- "type": "string",
1553
- "nullable": true
1554
- },
1555
- "showStepSubtitle": {
1556
- "type": "boolean",
1557
- "nullable": true
1558
- },
1559
- "showStepper": {
1560
- "type": "boolean",
1561
- "nullable": true
1562
- },
1563
- "showStepperLabels": {
1564
- "type": "boolean",
1565
- "nullable": true
1566
- },
1567
- "hideNextButton": {
1568
- "type": "boolean",
1569
- "nullable": true
1570
- },
1571
- "name": {
1572
- "type": "string"
1573
- },
1574
- "stepId": {
1575
- "type": "string"
1576
- },
1577
- "schema": {},
1578
- "uischema": {},
1579
- "maxWidth": {
1580
- "type": "string",
1581
- "enum": [
1582
- "small",
1583
- "medium",
1584
- "large",
1585
- "extra large"
1586
- ]
1587
- }
1588
- },
1589
- "required": [
1590
- "name",
1591
- "schema",
1592
- "uischema"
1593
- ]
1594
- }
1595
- },
1596
- "design": {
1597
- "type": "object",
1598
- "properties": {
1599
- "logoUrl": {
1600
- "type": "string",
1601
- "nullable": true
1602
- },
1603
- "theme": {
1604
- "type": "object",
1605
- "additionalProperties": {}
1606
- },
1607
- "designTokens": {
1608
- "type": "object"
1609
- }
1610
- },
1611
- "additionalProperties": false
1612
- },
1613
- "rules": {
1614
- "type": "array",
1615
- "items": {
1616
- "type": "object",
1617
- "properties": {
1618
- "type": {
1619
- "type": "string",
1620
- "enum": [
1621
- "inject",
1622
- "injectWithKey"
1623
- ]
1624
- },
1625
- "sourceType": {
1626
- "type": "string",
1627
- "enum": [
1628
- "journey",
1629
- "step",
1630
- "block"
1631
- ]
1632
- },
1633
- "source": {
1634
- "type": "string"
1635
- },
1636
- "target": {
1637
- "type": "string"
1638
- }
1639
- },
1640
- "required": [
1641
- "type",
1642
- "sourceType",
1643
- "source",
1644
- "target"
1645
- ],
1646
- "additionalProperties": false
1647
- }
1648
- },
1649
- "logics": {
1650
- "type": "array",
1651
- "items": {
1652
- "type": "object",
1653
- "properties": {
1654
- "autoGeneratedId": {
1655
- "type": "string"
1656
- },
1657
- "conditions": {
1658
- "type": "array",
1659
- "items": {
1660
- "type": "string"
1661
- }
1662
- },
1663
- "actions": {
1664
- "type": "array",
1665
- "items": {
1666
- "type": "string"
1667
- }
1668
- }
1669
- },
1670
- "required": [
1671
- "conditions",
1672
- "actions"
1673
- ],
1674
- "additionalProperties": false
1675
- }
1676
- },
1677
- "logicsV4": {
1678
- "type": "object",
1679
- "additionalProperties": {
1680
- "type": "object",
1681
- "properties": {
1682
- "id": {
1683
- "type": "string",
1684
- "format": "uuid",
1685
- "description": "Unique identifier for logic. Use uuidv7"
1686
- },
1687
- "protected": {
1688
- "type": "boolean",
1689
- "description": "If true, logic can't be manipulated by the configuring user"
1690
- },
1691
- "action": {
1692
- "type": "string",
1693
- "description": "Indicates which action to take in case logic evaluates to true"
1694
- },
1695
- "triggeredOn": {
1696
- "type": "string",
1697
- "description": "Indicates when the logic should be evaluated"
1698
- },
1699
- "conditions": {
1700
- "type": "array",
1701
- "items": {
1702
- "type": "array",
1703
- "items": {
1704
- "type": "object",
1705
- "properties": {
1706
- "operator": {
1707
- "type": "string",
1708
- "description": "Operator to be applied between the fact value and the value"
1709
- },
1710
- "functionName": {
1711
- "type": "string",
1712
- "description": "If operator is a custom function, this needs to be provided"
1713
- },
1714
- "fact": {
1715
- "type": "object",
1716
- "properties": {
1717
- "id": {
1718
- "type": "string",
1719
- "format": "uuid",
1720
- "description": "Unique identifier for a fact"
1721
- },
1722
- "referenceType": {
1723
- "type": "string",
1724
- "description": "Indicates reference type (block or context parameter)"
1725
- },
1726
- "referenceId": {
1727
- "type": "string",
1728
- "description": "Id of the reference"
1729
- },
1730
- "path": {
1731
- "type": "string",
1732
- "description": "Path to a property. Used if only part of the value is needed"
1733
- },
1734
- "meaning": {
1735
- "type": "string",
1736
- "description": "If path is a reference, indicates the intention of it"
1737
- }
1738
- }
1739
- },
1740
- "value": {
1741
- "oneOf": [
1742
- {
1743
- "type": "string"
1744
- },
1745
- {
1746
- "type": "number"
1747
- },
1748
- {
1749
- "type": "boolean"
1750
- },
1751
- {
1752
- "type": "object"
1753
- },
1754
- {
1755
- "type": "array",
1756
- "items": {}
1757
- }
1758
- ]
1759
- },
1760
- "args": {
1761
- "type": "object"
1762
- }
1763
- }
1764
- }
1765
- }
1766
- },
1767
- "settings": {
1768
- "type": "object",
1769
- "description": "Logic specific settings. Will vary by type of logic"
1770
- }
1771
- }
1772
- }
1773
- },
1774
- "contextSchema": {
1775
- "type": "array",
1776
- "items": {
1777
- "type": "object",
1778
- "properties": {
1779
- "id": {
1780
- "type": "string",
1781
- "format": "uuid",
1782
- "description": "Unique identifier for the context schema item"
1783
- },
1784
- "type": {
1785
- "type": "string",
1786
- "description": "Type of the parameter. It could be either an entity slug, or a text"
1787
- },
1788
- "paramKey": {
1789
- "type": "string",
1790
- "description": "Expected key to be received in the context"
1791
- },
1792
- "isRequired": {
1793
- "type": "boolean",
1794
- "description": "Indicates if a value is expected to be provided"
1795
- },
1796
- "shouldLoadEntity": {
1797
- "type": "boolean",
1798
- "description": "If type is not text, we can instruct the journey to fetch the entity id we receive as value"
1799
- }
1800
- },
1801
- "required": [
1802
- "paramKey",
1803
- "type"
1804
- ],
1805
- "additionalProperties": false
1806
- }
1807
- },
1808
- "journey_type": {
1809
- "type": "string",
1810
- "description": "Journey Template",
1811
- "example": "Sales template (Premium)"
1812
- },
1813
- "protected": {
1814
- "type": "boolean",
1815
- "description": "If true, journey is displayed in read-only mode"
1816
- },
1817
- "settings": {
1818
- "type": "object",
1819
- "properties": {
1820
- "embedOptions": {
1821
- "type": "object",
1822
- "properties": {
1823
- "mode": {
1824
- "type": "string",
1825
- "enum": [
1826
- "full-screen",
1827
- "inline"
1828
- ]
1829
- },
1830
- "lang": {
1831
- "type": "string",
1832
- "enum": [
1833
- "de",
1834
- "en",
1835
- "fr"
1836
- ]
1837
- },
1838
- "width": {
1839
- "type": "string"
1840
- },
1841
- "topBar": {
1842
- "type": "boolean"
1843
- },
1844
- "scrollToTop": {
1845
- "type": "boolean"
1846
- },
1847
- "button": {
1848
- "type": "object",
1849
- "properties": {
1850
- "text": {
1851
- "type": "string",
1852
- "nullable": true
1853
- },
1854
- "align": {
1855
- "type": "string",
1856
- "enum": [
1857
- "left",
1858
- "center",
1859
- "right"
1860
- ]
1861
- }
1862
- }
1863
- }
1864
- }
1865
- },
1866
- "safeModeAutomation": {
1867
- "type": "boolean"
1868
- },
1869
- "designId": {
1870
- "type": "string"
1871
- },
1872
- "entityId": {
1873
- "type": "string",
1874
- "nullable": true
1875
- },
1876
- "mappingsAutomationId": {
1877
- "type": "string"
1878
- },
1879
- "templateId": {
1880
- "type": "string"
1881
- },
1882
- "targetedCustomer": {
1883
- "type": "string"
1884
- },
1885
- "description": {
1886
- "type": "string",
1887
- "nullable": true
1888
- },
1889
- "publicToken": {
1890
- "type": "string",
1891
- "nullable": true
1892
- },
1893
- "runtimeEntities": {
1894
- "type": "array",
1895
- "items": {
1896
- "type": "string",
1897
- "enum": [
1898
- "ORDER",
1899
- "OPPORTUNITY"
1900
- ]
1901
- }
1902
- },
1903
- "filePurposes": {
1904
- "type": "array",
1905
- "items": {
1906
- "type": "string"
1907
- }
1908
- },
1909
- "entityTags": {
1910
- "type": "array",
1911
- "items": {
1912
- "type": "string"
1913
- }
1914
- },
1915
- "addressSuggestionsFileUrl": {
1916
- "type": "string",
1917
- "nullable": true,
1918
- "deprecated": true,
1919
- "description": "@deprecated Use addressSuggestionsFileId instead"
1920
- },
1921
- "addressSuggestionsFileId": {
1922
- "type": "string",
1923
- "nullable": true
1924
- },
1925
- "addressSuggestionsCountryCode": {
1926
- "type": "string",
1927
- "nullable": true,
1928
- "description": "Country code for address format (e.g. DE, AT, CH, LU)"
1929
- },
1930
- "addressSuggestionsEnableAutoComplete": {
1931
- "type": "boolean",
1932
- "description": "Whether address auto-complete is enabled"
1933
- },
1934
- "addressSuggestionsSource": {
1935
- "type": "array",
1936
- "items": {
1937
- "type": "string"
1938
- },
1939
- "description": "Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)"
1940
- },
1941
- "addressSuggestionsEnableFreeText": {
1942
- "type": "boolean",
1943
- "description": "Whether free text input is allowed when auto-complete is on"
1944
- },
1945
- "useNewDesign": {
1946
- "type": "boolean",
1947
- "deprecated": true,
1948
- "description": "This property is deprecated and will be removed in a future version"
1949
- },
1950
- "thirdPartyCookies": {
1951
- "type": "boolean",
1952
- "description": "If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent."
1953
- },
1954
- "accessMode": {
1955
- "type": "string",
1956
- "enum": [
1957
- "PUBLIC",
1958
- "PRIVATE"
1959
- ]
1960
- },
1961
- "enableDarkMode": {
1962
- "type": "boolean",
1963
- "description": "If true, the journey shows an icon to toggle dark mode"
1964
- }
1965
- },
1966
- "additionalProperties": false
1967
- },
1968
- "validationRules": {
1969
- "$ref": "#/components/schemas/ValidationRuleRef"
1970
- },
1971
- "_manifest": {
1972
- "type": "array",
1973
- "description": "Manifest/Blueprint ID used to create/update the entity",
1974
- "items": {
1975
- "type": "string",
1976
- "format": "uuid",
1977
- "example": "123e4567-e89b-12d3-a456-426614174000"
1978
- }
1979
- }
1980
- },
1981
- "required": [
1982
- "name",
1983
- "steps"
1984
- ]
1985
- },
1986
- "SearchJourneysQueryRequest": {
1987
- "type": "object",
1988
- "properties": {
1989
- "q": {
1990
- "type": "string",
1991
- "description": "Lucene query syntax\nSee https://lucene.apache.org/core/2_9_4/queryparsersyntax.html ; https://www.elastic.co/guide/en/kibana/current/lucene-query.html\n",
1992
- "example": "_tags:*Flex*",
1993
- "default": "*"
1994
- },
1995
- "from": {
1996
- "type": "integer",
1997
- "description": "The offset of the first result to return.\nSee https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html\n",
1998
- "example": 0,
1999
- "default": 0
2000
- },
2001
- "size": {
2002
- "type": "integer",
2003
- "description": "The maximum number of results to return.\nSee https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html\n",
2004
- "example": 25,
2005
- "default": 25
2006
- },
2007
- "sort": {
2008
- "type": "string",
2009
- "description": "The sort order. Follows Lucene syntax.\n",
2010
- "example": "_created_at:desc",
2011
- "default": "_created_at:desc"
2012
- }
2013
- }
2014
- },
2015
- "SearchJourneysResponse": {
2016
- "type": "object",
2017
- "properties": {
2018
- "hits": {
2019
- "type": "number",
2020
- "description": "The total number of hits.\n",
2021
- "example": 1
2022
- },
2023
- "results": {
2024
- "type": "array",
2025
- "description": "The results.\n",
2026
- "items": {
2027
- "type": "object",
2028
- "properties": {
2029
- "_id": {
2030
- "type": "string",
2031
- "description": "Journey Entity ID",
2032
- "format": "uuid",
2033
- "example": "e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8"
2034
- },
2035
- "_schema": {
2036
- "type": "string",
2037
- "description": "Entity Schema (journey always in this case)",
2038
- "example": "journey"
2039
- },
2040
- "_title": {
2041
- "type": "string",
2042
- "description": "Journey Entity Title",
2043
- "example": "Journey Entity Title"
2044
- },
2045
- "_org": {
2046
- "type": "string",
2047
- "description": "Organization ID",
2048
- "example": "739224"
2049
- },
2050
- "_created_at": {
2051
- "type": "string",
2052
- "format": "date-time",
2053
- "example": "2020-01-01T00:00:00.000Z"
2054
- },
2055
- "_updated_at": {
2056
- "type": "string",
2057
- "format": "date-time",
2058
- "example": "2020-01-01T00:00:00.000Z"
2059
- },
2060
- "_tags": {
2061
- "type": "array",
2062
- "items": {
2063
- "type": "string",
2064
- "example": "Flex"
2065
- }
2066
- },
2067
- "_manifest": {
2068
- "type": "array",
2069
- "description": "Manifest ID used to create/update the entity",
2070
- "items": {
2071
- "type": "string",
2072
- "format": "uuid",
2073
- "example": "123e4567-e89b-12d3-a456-426614174000"
2074
- }
2075
- },
2076
- "journey_name": {
2077
- "type": "string",
2078
- "description": "Journey Name",
2079
- "example": "Journey Name"
2080
- },
2081
- "journey_id": {
2082
- "type": "string",
2083
- "format": "uuid",
2084
- "description": "Journey config ID",
2085
- "example": "de7df470-253e-11ed-9174-116b8a718c0a"
2086
- },
2087
- "journey_type": {
2088
- "type": "string",
2089
- "description": "Journey Template",
2090
- "example": "Sales template"
2091
- },
2092
- "design": {
2093
- "type": "string",
2094
- "description": "Journey Design Name",
2095
- "example": "Design EPILOT"
2096
- },
2097
- "created_by": {
2098
- "type": "array",
2099
- "items": {
2100
- "type": "object",
2101
- "properties": {
2102
- "id": {
2103
- "type": "string",
2104
- "description": "User ID",
2105
- "example": "12345"
2106
- }
2107
- }
2108
- }
2109
- },
2110
- "journey_version": {
2111
- "type": "string",
2112
- "description": "Journey Version",
2113
- "enum": [
2114
- "Flex"
2115
- ]
2116
- }
2117
- }
2118
- }
2119
- }
2120
- }
2121
- },
2122
- "Journey": {
2123
- "allOf": [
2124
- {
2125
- "$ref": "#/components/schemas/JourneyCreationRequest"
2126
- },
2127
- {
2128
- "$ref": "#/components/schemas/JourneyAuditInfo"
2129
- },
2130
- {
2131
- "$ref": "#/components/schemas/JourneyFeatureFlags"
2132
- }
2133
- ]
2134
- },
2135
- "JourneyFeatureFlags": {
2136
- "type": "object",
2137
- "properties": {
2138
- "featureFlags": {
2139
- "type": "object",
2140
- "additionalProperties": true
2141
- }
2142
- }
2143
- },
2144
- "JourneyAuditInfo": {
2145
- "type": "object",
2146
- "properties": {
2147
- "createdAt": {
2148
- "type": "string"
2149
- },
2150
- "lastModifiedAt": {
2151
- "type": "string"
2152
- },
2153
- "deletedAt": {
2154
- "type": "string"
2155
- },
2156
- "version": {
2157
- "type": "number"
2158
- },
2159
- "revisions": {
2160
- "type": "number"
2161
- }
2162
- },
2163
- "required": [
2164
- "createdAt",
2165
- "lastModifiedAt",
2166
- "version",
2167
- "revisions"
2168
- ]
2169
- },
2170
- "JourneyValidationResponse": {
2171
- "type": "object",
2172
- "properties": {
2173
- "valid": {
2174
- "type": "boolean",
2175
- "description": "Whether the journey configuration is valid"
2176
- },
2177
- "errors": {
2178
- "type": "array",
2179
- "items": {
2180
- "type": "object",
2181
- "properties": {
2182
- "type": {
2183
- "type": "string",
2184
- "description": "Pattern type (e.g. PatternA_DotsInStepId)"
2185
- },
2186
- "severity": {
2187
- "type": "string",
2188
- "enum": [
2189
- "critical",
2190
- "high",
2191
- "medium",
2192
- "low"
2193
- ]
2194
- },
2195
- "message": {
2196
- "type": "string"
2197
- },
2198
- "affectedStepIds": {
2199
- "type": "array",
2200
- "items": {
2201
- "type": "string"
2202
- }
2203
- },
2204
- "count": {
2205
- "type": "integer"
2206
- },
2207
- "autoFix": {
2208
- "type": "object",
2209
- "properties": {
2210
- "feasible": {
2211
- "type": "boolean"
2212
- },
2213
- "confidence": {
2214
- "type": "string",
2215
- "enum": [
2216
- "high",
2217
- "medium",
2218
- "low"
2219
- ]
2220
- },
2221
- "reason": {
2222
- "type": "string"
2223
- },
2224
- "details": {
2225
- "type": "string"
2226
- }
2227
- }
2228
- }
2229
- }
2230
- },
2231
- "description": "List of detected validation errors"
2232
- },
2233
- "warnings": {
2234
- "type": "array",
2235
- "items": {
2236
- "type": "object",
2237
- "properties": {
2238
- "type": {
2239
- "type": "string"
2240
- },
2241
- "message": {
2242
- "type": "string"
2243
- }
2244
- }
2245
- },
2246
- "description": "List of warnings (non-critical issues)"
2247
- }
2248
- },
2249
- "required": [
2250
- "valid",
2251
- "errors"
2252
- ]
2253
- },
2254
- "JourneyValidationError": {
2255
- "type": "object",
2256
- "properties": {
2257
- "error": {
2258
- "type": "string",
2259
- "example": "ValidationError",
2260
- "description": "Error type identifier"
2261
- },
2262
- "message": {
2263
- "type": "string",
2264
- "example": "Journey configuration validation failed",
2265
- "description": "High-level error message"
2266
- },
2267
- "details": {
2268
- "type": "array",
2269
- "items": {
2270
- "type": "object",
2271
- "properties": {
2272
- "pattern": {
2273
- "type": "string",
2274
- "description": "Validation pattern that failed"
2275
- },
2276
- "severity": {
2277
- "type": "string",
2278
- "enum": [
2279
- "critical",
2280
- "high",
2281
- "medium",
2282
- "low"
2283
- ]
2284
- },
2285
- "message": {
2286
- "type": "string",
2287
- "description": "Detailed error message"
2288
- },
2289
- "count": {
2290
- "type": "integer",
2291
- "description": "Number of issues found"
2292
- }
2293
- }
2294
- },
2295
- "description": "Detailed validation errors for each pattern that failed"
2296
- }
2297
- },
2298
- "required": [
2299
- "error",
2300
- "message",
2301
- "details"
2302
- ]
2303
- },
2304
- "S3Reference": {
2305
- "type": "object",
2306
- "properties": {
2307
- "bucket": {
2308
- "type": "string",
2309
- "example": "document-api-prod"
2310
- },
2311
- "key": {
2312
- "type": "string",
2313
- "example": "uploads/my-template.pdf"
2314
- }
2315
- },
2316
- "required": [
2317
- "bucket",
2318
- "key"
2319
- ]
2320
- },
2321
- "TemplateSettings": {
2322
- "type": "object",
2323
- "description": "Template Settings for document generation",
2324
- "properties": {
2325
- "custom_margins": {
2326
- "description": "Custom margins for the document",
2327
- "type": "object",
2328
- "properties": {
2329
- "top": {
2330
- "description": "Top margin in cm",
2331
- "type": "number",
2332
- "example": 2.54
2333
- },
2334
- "bottom": {
2335
- "description": "Bottom margin in cm",
2336
- "type": "number",
2337
- "example": 2.54
2338
- }
2339
- }
2340
- },
2341
- "suggested_margins": {
2342
- "description": "Suggested margins for the document",
2343
- "type": "object",
2344
- "properties": {
2345
- "top": {
2346
- "description": "Top margin in cm",
2347
- "type": "number",
2348
- "example": 2.54
2349
- },
2350
- "bottom": {
2351
- "description": "Bottom margin in cm",
2352
- "type": "number",
2353
- "example": 2.54
2354
- }
2355
- }
2356
- },
2357
- "display_margin_guidelines": {
2358
- "description": "Display margin guidelines (applicable to partial generation only)",
2359
- "type": "boolean",
2360
- "example": true
2361
- },
2362
- "enable_data_table_margin_autofix": {
2363
- "description": "Enable data table margin autofix",
2364
- "type": "boolean",
2365
- "example": false
2366
- },
2367
- "template_with_datatable": {
2368
- "description": "A flag that indicates whether the template has 1 or more data tables in it",
2369
- "type": "boolean",
2370
- "example": false
2371
- },
2372
- "enabled_template_settings_persistence": {
2373
- "description": "Enables the persistance of template settings",
2374
- "type": "boolean",
2375
- "example": false
2376
- },
2377
- "misconfigured_margins": {
2378
- "description": "An indication that the page margins are misconfigured",
2379
- "type": "boolean",
2380
- "example": false
2381
- },
2382
- "file_entity_id": {
2383
- "description": "The file entity id, used when persisting a new template version with updated settings",
2384
- "type": "string",
2385
- "format": "uuid",
2386
- "example": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
2387
- }
2388
- }
2389
- },
2390
- "GenerateDocumentResponse": {
2391
- "type": "object",
2392
- "properties": {
2393
- "job_id": {
2394
- "type": "string",
2395
- "format": "uuid"
2396
- },
2397
- "job_status": {
2398
- "description": "Status of the job",
2399
- "type": "string",
2400
- "enum": [
2401
- "STARTED",
2402
- "PROCESSING",
2403
- "SUCCESS",
2404
- "FAILED"
2405
- ]
2406
- },
2407
- "message": {
2408
- "description": "A message explaining the progress",
2409
- "type": "string"
2410
- },
2411
- "pdf_output": {
2412
- "type": "object",
2413
- "properties": {
2414
- "preview_url": {
2415
- "description": "Pre-signed S3 GET URL for PDF preview",
2416
- "type": "string",
2417
- "example": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf"
2418
- },
2419
- "output_document": {
2420
- "type": "object",
2421
- "properties": {
2422
- "filename": {
2423
- "description": "Generated document filename for PDF",
2424
- "type": "string",
2425
- "example": "my-template-OR-001.pdf"
2426
- },
2427
- "s3ref": {
2428
- "$ref": "#/components/schemas/S3Reference"
2429
- }
2430
- },
2431
- "example": {
2432
- "s3ref": {
2433
- "bucket": "document-api-preview-prod",
2434
- "key": "preview/my-template.pdf"
2435
- }
2436
- }
2437
- }
2438
- }
2439
- },
2440
- "docx_output": {
2441
- "type": "object",
2442
- "properties": {
2443
- "preview_url": {
2444
- "description": "Pre-signed S3 GET URL for DOCX preview",
2445
- "type": "string",
2446
- "example": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx"
2447
- },
2448
- "output_document": {
2449
- "type": "object",
2450
- "properties": {
2451
- "filename": {
2452
- "description": "Generated document filename for DOCX",
2453
- "type": "string",
2454
- "example": "my-template-OR-001.docx"
2455
- },
2456
- "s3ref": {
2457
- "$ref": "#/components/schemas/S3Reference"
2458
- }
2459
- },
2460
- "example": {
2461
- "s3ref": {
2462
- "bucket": "document-api-preview-prod",
2463
- "key": "preview/my-template.docx"
2464
- }
2465
- }
2466
- }
2467
- }
2468
- },
2469
- "variable_payload": {
2470
- "description": "List of variables and its corresponding replaced values from the document template",
2471
- "type": "object",
2472
- "properties": {
2473
- "additionalProperties": {
2474
- "type": "string"
2475
- }
2476
- }
2477
- },
2478
- "template_settings": {
2479
- "$ref": "#/components/schemas/TemplateSettings"
2480
- }
2481
- }
2482
- },
2483
- "GenerateDocumentRequest": {
2484
- "type": "object",
2485
- "properties": {
2486
- "file_id": {
2487
- "description": "Entity id for the template being used",
2488
- "type": "string",
2489
- "example": "1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p"
2490
- },
2491
- "context_data": {
2492
- "description": "Custom values for variables in the template. Takes the higher precedence than others.",
2493
- "type": "object",
2494
- "properties": {
2495
- "additionalProperties": {
2496
- "type": "string"
2497
- }
2498
- }
2499
- },
2500
- "language": {
2501
- "description": "Language code for the document",
2502
- "type": "string",
2503
- "example": "de"
2504
- }
2505
- },
2506
- "required": [
2507
- "file_id",
2508
- "context_data"
2509
- ]
2510
- },
2511
- "GetSettingsForJourney": {
2512
- "type": "object",
2513
- "properties": {
2514
- "organizationId": {
2515
- "type": "string",
2516
- "description": "ID of an organization in epilot platform",
2517
- "example": "739224"
2518
- },
2519
- "canary": {
2520
- "type": "boolean",
2521
- "description": "The canary flag controls update frequency of epilot application: when true, customers receive continuous updates; when false, they only get updates with new version releases.",
2522
- "example": true
2523
- },
2524
- "thirdPartyCookies": {
2525
- "type": "boolean",
2526
- "description": "When set to false, third-party cookies and resources should be completely disabled to comply with GDPR regulations.",
2527
- "example": true
2528
- }
2529
- }
2530
- },
2531
- "ButtonOption": {
2532
- "type": "object",
2533
- "description": "A single button option data",
2534
- "properties": {
2535
- "value": {
2536
- "type": "string",
2537
- "example": "Button Hidden Value",
2538
- "description": "The value of the button"
2539
- },
2540
- "label": {
2541
- "type": "string",
2542
- "example": "Button Label",
2543
- "description": "The label of the button"
2544
- }
2545
- }
2546
- },
2547
- "ValidationRuleRef": {
2548
- "type": "object",
2549
- "description": "References to validation rules organized by blocks and fields.\nMaps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).\n",
2550
- "additionalProperties": {
2551
- "oneOf": [
2552
- {
2553
- "type": "string",
2554
- "description": "Rule ID for block-level validation"
2555
- },
2556
- {
2557
- "$ref": "#/components/schemas/RuleRef"
2558
- }
2559
- ]
2560
- },
2561
- "example": {
2562
- "block1": "rule123",
2563
- "block2": {
2564
- "field1": "rule456",
2565
- "field2": "rule789"
2566
- }
2567
- }
2568
- },
2569
- "RuleRef": {
2570
- "type": "object",
2571
- "description": "Field-level rule references within a block.\nMaps field names to rule IDs.\n",
2572
- "additionalProperties": {
2573
- "type": "string",
2574
- "description": "Rule ID for field-level validation"
2575
- },
2576
- "example": {
2577
- "firstName": "rule123",
2578
- "lastName": "rule456",
2579
- "email": "rule789"
2580
- }
2581
- }
2582
- },
2583
- "securitySchemes": {
2584
- "EpilotAuth": {
2585
- "type": "http",
2586
- "scheme": "bearer",
2587
- "description": "Epilot Authorization Bearer Token - public access token / user token",
2588
- "bearerFormat": "JWT"
2589
- },
2590
- "PortalAuth": {
2591
- "type": "http",
2592
- "scheme": "bearer",
2593
- "description": "Portal Authorization Bearer Token",
2594
- "bearerFormat": "JWT"
2595
- }
2596
- }
2597
- },
2598
- "servers": [
2599
- {
2600
- "url": "https://journey-config.sls.epilot.io"
2601
- }
2602
- ]
2603
- }