-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathengage-digital_openapi3.yaml
9905 lines (9658 loc) · 291 KB
/
engage-digital_openapi3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
description: 'REST API for RingCentral Engage Digital'
termsOfService: 'https://developer.ringcentral.com'
title: RingCentral Engage Digital API
version: '1.0.1'
contact:
name: RingCentral
url: https://developers.ringcentral.com/engage/api-products
servers:
- url: 'https://{account_name}.api.{platform_hostname}/1.0'
description: API server endpoint
variables:
account_name:
default: domain-name
description: Your own account name used as subdomain, it's the same as in the url of the engage digital service.
platform_hostname:
default: engagement.dimelo.com
description: Depending on environment the base hostname is changing. In production, it's digital.ringcentral.com for NA customers and engagement.dimelo.com for historical customers. It's the same base hostname as in the url of engage digital service.
x-tag-groups:
- name: Events & Notifications
tags:
- Events
- Webhooks
- name: Interactions
popular: true
tags:
- Attachments
- Bots
- Communities
- Contents
- Identities
- Identity Groups
- Intervention Comments
- Interventions
- Sources
- Survey Responses
- Surveys
- Threads
- name: Provisioning
tags:
- Categories
- CustomFields
- Locales
- Reply Assistant Entries
- Reply Assistant Groups
- Reply Assistant Versions
- Roles
- Settings
- Tags
- Teams
- Time Sheets
- Timezones
- Users
- Users Sources Permissions
- User Capacities
- User Signatures
- name: Routing
popular: true
tags:
- Agent Status
- Channels
- Folders
- Presence Status
- Tasks
- Topologies
tags:
- name: Events
- name: Webhooks
- name: Attachments
- name: Communities
- name: Contents
- name: Identities
- name: Identity Groups
- name: Intervention Comments
- name: Interventions
- name: Sources
- name: Tasks
- name: Threads
- name: Categories
- name: CustomFields
- name: Locales
- name: Reply Assistant Entries
- name: Reply Assistant Groups
- name: Reply Assistant Versions
- name: Roles
- name: Settings
- name: Tags
- name: Teams
- name: Time Sheets
- name: Timezones
- name: Topologies
- name: Users
- name: Users Sources Permissions
- name: User Capacities
- name: User Signatures
- name: Agent Status
- name: Channels
- name: Folders
- name: Presence Status
- name: Survey Responses
- name: Surveys
- name: Bots
paths:
'/topologies/{topologyId}/activate':
put:
description: >-
This method activates an existing topology from given attributes and renders it in case of success.
Authorization: Only users that have the right to manage topologies.
operationId: activateTopology
parameters:
- in: path
name: topologyId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Topology'
description: Success
summary: Activating a topology
tags:
- Topologies
'/topologies/{topologyId}':
put:
description: >-
This method updates an existing topology from given attributes and renders it in case of success.
Authorization: only users that have the right to manage topologies. Topology must be inactive or the response will return an error.
operationId: updateTopology
parameters:
- in: path
name: topologyId
required: true
schema:
type: string
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateUpdateTopology'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Topology'
description: Success
summary: Updating a topology
tags:
- Topologies
delete:
description: >-
This method destroys an existing topology. It renders topology itself. It renders a 404 if id is invalid.
Authorization: Only users that have the right to manage topologies.
operationId: deleteTopology
parameters:
- in: path
name: topologyId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Topology'
description: Success
summary: Deleting a topology
tags:
- Topologies
get:
description: >-
This method renders a topology from given id.
Authorization: only users that have the right to manage topologies.
operationId: getTopology
parameters:
- in: path
name: topologyId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Topology'
description: Success
summary: Getting a topology from its id
tags:
- Topologies
/topologies:
post:
description: >-
This method creates a topology. In case of success it renders the topology, otherwise, it renders an error (422 HTTP code).
Authorization: Only users that have the right to manage topologies.
operationId: createTopology
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateUpdateTopology'
responses:
'200':
description: Created topology
content:
application/json:
schema:
$ref: '#/components/schemas/Topology'
summary: Creating a topology
tags:
- Topologies
get:
description: >-
This method renders all topologies ordered by name (in alphabetical order).
Authorization: Only users that have the right to manage topologies
operationId: getAllTopologies
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllTopologiesResponse'
description: Success
summary: Getting all topologies
tags:
- Topologies
/attachments:
get:
description: This method renders attachments ordered by creation date (descending).
operationId: getAllAttachments
parameters:
- description: The record index to start. Default value is 0.
in: query
name: offset
required: false
schema:
format: int32
type: integer
- description: >-
The max number of records to return. Default value is 30, max value
is 150.
in: query
name: limit
required: false
schema:
format: int32
type: integer
- description: >-
Search parameter for file extension (e.g. pdf, xlsx, jpg...)
in: query
name: extension
required: false
schema:
type: string
- description: >-
Search parameter to get attachments created before a ISO 8601 datetime (inclusive)
in: query
name: created_before
required: false
schema:
type: string
- description: >-
Search parameter to get attachments created after a ISO 8601 datetime (inclusive)
in: query
name: created_after
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllAttachmentsResponse'
description: Success
summary: Getting all attachments
tags:
- Attachments
post:
description: This method allows you to create an new attachment.
operationId: createAttachment
requestBody:
content:
'multipart/form-data:':
schema:
properties:
file:
format: binary
type: string
private:
enum:
- 'true'
- =1
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Attachment'
description: Success
'422':
description: Compose is not supported on this source (compose_disabled_on_source)
summary: Creating an attachment
tags:
- Attachments
'/attachments/{attachmentId}':
get:
description: This method renders an attachment from given id.
operationId: getAttachment
parameters:
- in: path
name: attachmentId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Attachment'
description: Success
summary: Getting an attachment from its id
tags:
- Attachments
'/bots/engage':
post:
description: This method is used to engage a thread from a bot. In case of success
it renders the intervention, otherwise, it renders an error (422 HTTP
code). This method opens intervention as the virtual agent user.
operationId: botEngage
parameters:
- description: The content_id of the content for which you want to engage the bot.
in: query
name: content_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Intervention'
description: Success
'422':
description: Unprocessable Entity
summary: Bot engage
tags:
- Bots
'/bots/complete':
post:
description: This method is used to complete an intervention from a bot (closing the intervention and completing the task).
In case of success it renders 200, otherwise, it renders an error (422 HTTP
code).
operationId: botComplete
parameters:
- description: The intervention_id of the intervention that you want to complete.
in: query
name: intervention_id
required: true
schema:
type: string
- description: Wether if the thread should be closed at the same time.
in: query
name: close_thread
required: false
schema:
type: boolean
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BotCompleteResponse'
description: Success
'422':
description: Unprocessable Entity
summary: Bot complete
tags:
- Bots
'/bots/handover':
post:
description: This method is used to handover a conversation between a bot and an agent.
It handles 2 different cases, specific sources handover (Messenger for example, see Bots API doc)
and handover between Virtual Agents and human agents. This method recategorizes the thread if the thread_category_ids parameter is provided.
operationId: handoverFromBotToAgent
parameters:
- description: Who we are taking the conversation control from (either bot or agent).
in: query
name: from
required: true
schema:
type: string
- description: Who we are giving the convesation control to (either bot or agent).
in: query
name: to
required: true
schema:
type: string
- description: The type of handover (either type of channel or engage_virtual_agent).
in: query
name: type
required: true
schema:
type: string
- description: The foreign_id of the identity for which you want to do the handover (only for source specific handover).
in: query
name: identity_foreign_id
required: true
schema:
type: string
- description: The id of the Facebook's app that controls the Bot (only for source specific handover).
in: query
name: app_id
required: false
schema:
type: string
- description: The id of the intervention that we want to handover (only for Virtual Agent handover).
in: query
name: intervention_id
required: false
schema:
type: string
- description: An array containing the new categories to set on the thread.
explode: true
in: query
name: 'thread_category_ids[]'
required: false
schema:
items:
type: string
type: array
- description: The string configured in the handover rules trigger field of the Virtual Agent.
in: query
name: trigger
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/HandoverFromBotToAgentResponse'
description: Success
summary: Bot handover
tags:
- Bots
/categories:
get:
description: This method renders categories ordered by creation date (ascending).
operationId: getAllCategories
parameters:
- description: To filter categories on given category ids (separated by commas).
in: query
name: ids
example: '59248c4dae276a021cb296d2,ff0dc9ba250002871f7aabba'
required: false
schema:
type: string
- description: To filter categories on given category parent id.
in: query
name: parent_id
required: false
schema:
type: string
- description: The record index to start. Default value is 0.
in: query
name: offset
required: false
schema:
format: int32
type: integer
- description: >-
The max number of records to return. Default value is 30, max value
is 150.
in: query
name: limit
required: false
schema:
format: int32
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllCategoriesResponse'
description: Success
summary: Getting all categories
tags:
- Categories
post:
description: >-
This method creates a new team. In case of success it renders the
created tag, otherwise, it renders an error (422 HTTP code).
Note: The fields `mandatory`, `multiple`, `post_qualification`,
`source_ids` and `unselectable` are accounted for only if the
Category has no parent.
Authorization: only users that can manage teams.
operationId: createCategory
parameters:
- description: Category name.
in: query
name: name
required: false
schema:
type: string
- description: ID of parent category.
in: query
name: parent_id
required: false
schema:
type: string
- description: 'displayed color for the category, see Category colors. '
in: query
name: color
required: false
schema:
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
type: integer
- description: mandatory categorization (Boolean).
in: query
name: mandatory
required: false
schema:
type: boolean
- description: allow to assign multiple child categories (Boolean).
in: query
name: multiple
required: false
schema:
type: boolean
- description: post qualification (Boolean).
in: query
name: post_qualification
required: false
schema:
type: boolean
- description: root category is unselectable (Boolean).
in: query
name: unselectable
required: false
schema:
type: boolean
- description: List of source id.
in: query
name: 'source_ids[]'
required: false
schema:
items:
type: string
type: array
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Category'
description: Success
summary: Creating a category
tags:
- Categories
'/categories/{categoryId}':
delete:
description: >-
This method destroys an existing category. It renders the category
itself. It renders a 404 if id is invalid.
operationId: deleteCategory
parameters:
- in: path
name: categoryId
required: true
schema:
type: string
- description: ID of a category to recategorize (optional).
in: query
name: take_over_category_id
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Category'
description: Success
summary: Deleting a category
tags:
- Categories
get:
description: This method renders a category from given id.
operationId: getCategory
parameters:
- in: path
name: categoryId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Category'
description: Success
summary: Getting a category from its id
tags:
- Categories
put:
description: >-
This method creates a new team. In case of success it renders the
created tag, otherwise, it renders an error (422 HTTP code).
Note: The fields `mandatory`, `multiple`, `post_qualification`,
`source_ids` and `unselectable` are accounted for only if the
Category has no parent.
Authorization: only users that can manage teams.
operationId: updateCategory
parameters:
- in: path
name: categoryId
required: true
schema:
type: string
- description: Category name.
in: query
name: name
required: false
schema:
type: string
- description: ID of parent category.
in: query
name: parent_id
required: false
schema:
type: string
- description: 'displayed color for the category, see Category colors. '
in: query
name: color
required: false
schema:
type: integer
- description: mandatory categorization (Boolean).
in: query
name: mandatory
required: false
schema:
type: boolean
- description: allow to assign multiple child categories (Boolean).
in: query
name: multiple
required: false
schema:
type: boolean
- description: post qualification (Boolean).
in: query
name: post_qualification
required: false
schema:
type: boolean
- description: root category is unselectable (Boolean).
in: query
name: unselectable
required: false
schema:
type: boolean
- description: List of source id.
in: query
name: 'source_ids[]'
required: false
schema:
items:
type: string
type: array
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Category'
description: Success
summary: Updating a category
tags:
- Categories
/channels:
get:
description: This method renders all channels ordered by date of creation.
operationId: getAllChannels
parameters:
- description: The record index to start. Default value is 0.
in: query
name: offset
required: false
schema:
format: int32
type: integer
- description: >-
The max number of records to return. Default value is 30, max value
is 150.
in: query
name: limit
required: false
schema:
format: int32
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllChannelsResponse'
description: Success
summary: Getting all channels
tags:
- Channels
'/channels/{channelId}':
get:
description: This method renders a channel from given id.
operationId: getChannel
parameters:
- in: path
name: channelId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
description: Success
summary: Getting a channel from its id
tags:
- Channels
put:
description: >-
This method updates an existing channel from given attributes and
renders it in case of success.
Authorization: only users that are able to update channels.
operationId: updateChannel
parameters:
- in: path
name: channelId
required: true
schema:
type: string
- description: The name of the channel.
in: query
name: name
required: false
schema:
type: string
- description: >-
An array containing id of each source assigned to a channel
(multiple).
in: query
name: 'source_ids[]'
required: false
schema:
items:
type: string
type: array
- description: >-
Number of tasks that can be assigned to agent by the routing before
they are considered "occupied".
in: query
name: soft_capability
required: false
schema:
type: integer
- description: Maximum number of tasks that can be assigned to agents.
in: query
name: hard_capability
required: false
schema:
type: integer
- description: this field defines the time before a task expires (in seconds).
in: query
name: task_timeout_seconds
required: false
schema:
type: integer
- description: Agent SLA in seconds.
in: query
name: agent_sla
required: false
schema:
type: integer
- description: Agent SLA warning threshold (must be greater than 0 and less than 100, default value is 0).
in: query
name: agent_sla_threshold
required: false
schema:
type: integer
- description: Time before a task is auto completed (in seconds).
in: query
name: task_auto_complete_seconds
required: false
schema:
type: integer
- description: >-
An array containing id of each category set when auto completing a task
(multiple).
in: query
name: 'auto_complete_category_ids[]'
required: false
schema:
items:
type: string
type: array
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
description: Success
summary: Updating a channel
tags:
- Channels
/communities:
get:
description: This method renders communities ordered by creation date (ascending).
operationId: getAllCommunities
parameters:
- description: The record index to start. Default value is 0.
in: query
name: offset
required: false
schema:
format: int32
type: integer
- description: >-
The max number of records to return. Default value is 30, max value
is 150.
in: query
name: limit
required: false
schema:
format: int32
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllCommunitiesResponse'
description: Success
summary: Getting all communities
tags:
- Communities
'/communities/{communityId}':
get:
description: This method renders a community from given id.
operationId: getCommunity
parameters:
- in: path
name: communityId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Community'
description: Success
summary: Getting a community from its id
tags:
- Communities
/content_sources:
get:
description: This method renders sources ordered by creation date (ascending).
operationId: getAllSources
parameters:
- description: Filter by user permissions. Default on read for backward compatibility.
in: query
name: permission
required: false
schema:
type: string
enum: [read, initiate_discussion]
- description: The record index to start. Default value is 0.
in: query
name: offset
required: false
schema:
format: int32
type: integer
- description: Filter by active state
in: query
name: active
required: false
schema:
type: boolean
- description: >-
The max number of records to return. Default value is 30, max value
is 150.
in: query
name: limit
required: false
schema:
format: int32
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllSourcesResponse'
description: Success
summary: Getting all sources
tags:
- Sources
'/content_sources/{sourceId}':
get:
description: This method renders a source from given id.
operationId: getSource
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Source'
description: Success
summary: Getting a source from its id
tags:
- Sources
put:
description: >-
This method updates an existing source from given attributes and renders
it in case of success.
operationId: updateSource
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
- description: Source name
in: query
name: name
required: false
schema:
type: string
- description: Activate/deactivate the source (Boolean)
in: query
name: active
required: false
schema: