@iterable/cli 0.2.0 → 0.2.2
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.
- package/COMMANDS.md +228 -132
- package/README.md +5 -5
- package/dist/index.js +20 -11
- package/dist/index.js.map +1 -1
- package/dist/output.js +1 -1
- package/dist/output.js.map +1 -1
- package/dist/parser.d.ts +7 -3
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +34 -21
- package/dist/parser.js.map +1 -1
- package/dist/router.d.ts +3 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +135 -42
- package/dist/router.js.map +1 -1
- package/package.json +2 -2
package/COMMANDS.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Available Commands (109
|
|
1
|
+
# Available Commands (109)
|
|
2
2
|
|
|
3
3
|
All commands follow the pattern: `iterable <category> <command> [options]`
|
|
4
4
|
|
|
5
5
|
Every command also accepts `--json <data>` for raw JSON input and `--help` for usage details.
|
|
6
6
|
|
|
7
|
-
## campaigns (14
|
|
7
|
+
## campaigns (14)
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### abort
|
|
10
10
|
|
|
11
11
|
Abort a campaign that is currently running
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ iterable campaigns abort <campaignId>
|
|
|
18
18
|
|--------|------|----------|-------------|
|
|
19
19
|
| `campaignId` | number | **yes** | Campaign ID to abort |
|
|
20
20
|
|
|
21
|
-
###
|
|
21
|
+
### activate
|
|
22
22
|
|
|
23
23
|
Activate a triggered campaign
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ iterable campaigns activate <campaignId>
|
|
|
30
30
|
|--------|------|----------|-------------|
|
|
31
31
|
| `campaignId` | number | **yes** | Triggered campaign ID to activate |
|
|
32
32
|
|
|
33
|
-
###
|
|
33
|
+
### archive
|
|
34
34
|
|
|
35
35
|
Archive one or more campaigns. Scheduled/recurring campaigns will be cancelled, running campaigns will be aborted.
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ iterable campaigns archive <campaignIds...>
|
|
|
42
42
|
|--------|------|----------|-------------|
|
|
43
43
|
| `campaignIds` | number[] | **yes** | Campaign IDs to archive |
|
|
44
44
|
|
|
45
|
-
###
|
|
45
|
+
### cancel
|
|
46
46
|
|
|
47
47
|
Cancel a scheduled or recurring campaign
|
|
48
48
|
|
|
@@ -54,7 +54,7 @@ iterable campaigns cancel <campaignId>
|
|
|
54
54
|
|--------|------|----------|-------------|
|
|
55
55
|
| `campaignId` | number | **yes** | Campaign ID to cancel |
|
|
56
56
|
|
|
57
|
-
###
|
|
57
|
+
### create-blast
|
|
58
58
|
|
|
59
59
|
Create a new blast campaign from an existing template. The campaign is created without being scheduled. Use schedule to schedule it for delivery.
|
|
60
60
|
|
|
@@ -70,7 +70,7 @@ iterable campaigns create-blast --listIds <listIds...> --name <name> --templateI
|
|
|
70
70
|
| `--campaignDataFields` | json | no | A JSON object containing campaign-level data fields that are available as merge parameters (for example, {{field}}) during message rendering. These fields are available in templates, data feed URLs, and all other contexts where merge parameters are supported. Campaign-level fields are overridden by user and event data fields of the same name. |
|
|
71
71
|
| `--suppressionListIds` | number[] | no | Array of suppression list IDs |
|
|
72
72
|
|
|
73
|
-
###
|
|
73
|
+
### create-triggered
|
|
74
74
|
|
|
75
75
|
Create a new triggered campaign from an existing template. The campaign is created in Ready state and must be activated before it can send.
|
|
76
76
|
|
|
@@ -84,7 +84,7 @@ iterable campaigns create-triggered --name <name> --templateId <templateId>
|
|
|
84
84
|
| `--templateId` | number | **yes** | The ID of a template to associate with the new campaign |
|
|
85
85
|
| `--campaignDataFields` | json | no | A JSON object containing campaign-level data fields that are available as merge parameters (for example, {{field}}) during message rendering. These fields are available in templates, data feed URLs, and all other contexts where merge parameters are supported. Campaign-level fields are overridden by user and event data fields of the same name. |
|
|
86
86
|
|
|
87
|
-
###
|
|
87
|
+
### deactivate
|
|
88
88
|
|
|
89
89
|
Deactivate a triggered campaign
|
|
90
90
|
|
|
@@ -96,7 +96,7 @@ iterable campaigns deactivate <campaignId>
|
|
|
96
96
|
|--------|------|----------|-------------|
|
|
97
97
|
| `campaignId` | number | **yes** | Triggered campaign ID to deactivate |
|
|
98
98
|
|
|
99
|
-
###
|
|
99
|
+
### get
|
|
100
100
|
|
|
101
101
|
Get detailed information about a specific campaign
|
|
102
102
|
|
|
@@ -108,7 +108,7 @@ iterable campaigns get <id>
|
|
|
108
108
|
|--------|------|----------|-------------|
|
|
109
109
|
| `id` | number | **yes** | Campaign ID to retrieve |
|
|
110
110
|
|
|
111
|
-
###
|
|
111
|
+
### get-children
|
|
112
112
|
|
|
113
113
|
Get child campaigns generated by a recurring campaign
|
|
114
114
|
|
|
@@ -124,7 +124,7 @@ iterable campaigns get-children <id>
|
|
|
124
124
|
| `--pageSize` | number | no | Number of results to return per page (defaults to 20, maximum of 1000) |
|
|
125
125
|
| `--sort` | string | no | Field to sort by |
|
|
126
126
|
|
|
127
|
-
###
|
|
127
|
+
### get-metrics
|
|
128
128
|
|
|
129
129
|
Get campaign performance metrics
|
|
130
130
|
|
|
@@ -138,19 +138,23 @@ iterable campaigns get-metrics <campaignId>
|
|
|
138
138
|
| `--endDateTime` | string | no | End date for metrics (YYYY-MM-DD HH:MM:SS format) |
|
|
139
139
|
| `--startDateTime` | string | no | Start date for metrics (YYYY-MM-DD HH:MM:SS format) |
|
|
140
140
|
|
|
141
|
-
###
|
|
141
|
+
### list
|
|
142
142
|
|
|
143
143
|
Retrieve campaigns
|
|
144
144
|
|
|
145
|
+
```
|
|
146
|
+
iterable campaigns list
|
|
147
|
+
```
|
|
148
|
+
|
|
145
149
|
| Option | Type | Required | Description |
|
|
146
150
|
|--------|------|----------|-------------|
|
|
147
|
-
| `--campaignState` |
|
|
151
|
+
| `--campaignState` | `Draft` \| `Ready` \| `Scheduled` \| `Running` \| `Finished` \| `Starting` \| `Aborted` \| `Recurring` \| `Archived` | no | Filter campaigns by state |
|
|
148
152
|
| `--order` | `asc` \| `desc` | no | Sort direction (asc or desc) |
|
|
149
153
|
| `--page` | number | no | Page number (starting at 1) |
|
|
150
154
|
| `--pageSize` | number | no | Number of results to return per page (defaults to 20, maximum of 1000) |
|
|
151
155
|
| `--sort` | string | no | Field to sort by |
|
|
152
156
|
|
|
153
|
-
###
|
|
157
|
+
### schedule
|
|
154
158
|
|
|
155
159
|
Schedule an existing campaign to be sent at a specific time
|
|
156
160
|
|
|
@@ -164,7 +168,7 @@ iterable campaigns schedule <campaignId> --sendAt <sendAt>
|
|
|
164
168
|
| `--sendAt` | string | **yes** | When to send (ISO-8601 format, e.g. 2024-12-20T10:15:30Z) |
|
|
165
169
|
| `--recipientTimeZone` | json | no | Recipient timezone configuration (JSON: {defaultTimeZone, startTimeZone}) |
|
|
166
170
|
|
|
167
|
-
###
|
|
171
|
+
### send
|
|
168
172
|
|
|
169
173
|
Send an existing scheduled campaign immediately
|
|
170
174
|
|
|
@@ -176,7 +180,7 @@ iterable campaigns send <campaignId>
|
|
|
176
180
|
|--------|------|----------|-------------|
|
|
177
181
|
| `campaignId` | number | **yes** | Campaign ID to send now |
|
|
178
182
|
|
|
179
|
-
###
|
|
183
|
+
### trigger
|
|
180
184
|
|
|
181
185
|
Trigger a campaign to send to specified lists
|
|
182
186
|
|
|
@@ -193,9 +197,9 @@ iterable campaigns trigger --campaignId <campaignId> --listIds <listIds...>
|
|
|
193
197
|
| `--suppressionListIds` | number[] | no | Lists to suppress |
|
|
194
198
|
|
|
195
199
|
|
|
196
|
-
## catalogs (12
|
|
200
|
+
## catalogs (12)
|
|
197
201
|
|
|
198
|
-
###
|
|
202
|
+
### bulk-delete-items
|
|
199
203
|
|
|
200
204
|
Bulk delete catalog items by their IDs
|
|
201
205
|
|
|
@@ -208,7 +212,7 @@ iterable catalogs bulk-delete-items --catalogName <catalogName> --itemIds <itemI
|
|
|
208
212
|
| `--catalogName` | string | **yes** | Name of the catalog |
|
|
209
213
|
| `--itemIds` | string[] | **yes** | Array of item IDs to delete |
|
|
210
214
|
|
|
211
|
-
###
|
|
215
|
+
### create
|
|
212
216
|
|
|
213
217
|
Create a new catalog
|
|
214
218
|
|
|
@@ -220,7 +224,7 @@ iterable catalogs create <catalogName>
|
|
|
220
224
|
|--------|------|----------|-------------|
|
|
221
225
|
| `catalogName` | string | **yes** | Catalog name (alphanumeric and dashes only, max 255 chars) |
|
|
222
226
|
|
|
223
|
-
###
|
|
227
|
+
### delete
|
|
224
228
|
|
|
225
229
|
Delete a catalog
|
|
226
230
|
|
|
@@ -232,7 +236,7 @@ iterable catalogs delete <catalogName>
|
|
|
232
236
|
|--------|------|----------|-------------|
|
|
233
237
|
| `catalogName` | string | **yes** | Name of the catalog to delete |
|
|
234
238
|
|
|
235
|
-
###
|
|
239
|
+
### delete-item
|
|
236
240
|
|
|
237
241
|
Delete a specific catalog item by ID
|
|
238
242
|
|
|
@@ -245,7 +249,7 @@ iterable catalogs delete-item --catalogName <catalogName> --itemId <itemId>
|
|
|
245
249
|
| `--catalogName` | string | **yes** | Name of the catalog |
|
|
246
250
|
| `--itemId` | string | **yes** | ID of the catalog item to delete |
|
|
247
251
|
|
|
248
|
-
###
|
|
252
|
+
### get-field-mappings
|
|
249
253
|
|
|
250
254
|
Get field mappings and data types for a catalog
|
|
251
255
|
|
|
@@ -257,7 +261,7 @@ iterable catalogs get-field-mappings <catalogName>
|
|
|
257
261
|
|--------|------|----------|-------------|
|
|
258
262
|
| `catalogName` | string | **yes** | Name of the catalog |
|
|
259
263
|
|
|
260
|
-
###
|
|
264
|
+
### get-item
|
|
261
265
|
|
|
262
266
|
Get a specific catalog item by ID
|
|
263
267
|
|
|
@@ -270,7 +274,7 @@ iterable catalogs get-item --catalogName <catalogName> --itemId <itemId>
|
|
|
270
274
|
| `--catalogName` | string | **yes** | Name of the catalog |
|
|
271
275
|
| `--itemId` | string | **yes** | ID of the catalog item to retrieve |
|
|
272
276
|
|
|
273
|
-
###
|
|
277
|
+
### get-items
|
|
274
278
|
|
|
275
279
|
Get items from a catalog with optional pagination and sorting
|
|
276
280
|
|
|
@@ -286,16 +290,20 @@ iterable catalogs get-items <catalogName>
|
|
|
286
290
|
| `--pageSize` | number | no | Number of results per page (defaults to 10, max 1000) |
|
|
287
291
|
| `--sortAscending` | boolean | no | Sort results by ascending (defaults to false) |
|
|
288
292
|
|
|
289
|
-
###
|
|
293
|
+
### list
|
|
290
294
|
|
|
291
295
|
Get list of all catalogs with optional pagination
|
|
292
296
|
|
|
297
|
+
```
|
|
298
|
+
iterable catalogs list
|
|
299
|
+
```
|
|
300
|
+
|
|
293
301
|
| Option | Type | Required | Description |
|
|
294
302
|
|--------|------|----------|-------------|
|
|
295
303
|
| `--page` | number | no | Page number (starting at 1) |
|
|
296
304
|
| `--pageSize` | number | no | Number of results per page (max 100) |
|
|
297
305
|
|
|
298
|
-
###
|
|
306
|
+
### partial-update-item
|
|
299
307
|
|
|
300
308
|
Partial update (PATCH) a catalog item - updates only specified fields
|
|
301
309
|
|
|
@@ -309,7 +317,7 @@ iterable catalogs partial-update-item --catalogName <catalogName> --itemId <item
|
|
|
309
317
|
| `--itemId` | string | **yes** | ID of the catalog item |
|
|
310
318
|
| `--update` | json | **yes** | Fields to update |
|
|
311
319
|
|
|
312
|
-
###
|
|
320
|
+
### replace-item
|
|
313
321
|
|
|
314
322
|
Replace (PUT) a catalog item - replaces the entire item with new value
|
|
315
323
|
|
|
@@ -323,7 +331,7 @@ iterable catalogs replace-item --catalogName <catalogName> --itemId <itemId> --v
|
|
|
323
331
|
| `--itemId` | string | **yes** | ID of the catalog item |
|
|
324
332
|
| `--value` | json | **yes** | New value for the item |
|
|
325
333
|
|
|
326
|
-
###
|
|
334
|
+
### update-field-mappings
|
|
327
335
|
|
|
328
336
|
Update catalog field mappings (data types)
|
|
329
337
|
|
|
@@ -336,7 +344,7 @@ iterable catalogs update-field-mappings <catalogName> --mappingsUpdates <mapping
|
|
|
336
344
|
| `catalogName` | string | **yes** | Name of the catalog |
|
|
337
345
|
| `--mappingsUpdates` | string[] | **yes** | Field mappings to update |
|
|
338
346
|
|
|
339
|
-
###
|
|
347
|
+
### update-items
|
|
340
348
|
|
|
341
349
|
Update catalog items
|
|
342
350
|
|
|
@@ -350,9 +358,9 @@ iterable catalogs update-items <catalogName> --items <items...>
|
|
|
350
358
|
| `--items` | json[] | **yes** | Catalog items to update |
|
|
351
359
|
|
|
352
360
|
|
|
353
|
-
## events (4
|
|
361
|
+
## events (4)
|
|
354
362
|
|
|
355
|
-
###
|
|
363
|
+
### get-by-email
|
|
356
364
|
|
|
357
365
|
Get event history for a user by email address
|
|
358
366
|
|
|
@@ -365,7 +373,7 @@ iterable events get-by-email <email>
|
|
|
365
373
|
| `email` | string | **yes** | User email address |
|
|
366
374
|
| `--limit` | number | no | Maximum number of events to return |
|
|
367
375
|
|
|
368
|
-
###
|
|
376
|
+
### get-by-userid
|
|
369
377
|
|
|
370
378
|
Get event history for a user by user ID
|
|
371
379
|
|
|
@@ -378,7 +386,7 @@ iterable events get-by-userid <userId>
|
|
|
378
386
|
| `userId` | string | **yes** | User ID to get events for |
|
|
379
387
|
| `--limit` | number | no | Maximum number of events to return (default: 20) |
|
|
380
388
|
|
|
381
|
-
###
|
|
389
|
+
### track
|
|
382
390
|
|
|
383
391
|
Track a custom event for a user
|
|
384
392
|
|
|
@@ -398,7 +406,7 @@ iterable events track <eventName>
|
|
|
398
406
|
| `--templateId` | number | no | |
|
|
399
407
|
| `--userId` | string | no | |
|
|
400
408
|
|
|
401
|
-
###
|
|
409
|
+
### track-bulk
|
|
402
410
|
|
|
403
411
|
Track multiple events in a single request for better performance
|
|
404
412
|
|
|
@@ -411,9 +419,9 @@ iterable events track-bulk --events <events...>
|
|
|
411
419
|
| `--events` | json[] | **yes** | |
|
|
412
420
|
|
|
413
421
|
|
|
414
|
-
## experiments (4
|
|
422
|
+
## experiments (4)
|
|
415
423
|
|
|
416
|
-
###
|
|
424
|
+
### get
|
|
417
425
|
|
|
418
426
|
Get detailed information about a specific experiment by ID
|
|
419
427
|
|
|
@@ -425,10 +433,14 @@ iterable experiments get <experimentId>
|
|
|
425
433
|
|--------|------|----------|-------------|
|
|
426
434
|
| `experimentId` | number | **yes** | Experiment ID |
|
|
427
435
|
|
|
428
|
-
###
|
|
436
|
+
### get-metrics
|
|
429
437
|
|
|
430
438
|
Get experiment metrics for A/B testing analysis
|
|
431
439
|
|
|
440
|
+
```
|
|
441
|
+
iterable experiments get-metrics
|
|
442
|
+
```
|
|
443
|
+
|
|
432
444
|
| Option | Type | Required | Description |
|
|
433
445
|
|--------|------|----------|-------------|
|
|
434
446
|
| `--campaignId` | number[] | no | Campaign IDs whose experiments to export (can specify multiple) |
|
|
@@ -436,7 +448,7 @@ Get experiment metrics for A/B testing analysis
|
|
|
436
448
|
| `--experimentId` | number[] | no | Experiment IDs to export (can specify multiple) |
|
|
437
449
|
| `--startDateTime` | string | no | Export starting from (ISO 8601 format) |
|
|
438
450
|
|
|
439
|
-
###
|
|
451
|
+
### get-variants
|
|
440
452
|
|
|
441
453
|
Get variant content for an experiment, including subject lines, preheaders, HTML source, and plain text
|
|
442
454
|
|
|
@@ -448,10 +460,14 @@ iterable experiments get-variants <experimentId>
|
|
|
448
460
|
|--------|------|----------|-------------|
|
|
449
461
|
| `experimentId` | number | **yes** | Experiment ID |
|
|
450
462
|
|
|
451
|
-
###
|
|
463
|
+
### list
|
|
452
464
|
|
|
453
465
|
List experiments with optional filtering by campaign, status, and date range
|
|
454
466
|
|
|
467
|
+
```
|
|
468
|
+
iterable experiments list
|
|
469
|
+
```
|
|
470
|
+
|
|
455
471
|
| Option | Type | Required | Description |
|
|
456
472
|
|--------|------|----------|-------------|
|
|
457
473
|
| `--campaignId` | number | no | Filter by campaign ID |
|
|
@@ -462,9 +478,9 @@ List experiments with optional filtering by campaign, status, and date range
|
|
|
462
478
|
| `--status` | `draft` \| `running` \| `finished` | no | Filter by status (draft, running, finished) |
|
|
463
479
|
|
|
464
480
|
|
|
465
|
-
## export (4
|
|
481
|
+
## export (4)
|
|
466
482
|
|
|
467
|
-
###
|
|
483
|
+
### cancel
|
|
468
484
|
|
|
469
485
|
Cancel a queued or running export job
|
|
470
486
|
|
|
@@ -476,7 +492,7 @@ iterable export cancel <jobId>
|
|
|
476
492
|
|--------|------|----------|-------------|
|
|
477
493
|
| `jobId` | number | **yes** | The ID of the export job to cancel (returned from startExportJob) |
|
|
478
494
|
|
|
479
|
-
###
|
|
495
|
+
### get-files
|
|
480
496
|
|
|
481
497
|
Get the job status and download URLs for files from a completed export job
|
|
482
498
|
|
|
@@ -489,15 +505,19 @@ iterable export get-files <jobId>
|
|
|
489
505
|
| `jobId` | number | **yes** | The ID of the export job (returned from startExportJob) |
|
|
490
506
|
| `--startAfter` | string | no | Skip file names up to and including this value. Use for paginating over the files in the export (e.g., 'file-1679086247925.csv') |
|
|
491
507
|
|
|
492
|
-
###
|
|
508
|
+
### list-jobs
|
|
493
509
|
|
|
494
510
|
Get a list of recent export jobs for the current project
|
|
495
511
|
|
|
512
|
+
```
|
|
513
|
+
iterable export list-jobs
|
|
514
|
+
```
|
|
515
|
+
|
|
496
516
|
| Option | Type | Required | Description |
|
|
497
517
|
|--------|------|----------|-------------|
|
|
498
518
|
| `--jobState` | string | no | Filter results to only include jobs in the specified state (enqueued, queued, running, completed, failed, cancelled, cancelling) |
|
|
499
519
|
|
|
500
|
-
###
|
|
520
|
+
### start
|
|
501
521
|
|
|
502
522
|
Start a data export job that processes as a background job. Use get-files to check status and obtain download links.
|
|
503
523
|
|
|
@@ -517,12 +537,16 @@ iterable export start --dataTypeName <dataTypeName> --outputFormat <outputFormat
|
|
|
517
537
|
| `--startDateTime` | string | no | Export events occurring or users updated after date and time inclusive |
|
|
518
538
|
|
|
519
539
|
|
|
520
|
-
## journeys (2
|
|
540
|
+
## journeys (2)
|
|
521
541
|
|
|
522
|
-
###
|
|
542
|
+
### list
|
|
523
543
|
|
|
524
544
|
Get journeys (workflows) with optional pagination and state filtering
|
|
525
545
|
|
|
546
|
+
```
|
|
547
|
+
iterable journeys list
|
|
548
|
+
```
|
|
549
|
+
|
|
526
550
|
| Option | Type | Required | Description |
|
|
527
551
|
|--------|------|----------|-------------|
|
|
528
552
|
| `--order` | `asc` \| `desc` | no | Sort direction (asc or desc) |
|
|
@@ -531,7 +555,7 @@ Get journeys (workflows) with optional pagination and state filtering
|
|
|
531
555
|
| `--sort` | string | no | Field to sort by |
|
|
532
556
|
| `--state` | string[] | no | Filter by journey state (e.g., ['Archived']) |
|
|
533
557
|
|
|
534
|
-
###
|
|
558
|
+
### trigger
|
|
535
559
|
|
|
536
560
|
Trigger a journey (workflow) for a user
|
|
537
561
|
|
|
@@ -548,9 +572,9 @@ iterable journeys trigger <workflowId>
|
|
|
548
572
|
| `--userId` | string | no | User ID (alternative to email) |
|
|
549
573
|
|
|
550
574
|
|
|
551
|
-
## lists (8
|
|
575
|
+
## lists (8)
|
|
552
576
|
|
|
553
|
-
###
|
|
577
|
+
### create
|
|
554
578
|
|
|
555
579
|
Create a new user list
|
|
556
580
|
|
|
@@ -563,7 +587,7 @@ iterable lists create <name>
|
|
|
563
587
|
| `name` | string | **yes** | Name of the list to create |
|
|
564
588
|
| `--description` | string | no | Description of the list |
|
|
565
589
|
|
|
566
|
-
###
|
|
590
|
+
### delete
|
|
567
591
|
|
|
568
592
|
Delete a user list
|
|
569
593
|
|
|
@@ -575,7 +599,7 @@ iterable lists delete <listId>
|
|
|
575
599
|
|--------|------|----------|-------------|
|
|
576
600
|
| `listId` | number | **yes** | ID of the list to delete |
|
|
577
601
|
|
|
578
|
-
###
|
|
602
|
+
### get-preview-users
|
|
579
603
|
|
|
580
604
|
Preview users in a list (up to 5000 users)
|
|
581
605
|
|
|
@@ -589,7 +613,7 @@ iterable lists get-preview-users <listId>
|
|
|
589
613
|
| `--preferUserId` | boolean | no | Return userId instead of email when both exist |
|
|
590
614
|
| `--size` | number | no | Number of users to return (max 5000, default 1000) |
|
|
591
615
|
|
|
592
|
-
###
|
|
616
|
+
### get-size
|
|
593
617
|
|
|
594
618
|
Get the count of users in a specific list
|
|
595
619
|
|
|
@@ -601,7 +625,7 @@ iterable lists get-size <listId>
|
|
|
601
625
|
|--------|------|----------|-------------|
|
|
602
626
|
| `listId` | number | **yes** | List ID to get size for |
|
|
603
627
|
|
|
604
|
-
###
|
|
628
|
+
### get-users
|
|
605
629
|
|
|
606
630
|
Get users in a specific list
|
|
607
631
|
|
|
@@ -614,11 +638,15 @@ iterable lists get-users <listId>
|
|
|
614
638
|
| `listId` | number | **yes** | List ID to get users from |
|
|
615
639
|
| `--maxResults` | number | no | Maximum number of users to return |
|
|
616
640
|
|
|
617
|
-
###
|
|
641
|
+
### list
|
|
618
642
|
|
|
619
643
|
Retrieve user lists
|
|
620
644
|
|
|
621
|
-
|
|
645
|
+
```
|
|
646
|
+
iterable lists list
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
### subscribe
|
|
622
650
|
|
|
623
651
|
Subscribe users to a specific list
|
|
624
652
|
|
|
@@ -632,7 +660,7 @@ iterable lists subscribe <listId> --subscribers <subscribers...>
|
|
|
632
660
|
| `--subscribers` | json[] | **yes** | Array of users to subscribe |
|
|
633
661
|
| `--updateExistingUsersOnly` | boolean | no | Skip operation for unknown userIds/emails when true |
|
|
634
662
|
|
|
635
|
-
###
|
|
663
|
+
### unsubscribe
|
|
636
664
|
|
|
637
665
|
Unsubscribe users from a specific list
|
|
638
666
|
|
|
@@ -646,12 +674,16 @@ iterable lists unsubscribe <listId> --subscribers <subscribers...>
|
|
|
646
674
|
| `--subscribers` | json[] | **yes** | Users to unsubscribe |
|
|
647
675
|
|
|
648
676
|
|
|
649
|
-
## messaging (16
|
|
677
|
+
## messaging (16)
|
|
650
678
|
|
|
651
|
-
###
|
|
679
|
+
### cancel-email
|
|
652
680
|
|
|
653
681
|
Cancel scheduled email for specific user
|
|
654
682
|
|
|
683
|
+
```
|
|
684
|
+
iterable messaging cancel-email
|
|
685
|
+
```
|
|
686
|
+
|
|
655
687
|
| Option | Type | Required | Description |
|
|
656
688
|
|--------|------|----------|-------------|
|
|
657
689
|
| `--campaignId` | number | no | Campaign ID to cancel |
|
|
@@ -659,10 +691,14 @@ Cancel scheduled email for specific user
|
|
|
659
691
|
| `--scheduledMessageId` | number | no | Scheduled message ID to cancel |
|
|
660
692
|
| `--userId` | string | no | User ID that identifies a user profile |
|
|
661
693
|
|
|
662
|
-
###
|
|
694
|
+
### cancel-in-app
|
|
663
695
|
|
|
664
696
|
Cancel scheduled in-app message for specific user
|
|
665
697
|
|
|
698
|
+
```
|
|
699
|
+
iterable messaging cancel-in-app
|
|
700
|
+
```
|
|
701
|
+
|
|
666
702
|
| Option | Type | Required | Description |
|
|
667
703
|
|--------|------|----------|-------------|
|
|
668
704
|
| `--campaignId` | number | no | Campaign ID to cancel |
|
|
@@ -670,10 +706,14 @@ Cancel scheduled in-app message for specific user
|
|
|
670
706
|
| `--scheduledMessageId` | number | no | Scheduled message ID to cancel |
|
|
671
707
|
| `--userId` | string | no | User ID that identifies a user profile |
|
|
672
708
|
|
|
673
|
-
###
|
|
709
|
+
### cancel-push
|
|
674
710
|
|
|
675
711
|
Cancel scheduled push notification for specific user
|
|
676
712
|
|
|
713
|
+
```
|
|
714
|
+
iterable messaging cancel-push
|
|
715
|
+
```
|
|
716
|
+
|
|
677
717
|
| Option | Type | Required | Description |
|
|
678
718
|
|--------|------|----------|-------------|
|
|
679
719
|
| `--campaignId` | number | no | Campaign ID to cancel |
|
|
@@ -681,10 +721,14 @@ Cancel scheduled push notification for specific user
|
|
|
681
721
|
| `--scheduledMessageId` | number | no | Scheduled message ID to cancel |
|
|
682
722
|
| `--userId` | string | no | User ID that identifies a user profile |
|
|
683
723
|
|
|
684
|
-
###
|
|
724
|
+
### cancel-sms
|
|
685
725
|
|
|
686
726
|
Cancel scheduled SMS message for specific user
|
|
687
727
|
|
|
728
|
+
```
|
|
729
|
+
iterable messaging cancel-sms
|
|
730
|
+
```
|
|
731
|
+
|
|
688
732
|
| Option | Type | Required | Description |
|
|
689
733
|
|--------|------|----------|-------------|
|
|
690
734
|
| `--campaignId` | number | no | Campaign ID to cancel |
|
|
@@ -692,10 +736,14 @@ Cancel scheduled SMS message for specific user
|
|
|
692
736
|
| `--scheduledMessageId` | number | no | Scheduled message ID to cancel |
|
|
693
737
|
| `--userId` | string | no | User ID that identifies a user profile |
|
|
694
738
|
|
|
695
|
-
###
|
|
739
|
+
### cancel-web-push
|
|
696
740
|
|
|
697
741
|
Cancel scheduled web push notification for specific user
|
|
698
742
|
|
|
743
|
+
```
|
|
744
|
+
iterable messaging cancel-web-push
|
|
745
|
+
```
|
|
746
|
+
|
|
699
747
|
| Option | Type | Required | Description |
|
|
700
748
|
|--------|------|----------|-------------|
|
|
701
749
|
| `--campaignId` | number | no | Campaign ID to cancel |
|
|
@@ -703,10 +751,14 @@ Cancel scheduled web push notification for specific user
|
|
|
703
751
|
| `--scheduledMessageId` | number | no | Scheduled message ID to cancel |
|
|
704
752
|
| `--userId` | string | no | User ID that identifies a user profile |
|
|
705
753
|
|
|
706
|
-
###
|
|
754
|
+
### cancel-whatsapp
|
|
707
755
|
|
|
708
756
|
Cancel scheduled WhatsApp message for specific user
|
|
709
757
|
|
|
758
|
+
```
|
|
759
|
+
iterable messaging cancel-whatsapp
|
|
760
|
+
```
|
|
761
|
+
|
|
710
762
|
| Option | Type | Required | Description |
|
|
711
763
|
|--------|------|----------|-------------|
|
|
712
764
|
| `--campaignId` | number | no | Campaign ID to cancel |
|
|
@@ -714,14 +766,22 @@ Cancel scheduled WhatsApp message for specific user
|
|
|
714
766
|
| `--scheduledMessageId` | number | no | Scheduled message ID to cancel |
|
|
715
767
|
| `--userId` | string | no | User ID that identifies a user profile |
|
|
716
768
|
|
|
717
|
-
###
|
|
769
|
+
### get-channels
|
|
718
770
|
|
|
719
771
|
Get all available communication channels (email, SMS, push, etc.)
|
|
720
772
|
|
|
721
|
-
|
|
773
|
+
```
|
|
774
|
+
iterable messaging get-channels
|
|
775
|
+
```
|
|
776
|
+
|
|
777
|
+
### get-embedded-messages
|
|
722
778
|
|
|
723
779
|
Get embedded messages for a user, grouped by placement ID
|
|
724
780
|
|
|
781
|
+
```
|
|
782
|
+
iterable messaging get-embedded-messages
|
|
783
|
+
```
|
|
784
|
+
|
|
725
785
|
| Option | Type | Required | Description |
|
|
726
786
|
|--------|------|----------|-------------|
|
|
727
787
|
| `--currentMessageIds` | string[] | no | IDs of embedded messages already retrieved |
|
|
@@ -732,10 +792,14 @@ Get embedded messages for a user, grouped by placement ID
|
|
|
732
792
|
| `--sdkVersion` | string | no | Iterable SDK version (e.g., 6.5.0) |
|
|
733
793
|
| `--userId` | string | no | User ID (alternative to email) |
|
|
734
794
|
|
|
735
|
-
###
|
|
795
|
+
### get-in-app-messages
|
|
736
796
|
|
|
737
797
|
Get in-app messages for a user
|
|
738
798
|
|
|
799
|
+
```
|
|
800
|
+
iterable messaging get-in-app-messages
|
|
801
|
+
```
|
|
802
|
+
|
|
739
803
|
| Option | Type | Required | Description |
|
|
740
804
|
|--------|------|----------|-------------|
|
|
741
805
|
| `--count` | number | no | Number of messages to retrieve |
|
|
@@ -743,11 +807,15 @@ Get in-app messages for a user
|
|
|
743
807
|
| `--platform` | `iOS` \| `Android` \| `Web` | no | Platform filter |
|
|
744
808
|
| `--userId` | string | no | User ID (alternative to email) |
|
|
745
809
|
|
|
746
|
-
###
|
|
810
|
+
### get-message-types
|
|
747
811
|
|
|
748
812
|
Get all message types within the project for use in templates
|
|
749
813
|
|
|
750
|
-
|
|
814
|
+
```
|
|
815
|
+
iterable messaging get-message-types
|
|
816
|
+
```
|
|
817
|
+
|
|
818
|
+
### send-email
|
|
751
819
|
|
|
752
820
|
Send email to user
|
|
753
821
|
|
|
@@ -765,7 +833,7 @@ iterable messaging send-email <campaignId>
|
|
|
765
833
|
| `--recipientUserId` | string | no | Recipient user ID (alternative to email) |
|
|
766
834
|
| `--sendAt` | string | no | When to send the email (YYYY-MM-DD HH:MM:SS format) |
|
|
767
835
|
|
|
768
|
-
###
|
|
836
|
+
### send-in-app
|
|
769
837
|
|
|
770
838
|
Send in-app message to user
|
|
771
839
|
|
|
@@ -783,7 +851,7 @@ iterable messaging send-in-app <campaignId>
|
|
|
783
851
|
| `--recipientUserId` | string | no | Recipient user ID (alternative to email) |
|
|
784
852
|
| `--sendAt` | string | no | When to send (YYYY-MM-DD HH:MM:SS format) |
|
|
785
853
|
|
|
786
|
-
###
|
|
854
|
+
### send-push
|
|
787
855
|
|
|
788
856
|
Send push notification to user
|
|
789
857
|
|
|
@@ -801,7 +869,7 @@ iterable messaging send-push <campaignId>
|
|
|
801
869
|
| `--recipientUserId` | string | no | Recipient user ID |
|
|
802
870
|
| `--sendAt` | string | no | When to send (YYYY-MM-DD HH:MM:SS format) |
|
|
803
871
|
|
|
804
|
-
###
|
|
872
|
+
### send-sms
|
|
805
873
|
|
|
806
874
|
Send SMS message to user
|
|
807
875
|
|
|
@@ -820,7 +888,7 @@ iterable messaging send-sms <campaignId>
|
|
|
820
888
|
| `--recipientUserId` | string | no | Recipient user ID |
|
|
821
889
|
| `--sendAt` | string | no | When to send (YYYY-MM-DD HH:MM:SS format) |
|
|
822
890
|
|
|
823
|
-
###
|
|
891
|
+
### send-web-push
|
|
824
892
|
|
|
825
893
|
Send web push notification to user
|
|
826
894
|
|
|
@@ -838,7 +906,7 @@ iterable messaging send-web-push <campaignId>
|
|
|
838
906
|
| `--recipientUserId` | string | no | Recipient user ID |
|
|
839
907
|
| `--sendAt` | string | no | When to send (YYYY-MM-DD HH:MM:SS format) |
|
|
840
908
|
|
|
841
|
-
###
|
|
909
|
+
### send-whatsapp
|
|
842
910
|
|
|
843
911
|
Send WhatsApp message to user
|
|
844
912
|
|
|
@@ -858,9 +926,9 @@ iterable messaging send-whatsapp <campaignId>
|
|
|
858
926
|
| `--sendAt` | string | no | When to send (YYYY-MM-DD HH:MM:SS format) |
|
|
859
927
|
|
|
860
928
|
|
|
861
|
-
## snippets (5
|
|
929
|
+
## snippets (5)
|
|
862
930
|
|
|
863
|
-
###
|
|
931
|
+
### create
|
|
864
932
|
|
|
865
933
|
Create a new snippet with Handlebars templating support
|
|
866
934
|
|
|
@@ -876,7 +944,7 @@ iterable snippets create --content <content> --name <name>
|
|
|
876
944
|
| `--description` | string | no | Description of the snippet |
|
|
877
945
|
| `--variables` | string[] | no | A list of variable names used in the content with a Handlebars expression such as {{#if (eq myVariable "someValue")}}. Variable names are case-sensitive and should be simple identifiers (letters, numbers, underscores). To learn more about using variables in Snippets, see Customizing Snippets with Variables. |
|
|
878
946
|
|
|
879
|
-
###
|
|
947
|
+
### delete
|
|
880
948
|
|
|
881
949
|
Delete a snippet by ID (numeric) or name (string)
|
|
882
950
|
|
|
@@ -888,7 +956,7 @@ iterable snippets delete <identifier>
|
|
|
888
956
|
|--------|------|----------|-------------|
|
|
889
957
|
| `identifier` | string | **yes** | Snippet ID (numeric) or name (string). Numeric identifiers are treated as IDs, string identifiers as names |
|
|
890
958
|
|
|
891
|
-
###
|
|
959
|
+
### get
|
|
892
960
|
|
|
893
961
|
Get a snippet by ID (numeric) or name (string)
|
|
894
962
|
|
|
@@ -900,11 +968,15 @@ iterable snippets get <identifier>
|
|
|
900
968
|
|--------|------|----------|-------------|
|
|
901
969
|
| `identifier` | string | **yes** | Snippet ID (numeric) or name (string). Numeric identifiers are treated as IDs, string identifiers as names |
|
|
902
970
|
|
|
903
|
-
###
|
|
971
|
+
### list
|
|
904
972
|
|
|
905
973
|
Get all snippets for the current project
|
|
906
974
|
|
|
907
|
-
|
|
975
|
+
```
|
|
976
|
+
iterable snippets list
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
### update
|
|
908
980
|
|
|
909
981
|
Update a snippet by ID (numeric) or name (string)
|
|
910
982
|
|
|
@@ -921,9 +993,9 @@ iterable snippets update --content <content> --identifier <identifier>
|
|
|
921
993
|
| `--variables` | string[] | no | List of variable names used in the content with a Handlebars expression such as {{myField}}. Variable names are case-sensitive and should be simple identifiers (letters, numbers, underscores). To learn more about using Handlebars in Snippets, see Customizing Snippets with Variables. |
|
|
922
994
|
|
|
923
995
|
|
|
924
|
-
## subscriptions (5
|
|
996
|
+
## subscriptions (5)
|
|
925
997
|
|
|
926
|
-
###
|
|
998
|
+
### bulk-update
|
|
927
999
|
|
|
928
1000
|
Subscribe or unsubscribe multiple users to/from a subscription group
|
|
929
1001
|
|
|
@@ -933,13 +1005,13 @@ iterable subscriptions bulk-update --action <action> --subscriptionGroup <subscr
|
|
|
933
1005
|
|
|
934
1006
|
| Option | Type | Required | Description |
|
|
935
1007
|
|--------|------|----------|-------------|
|
|
936
|
-
| `--action` | `subscribe` \| `unsubscribe` | **yes** | Action to perform
|
|
1008
|
+
| `--action` | `subscribe` \| `unsubscribe` | **yes** | Action to perform |
|
|
937
1009
|
| `--subscriptionGroup` | `emailList` \| `messageType` \| `messageChannel` | **yes** | Type of subscription group |
|
|
938
1010
|
| `--subscriptionGroupId` | number | **yes** | Subscription Group Id |
|
|
939
1011
|
| `--users` | string[] | no | Users to subscribe/unsubscribe, identified by email |
|
|
940
1012
|
| `--usersByUserId` | string[] | no | Users to subscribe/unsubscribe, identified by userId |
|
|
941
1013
|
|
|
942
|
-
###
|
|
1014
|
+
### subscribe-by-email
|
|
943
1015
|
|
|
944
1016
|
Subscribe a user to a subscription group by email
|
|
945
1017
|
|
|
@@ -953,7 +1025,7 @@ iterable subscriptions subscribe-by-email --subscriptionGroup <subscriptionGroup
|
|
|
953
1025
|
| `--subscriptionGroupId` | number | **yes** | Subscription Group Id |
|
|
954
1026
|
| `--userEmail` | string | **yes** | User's email address |
|
|
955
1027
|
|
|
956
|
-
###
|
|
1028
|
+
### subscribe-by-userid
|
|
957
1029
|
|
|
958
1030
|
Subscribe a user to a subscription group by userId
|
|
959
1031
|
|
|
@@ -967,7 +1039,7 @@ iterable subscriptions subscribe-by-userid --subscriptionGroup <subscriptionGrou
|
|
|
967
1039
|
| `--subscriptionGroupId` | number | **yes** | Subscription Group Id |
|
|
968
1040
|
| `--userId` | string | **yes** | User's userId |
|
|
969
1041
|
|
|
970
|
-
###
|
|
1042
|
+
### unsubscribe-by-email
|
|
971
1043
|
|
|
972
1044
|
Unsubscribe a user from a subscription group by email
|
|
973
1045
|
|
|
@@ -981,7 +1053,7 @@ iterable subscriptions unsubscribe-by-email --subscriptionGroup <subscriptionGro
|
|
|
981
1053
|
| `--subscriptionGroupId` | number | **yes** | Subscription Group Id |
|
|
982
1054
|
| `--userEmail` | string | **yes** | User's email address |
|
|
983
1055
|
|
|
984
|
-
###
|
|
1056
|
+
### unsubscribe-by-userid
|
|
985
1057
|
|
|
986
1058
|
Unsubscribe a user from a subscription group by userId
|
|
987
1059
|
|
|
@@ -996,9 +1068,9 @@ iterable subscriptions unsubscribe-by-userid --subscriptionGroup <subscriptionGr
|
|
|
996
1068
|
| `--userId` | string | **yes** | User's userId |
|
|
997
1069
|
|
|
998
1070
|
|
|
999
|
-
## templates (21
|
|
1071
|
+
## templates (21)
|
|
1000
1072
|
|
|
1001
|
-
###
|
|
1073
|
+
### delete
|
|
1002
1074
|
|
|
1003
1075
|
Delete one or more templates by ID
|
|
1004
1076
|
|
|
@@ -1010,7 +1082,7 @@ iterable templates delete <ids...>
|
|
|
1010
1082
|
|--------|------|----------|-------------|
|
|
1011
1083
|
| `ids` | number[] | **yes** | IDs of templates to delete |
|
|
1012
1084
|
|
|
1013
|
-
###
|
|
1085
|
+
### get-by-client-id
|
|
1014
1086
|
|
|
1015
1087
|
Get template by client template ID
|
|
1016
1088
|
|
|
@@ -1022,7 +1094,7 @@ iterable templates get-by-client-id <clientTemplateId>
|
|
|
1022
1094
|
|--------|------|----------|-------------|
|
|
1023
1095
|
| `clientTemplateId` | string | **yes** | Client template ID to look up template by |
|
|
1024
1096
|
|
|
1025
|
-
###
|
|
1097
|
+
### get-email
|
|
1026
1098
|
|
|
1027
1099
|
Get details for specific email template by ID
|
|
1028
1100
|
|
|
@@ -1035,7 +1107,7 @@ iterable templates get-email <templateId>
|
|
|
1035
1107
|
| `templateId` | number | **yes** | Template ID to retrieve |
|
|
1036
1108
|
| `--locale` | string | no | Locale of content to get |
|
|
1037
1109
|
|
|
1038
|
-
###
|
|
1110
|
+
### get-inapp
|
|
1039
1111
|
|
|
1040
1112
|
Get details for specific in-app message template by ID
|
|
1041
1113
|
|
|
@@ -1048,7 +1120,7 @@ iterable templates get-inapp <templateId>
|
|
|
1048
1120
|
| `templateId` | number | **yes** | Template ID to retrieve |
|
|
1049
1121
|
| `--locale` | string | no | Locale of content to get |
|
|
1050
1122
|
|
|
1051
|
-
###
|
|
1123
|
+
### get-push
|
|
1052
1124
|
|
|
1053
1125
|
Get details for specific push notification template by ID
|
|
1054
1126
|
|
|
@@ -1061,7 +1133,7 @@ iterable templates get-push <templateId>
|
|
|
1061
1133
|
| `templateId` | number | **yes** | Template ID to retrieve |
|
|
1062
1134
|
| `--locale` | string | no | Locale of content to get |
|
|
1063
1135
|
|
|
1064
|
-
###
|
|
1136
|
+
### get-sms
|
|
1065
1137
|
|
|
1066
1138
|
Get details for specific SMS template by ID
|
|
1067
1139
|
|
|
@@ -1074,10 +1146,14 @@ iterable templates get-sms <templateId>
|
|
|
1074
1146
|
| `templateId` | number | **yes** | Template ID to retrieve |
|
|
1075
1147
|
| `--locale` | string | no | Locale of content to get |
|
|
1076
1148
|
|
|
1077
|
-
###
|
|
1149
|
+
### list
|
|
1078
1150
|
|
|
1079
1151
|
Retrieve templates
|
|
1080
1152
|
|
|
1153
|
+
```
|
|
1154
|
+
iterable templates list
|
|
1155
|
+
```
|
|
1156
|
+
|
|
1081
1157
|
| Option | Type | Required | Description |
|
|
1082
1158
|
|--------|------|----------|-------------|
|
|
1083
1159
|
| `--endDateTime` | string | no | Get templates created before this date time (yyyy-MM-dd HH:mm:ss [ZZ]) |
|
|
@@ -1089,7 +1165,7 @@ Retrieve templates
|
|
|
1089
1165
|
| `--startDateTime` | string | no | Get templates created at or after this date time (yyyy-MM-dd HH:mm:ss [ZZ]) |
|
|
1090
1166
|
| `--templateType` | `Base` \| `Blast` \| `Triggered` \| `Workflow` | no | Filter by template type |
|
|
1091
1167
|
|
|
1092
|
-
###
|
|
1168
|
+
### preview-email
|
|
1093
1169
|
|
|
1094
1170
|
Preview email template with custom data. Returns fully rendered HTML.
|
|
1095
1171
|
|
|
@@ -1103,7 +1179,7 @@ iterable templates preview-email <templateId>
|
|
|
1103
1179
|
| `--data` | json | no | Data to use for template rendering (JSON: {dataFields, dataFeed, fetchDataFeeds}) |
|
|
1104
1180
|
| `--locale` | string | no | Locale of content to get |
|
|
1105
1181
|
|
|
1106
|
-
###
|
|
1182
|
+
### preview-inapp
|
|
1107
1183
|
|
|
1108
1184
|
Preview in-app message template with custom data. Returns fully rendered HTML.
|
|
1109
1185
|
|
|
@@ -1117,7 +1193,7 @@ iterable templates preview-inapp <templateId>
|
|
|
1117
1193
|
| `--data` | json | no | Data to use for template rendering (JSON: {dataFields, dataFeed, fetchDataFeeds}) |
|
|
1118
1194
|
| `--locale` | string | no | Locale of content to get |
|
|
1119
1195
|
|
|
1120
|
-
###
|
|
1196
|
+
### proof-email
|
|
1121
1197
|
|
|
1122
1198
|
Send a proof of an email template to a specific user
|
|
1123
1199
|
|
|
@@ -1133,7 +1209,7 @@ iterable templates proof-email <templateId>
|
|
|
1133
1209
|
| `--recipientEmail` | string | no | An email address that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1134
1210
|
| `--recipientUserId` | string | no | A user ID that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1135
1211
|
|
|
1136
|
-
###
|
|
1212
|
+
### proof-inapp
|
|
1137
1213
|
|
|
1138
1214
|
Send a proof of an in-app message template to a specific user
|
|
1139
1215
|
|
|
@@ -1149,7 +1225,7 @@ iterable templates proof-inapp <templateId>
|
|
|
1149
1225
|
| `--recipientEmail` | string | no | An email address that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1150
1226
|
| `--recipientUserId` | string | no | A user ID that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1151
1227
|
|
|
1152
|
-
###
|
|
1228
|
+
### proof-push
|
|
1153
1229
|
|
|
1154
1230
|
Send a proof of a push notification template to a specific user
|
|
1155
1231
|
|
|
@@ -1165,7 +1241,7 @@ iterable templates proof-push <templateId>
|
|
|
1165
1241
|
| `--recipientEmail` | string | no | An email address that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1166
1242
|
| `--recipientUserId` | string | no | A user ID that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1167
1243
|
|
|
1168
|
-
###
|
|
1244
|
+
### proof-sms
|
|
1169
1245
|
|
|
1170
1246
|
Send a proof of an SMS template to a specific user
|
|
1171
1247
|
|
|
@@ -1181,7 +1257,7 @@ iterable templates proof-sms <templateId>
|
|
|
1181
1257
|
| `--recipientEmail` | string | no | An email address that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1182
1258
|
| `--recipientUserId` | string | no | A user ID that identifies a user profile in Iterable. Provide a recipientEmail or a recipientUserId (but not both), depending on how your project identifies users. |
|
|
1183
1259
|
|
|
1184
|
-
###
|
|
1260
|
+
### update-email
|
|
1185
1261
|
|
|
1186
1262
|
Update existing email template by templateId
|
|
1187
1263
|
|
|
@@ -1204,7 +1280,7 @@ iterable templates update-email <templateId>
|
|
|
1204
1280
|
| `--plainText` | string | no | Plain text content |
|
|
1205
1281
|
| `--subject` | string | no | Email subject |
|
|
1206
1282
|
|
|
1207
|
-
###
|
|
1283
|
+
### update-inapp
|
|
1208
1284
|
|
|
1209
1285
|
Update existing in-app message template by templateId
|
|
1210
1286
|
|
|
@@ -1223,7 +1299,7 @@ iterable templates update-inapp <templateId>
|
|
|
1223
1299
|
| `--messageTypeId` | number | no | Message type ID |
|
|
1224
1300
|
| `--name` | string | no | Template name |
|
|
1225
1301
|
|
|
1226
|
-
###
|
|
1302
|
+
### update-push
|
|
1227
1303
|
|
|
1228
1304
|
Update existing push notification template by templateId
|
|
1229
1305
|
|
|
@@ -1246,7 +1322,7 @@ iterable templates update-push <templateId>
|
|
|
1246
1322
|
| `--sound` | string | no | Sound file |
|
|
1247
1323
|
| `--title` | string | no | Push notification title |
|
|
1248
1324
|
|
|
1249
|
-
###
|
|
1325
|
+
### update-sms
|
|
1250
1326
|
|
|
1251
1327
|
Update existing SMS template by templateId
|
|
1252
1328
|
|
|
@@ -1265,7 +1341,7 @@ iterable templates update-sms <templateId>
|
|
|
1265
1341
|
| `--messageTypeId` | number | no | Message type ID |
|
|
1266
1342
|
| `--name` | string | no | Template name |
|
|
1267
1343
|
|
|
1268
|
-
###
|
|
1344
|
+
### upsert-email
|
|
1269
1345
|
|
|
1270
1346
|
Create or update email template. If a template with the specified clientTemplateId exists, it will be updated; otherwise, a new template will be created.
|
|
1271
1347
|
|
|
@@ -1288,7 +1364,7 @@ iterable templates upsert-email <clientTemplateId>
|
|
|
1288
1364
|
| `--plainText` | string | no | Plain text content |
|
|
1289
1365
|
| `--subject` | string | no | Email subject |
|
|
1290
1366
|
|
|
1291
|
-
###
|
|
1367
|
+
### upsert-inapp
|
|
1292
1368
|
|
|
1293
1369
|
Create or update in-app message template. If a template with the specified clientTemplateId exists, it will be updated; otherwise, a new template will be created.
|
|
1294
1370
|
|
|
@@ -1307,7 +1383,7 @@ iterable templates upsert-inapp <clientTemplateId>
|
|
|
1307
1383
|
| `--messageTypeId` | number | no | Message type ID |
|
|
1308
1384
|
| `--name` | string | no | Template name |
|
|
1309
1385
|
|
|
1310
|
-
###
|
|
1386
|
+
### upsert-push
|
|
1311
1387
|
|
|
1312
1388
|
Create or update push notification template. If a template with the specified clientTemplateId exists, it will be updated; otherwise, a new template will be created.
|
|
1313
1389
|
|
|
@@ -1330,7 +1406,7 @@ iterable templates upsert-push <clientTemplateId>
|
|
|
1330
1406
|
| `--sound` | string | no | Sound file |
|
|
1331
1407
|
| `--title` | string | no | Push notification title |
|
|
1332
1408
|
|
|
1333
|
-
###
|
|
1409
|
+
### upsert-sms
|
|
1334
1410
|
|
|
1335
1411
|
Create or update SMS template. If a template with the specified clientTemplateId exists, it will be updated; otherwise, a new template will be created.
|
|
1336
1412
|
|
|
@@ -1350,9 +1426,9 @@ iterable templates upsert-sms <clientTemplateId>
|
|
|
1350
1426
|
| `--name` | string | no | Template name |
|
|
1351
1427
|
|
|
1352
1428
|
|
|
1353
|
-
## users (12
|
|
1429
|
+
## users (12)
|
|
1354
1430
|
|
|
1355
|
-
###
|
|
1431
|
+
### bulk-update
|
|
1356
1432
|
|
|
1357
1433
|
Update multiple users at once
|
|
1358
1434
|
|
|
@@ -1364,7 +1440,7 @@ iterable users bulk-update --users <users...>
|
|
|
1364
1440
|
|--------|------|----------|-------------|
|
|
1365
1441
|
| `--users` | json[] | **yes** | Array of users to update |
|
|
1366
1442
|
|
|
1367
|
-
###
|
|
1443
|
+
### delete *(alias)*
|
|
1368
1444
|
|
|
1369
1445
|
Delete a user by email or userId (auto-detected)
|
|
1370
1446
|
|
|
@@ -1376,7 +1452,7 @@ iterable users delete <identifier>
|
|
|
1376
1452
|
|--------|------|----------|-------------|
|
|
1377
1453
|
| `identifier` | string | **yes** | Email address or userId |
|
|
1378
1454
|
|
|
1379
|
-
###
|
|
1455
|
+
### delete-by-email
|
|
1380
1456
|
|
|
1381
1457
|
Delete a user by email address (asynchronous)
|
|
1382
1458
|
|
|
@@ -1388,7 +1464,7 @@ iterable users delete-by-email <email>
|
|
|
1388
1464
|
|--------|------|----------|-------------|
|
|
1389
1465
|
| `email` | string | **yes** | Email address of the user to delete |
|
|
1390
1466
|
|
|
1391
|
-
###
|
|
1467
|
+
### delete-by-userid
|
|
1392
1468
|
|
|
1393
1469
|
Delete a user by user ID (asynchronous, deletes all users with same userId)
|
|
1394
1470
|
|
|
@@ -1400,7 +1476,7 @@ iterable users delete-by-userid <userId>
|
|
|
1400
1476
|
|--------|------|----------|-------------|
|
|
1401
1477
|
| `userId` | string | **yes** | User ID of the user to delete |
|
|
1402
1478
|
|
|
1403
|
-
###
|
|
1479
|
+
### get *(alias)*
|
|
1404
1480
|
|
|
1405
1481
|
Get a user by email or userId (auto-detected)
|
|
1406
1482
|
|
|
@@ -1412,7 +1488,7 @@ iterable users get <identifier>
|
|
|
1412
1488
|
|--------|------|----------|-------------|
|
|
1413
1489
|
| `identifier` | string | **yes** | Email address or userId |
|
|
1414
1490
|
|
|
1415
|
-
###
|
|
1491
|
+
### get-by-email
|
|
1416
1492
|
|
|
1417
1493
|
Get user profile information by email address
|
|
1418
1494
|
|
|
@@ -1424,7 +1500,7 @@ iterable users get-by-email <email>
|
|
|
1424
1500
|
|--------|------|----------|-------------|
|
|
1425
1501
|
| `email` | string | **yes** | Email address of the user to retrieve |
|
|
1426
1502
|
|
|
1427
|
-
###
|
|
1503
|
+
### get-by-userid
|
|
1428
1504
|
|
|
1429
1505
|
Get user profile information by user ID
|
|
1430
1506
|
|
|
@@ -1436,14 +1512,22 @@ iterable users get-by-userid <userId>
|
|
|
1436
1512
|
|--------|------|----------|-------------|
|
|
1437
1513
|
| `userId` | string | **yes** | User ID to retrieve |
|
|
1438
1514
|
|
|
1439
|
-
###
|
|
1515
|
+
### get-fields
|
|
1440
1516
|
|
|
1441
1517
|
Get all user profile field definitions and their types
|
|
1442
1518
|
|
|
1443
|
-
|
|
1519
|
+
```
|
|
1520
|
+
iterable users get-fields
|
|
1521
|
+
```
|
|
1522
|
+
|
|
1523
|
+
### get-sent-messages
|
|
1444
1524
|
|
|
1445
1525
|
Get messages sent to a specific user with optional filtering
|
|
1446
1526
|
|
|
1527
|
+
```
|
|
1528
|
+
iterable users get-sent-messages
|
|
1529
|
+
```
|
|
1530
|
+
|
|
1447
1531
|
| Option | Type | Required | Description |
|
|
1448
1532
|
|--------|------|----------|-------------|
|
|
1449
1533
|
| `--campaignIds` | number[] | no | Only include messages from these campaigns |
|
|
@@ -1455,10 +1539,14 @@ Get messages sent to a specific user with optional filtering
|
|
|
1455
1539
|
| `--startDateTime` | string | no | Start date time (yyyy-MM-dd HH:mm:ss ZZ) |
|
|
1456
1540
|
| `--userId` | string | no | User ID (alternative to email) |
|
|
1457
1541
|
|
|
1458
|
-
###
|
|
1542
|
+
### update
|
|
1459
1543
|
|
|
1460
1544
|
Update user profile information (accepts email OR userId)
|
|
1461
1545
|
|
|
1546
|
+
```
|
|
1547
|
+
iterable users update
|
|
1548
|
+
```
|
|
1549
|
+
|
|
1462
1550
|
| Option | Type | Required | Description |
|
|
1463
1551
|
|--------|------|----------|-------------|
|
|
1464
1552
|
| `--createNewFields` | boolean | no | Whether new fields should be ingested and added to the schema |
|
|
@@ -1468,7 +1556,7 @@ Update user profile information (accepts email OR userId)
|
|
|
1468
1556
|
| `--preferUserId` | boolean | no | Whether to create new user if userId doesn't exist (email-based projects only) |
|
|
1469
1557
|
| `--userId` | string | no | User ID (alternative to email) |
|
|
1470
1558
|
|
|
1471
|
-
###
|
|
1559
|
+
### update-email
|
|
1472
1560
|
|
|
1473
1561
|
Update a user's email address (only for email-based projects)
|
|
1474
1562
|
|
|
@@ -1482,10 +1570,14 @@ iterable users update-email <newEmail>
|
|
|
1482
1570
|
| `--currentEmail` | string | no | An email address that identifies a user profile in Iterable. Provide a currentEmail or a currentUserId (but not both), depending on how your project identifies users. |
|
|
1483
1571
|
| `--currentUserId` | string | no | A user ID that identifies a user profile in Iterable. Provide a currentEmail or a currentUserId (but not both), depending on how your project identifies users. |
|
|
1484
1572
|
|
|
1485
|
-
###
|
|
1573
|
+
### update-subscriptions
|
|
1486
1574
|
|
|
1487
1575
|
Update user subscriptions (overwrites existing data for any non-null fields specified)
|
|
1488
1576
|
|
|
1577
|
+
```
|
|
1578
|
+
iterable users update-subscriptions
|
|
1579
|
+
```
|
|
1580
|
+
|
|
1489
1581
|
| Option | Type | Required | Description |
|
|
1490
1582
|
|--------|------|----------|-------------|
|
|
1491
1583
|
| `--campaignId` | number | no | Campaign to attribute unsubscribes |
|
|
@@ -1499,13 +1591,17 @@ Update user subscriptions (overwrites existing data for any non-null fields spec
|
|
|
1499
1591
|
| `--validateChannelAlignment` | boolean | no | Defaults to true (validation enabled). When false, allows subscribing users to message types that belong to unsubscribed channels. By default, Iterable validates that subscribed message types belong to subscribed channels. Setting this to false bypasses this validation, allowing you to save message type preferences even when the parent channel is unsubscribed. Users won't receive messages from these types while the channel remains unsubscribed, but their preferences are preserved for when the channel becomes subscribed. |
|
|
1500
1592
|
|
|
1501
1593
|
|
|
1502
|
-
## webhooks (2
|
|
1594
|
+
## webhooks (2)
|
|
1503
1595
|
|
|
1504
|
-
###
|
|
1596
|
+
### list
|
|
1505
1597
|
|
|
1506
1598
|
Get all webhooks for the project
|
|
1507
1599
|
|
|
1508
|
-
|
|
1600
|
+
```
|
|
1601
|
+
iterable webhooks list
|
|
1602
|
+
```
|
|
1603
|
+
|
|
1604
|
+
### update
|
|
1509
1605
|
|
|
1510
1606
|
Update a webhook configuration
|
|
1511
1607
|
|
|
@@ -1525,7 +1621,7 @@ iterable webhooks update <webhookId>
|
|
|
1525
1621
|
|
|
1526
1622
|
Manage stored API keys.
|
|
1527
1623
|
|
|
1528
|
-
###
|
|
1624
|
+
### list
|
|
1529
1625
|
|
|
1530
1626
|
View all stored API keys
|
|
1531
1627
|
|
|
@@ -1533,7 +1629,7 @@ View all stored API keys
|
|
|
1533
1629
|
iterable keys list
|
|
1534
1630
|
```
|
|
1535
1631
|
|
|
1536
|
-
###
|
|
1632
|
+
### add
|
|
1537
1633
|
|
|
1538
1634
|
Add a new API key
|
|
1539
1635
|
|
|
@@ -1541,7 +1637,7 @@ Add a new API key
|
|
|
1541
1637
|
iterable keys add
|
|
1542
1638
|
```
|
|
1543
1639
|
|
|
1544
|
-
###
|
|
1640
|
+
### update <name-or-id>
|
|
1545
1641
|
|
|
1546
1642
|
Update an existing key's settings
|
|
1547
1643
|
|
|
@@ -1549,7 +1645,7 @@ Update an existing key's settings
|
|
|
1549
1645
|
iterable keys update <name-or-id>
|
|
1550
1646
|
```
|
|
1551
1647
|
|
|
1552
|
-
###
|
|
1648
|
+
### activate <name-or-id>
|
|
1553
1649
|
|
|
1554
1650
|
Switch to a different key
|
|
1555
1651
|
|
|
@@ -1557,7 +1653,7 @@ Switch to a different key
|
|
|
1557
1653
|
iterable keys activate <name-or-id>
|
|
1558
1654
|
```
|
|
1559
1655
|
|
|
1560
|
-
###
|
|
1656
|
+
### deactivate
|
|
1561
1657
|
|
|
1562
1658
|
Deactivate the current key
|
|
1563
1659
|
|
|
@@ -1565,7 +1661,7 @@ Deactivate the current key
|
|
|
1565
1661
|
iterable keys deactivate
|
|
1566
1662
|
```
|
|
1567
1663
|
|
|
1568
|
-
###
|
|
1664
|
+
### delete <name-or-id>
|
|
1569
1665
|
|
|
1570
1666
|
Remove a key by ID or name
|
|
1571
1667
|
|
|
@@ -1573,7 +1669,7 @@ Remove a key by ID or name
|
|
|
1573
1669
|
iterable keys delete <name-or-id>
|
|
1574
1670
|
```
|
|
1575
1671
|
|
|
1576
|
-
###
|
|
1672
|
+
### validate
|
|
1577
1673
|
|
|
1578
1674
|
Test the API connection
|
|
1579
1675
|
|