-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathopenapi.json
More file actions
8505 lines (8505 loc) · 306 KB
/
openapi.json
File metadata and controls
8505 lines (8505 loc) · 306 KB
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": {
"title": "FreeClimb API",
"version": "1.0.0",
"description": "FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.",
"contact": {
"name": "FreeClimb API Support",
"url": "https://www.freeclimb.com/support/",
"email": "support@freeclimb.com"
}
},
"servers": [
{
"url": "https://www.freeclimb.com/apiserver"
}
],
"components": {
"parameters": {
"AccountId": {
"name": "accountId",
"in": "path",
"description": "ID of the account",
"required": true,
"schema": {
"type": "string",
"pattern": "AC[0-9a-fA-F]{40}",
"example": "AC170e4c66d358aa1755931da0452561933d1b8fd5"
}
},
"Capabilities.Voice": {
"name": "capabilities.voice",
"in": "query",
"description": "",
"required": false,
"schema": {
"type": "boolean"
}
},
"Capabilities.Sms": {
"name": "capabilities.sms",
"in": "query",
"description": "",
"required": false,
"schema": {
"type": "boolean"
}
},
"Capabilities.TollFree": {
"name": "capabilities.tollFree",
"in": "query",
"description": "",
"required": false,
"schema": {
"type": "boolean"
}
},
"Capabilities.TenDLC": {
"name": "capabilities.tenDLC",
"in": "query",
"description": "",
"required": false,
"schema": {
"type": "boolean"
}
},
"Capabilities.ShortCode": {
"name": "capabilities.shortCode",
"in": "query",
"description": "",
"required": false,
"schema": {
"type": "boolean"
}
}
},
"securitySchemes": {
"fc": {
"scheme": "basic",
"type": "http",
"description": "HTTP requests to the FreeClimb REST API are protected with HTTP Basic authentication --- you use your FreeClimb-generated account ID and API key to authenticate each HTTP request. You can view your credentials under the API Keys section in your Dashboard."
}
},
"schemas": {
"accountId": {
"type": "string",
"pattern": "AC[0-9a-fA-F]{40}",
"example": "AC0534faec6b32da45f36166674d65b3903f784141"
},
"blobId": {
"type": "string",
"description": "Identifier which can be used to reference this blob in future interations.",
"pattern": "BL[0-9a-fA-F]{40}",
"example": "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7"
},
"AccountStatus": {
"type": "string",
"enum": ["closed", "suspended", "active"],
"description": "The status of this account. It is one of: active, suspended, or closed.",
"nullable": true
},
"AccountType": {
"type": "string",
"description": "The type of this account. It is one of: trial or full.",
"enum": ["trial", "full"],
"nullable": true
},
"AnsweredBy": {
"type": "string",
"nullable": true,
"enum": ["human", "machine"],
"description": "If this Call was initiated with answering machine detection, either `human` or `machine`. Empty otherwise."
},
"CallDirection": {
"type": "string",
"nullable": true,
"enum": ["inbound", "outboundAPI", "outboundDial"],
"description": "Direction of the Call. `inbound` for Calls into FreeClimb, `outboundAPI` for Calls initiated via the REST API, `outboundDial` for Calls initiated by the `OutDial` PerCL command."
},
"CallStatus": {
"type": "string",
"nullable": true,
"enum": [
"queued",
"ringing",
"inProgress",
"canceled",
"completed",
"failed",
"busy",
"noAnswer"
],
"description": "* `queued` – Call is ready and waiting in line before going out. * `ringing` – Call is currently ringing. * `inProgress` – Call was answered and is currently in progress. * `canceled` – Call was hung up while it was queued or ringing. * `completed` – Call was answered and has ended normally. * `busy` – Caller received a busy signal. * `failed` – Call could not be completed as dialed, most likely because the phone number was non-existent. * `noAnswer` – Call ended without being answered."
},
"CallEndedReason": {
"type": "string",
"nullable": true,
"enum": [
"busy",
"failed",
"noAnswer",
"callCanceled",
"farEndHangup",
"appHangup",
"appReject",
"appNoPercl",
"appInvalidPercl",
"conferenceTerminated",
"conferenceEmptied",
"removedFromConference",
"machineDetected",
"webhookFailed",
"webhookInvalidResponse",
"voiceDisabled",
"configErrorNoApplication",
"configErrorNoVoiceUrl",
"maxRedirectsError",
"perclProcessingError",
"internalError",
"grpcHangup",
"maxDuration"
],
"description": "Enhanced status for the Call with additional information where available."
},
"GetDigitsReason": {
"type": "string",
"enum": ["finishKey", "timeout", "maxDigits", "tone"],
"description": "This field explains how the GetDigits action ended. The value is one of the below: •finishKey - The finish key as specified had been pressed by the caller. Digit string has all keys up to, but not including, the finish key. •timeout - The timeout limit was reached prior to any other criteria being met. If any digits were collected, they will be included. •maxDigits - The maximum number of digits was reached and digit collection ended. •tone - Answering machine or fax tone detection occurred, interrupting digit collection. Any digits received up to this point are included in this webhook."
},
"ConferenceStatus": {
"type": "string",
"nullable": true,
"enum": ["empty", "populated", "inProgress", "terminated"],
"description": "The status of the Conference. One of: creating, empty, populated, inProgress, or terminated."
},
"GetSpeechReason": {
"type": "string",
"enum": [
"error",
"hangup",
"digit",
"noInput",
"noMatch",
"recognition"
]
},
"GrammarFileBuiltIn": {
"type": "string",
"enum": [
"ALPHNUM6",
"ANY_DIG",
"DIG1",
"DIG2",
"DIG3",
"DIG4",
"DIG5",
"DIG6",
"DIG7",
"DIG8",
"DIG9",
"DIG10",
"DIG11",
"UP_TO_20_DIGIT_SEQUENCE",
"VERSAY_YESNO"
]
},
"GrammarType": {
"type": "string",
"enum": ["URL", "BUILTIN"],
"nullable": true,
"description": "The grammar file type to use for speech recognition. A value of 'URL' indicates the grammarFile attribute specifies a URL that points to the grammar file. A value of `BUILTIN` indicates the grammarFile attribute specifies the name of one of the platform built-in grammar files."
},
"IfMachine": {
"type": "string",
"enum": ["redirect", "hangup"],
"description": "Specifies how FreeClimb should handle this OutDial if an answering machine answers the Call. Valid values: `redirect` invokes the ifMachineUrl for instructions. `hangup` hangs up the Call. The ifMachineUrl will not be invoked."
},
"Language": {
"type": "string",
"enum": [
"ca-ES",
"da-DK",
"de-DE",
"en-AU",
"en-CA",
"en-GB",
"en-IN",
"en-US",
"es-ES",
"es-MX",
"fi-FI",
"fr-CA",
"fr-FR",
"it-IT",
"ja-JP",
"ko-KR",
"nb-NO",
"nl-NL",
"pl-PL",
"pt-BR",
"pt-PT",
"ru-RU",
"sv-SE",
"zh-CN",
"zh-HK",
"zh-TW"
]
},
"LogLevel": {
"type": "string",
"enum": ["info", "warning", "error"],
"nullable": true,
"description": "Level of the log. Possible values are info, warning, and error."
},
"MachineType": {
"type": "string",
"enum": ["answering machine", "fax modem"]
},
"MessageDirection": {
"type": "string",
"enum": ["inbound", "outbound"]
},
"MessageStatus": {
"type": "string",
"nullable": true,
"description": "Indicates the state of the message through the message lifecycle including: new, queued, rejected, sending, sent, failed, received, undelivered, expired, deleted, and unknown",
"enum": [
"new",
"queued",
"rejected",
"sending",
"sent",
"failed",
"received",
"undelivered",
"expired",
"deleted",
"unknown"
]
},
"PlayBeep": {
"type": "string",
"nullable": true,
"enum": ["always", "never", "entryOnly", "exitOnly"],
"description": "Indicates whether to play a beep when a Participant enters or leaves the Conference. either `always`, `never`, `entryOnly`, or `exitOnly`. Leaving this unset will make conference default to `always` "
},
"QueueResultStatus": {
"type": "string",
"enum": ["queueFull", "dequeued", "hangup", "systemError"]
},
"RecordUtteranceTermReason": {
"type": "string",
"enum": ["finishKey", "timeout", "hangup", "maxLength"]
},
"BargeInReason": {
"type": "string",
"enum": ["noBargeIn", "bargeInByDTMF", "bargeInByEnergy"]
},
"TranscribeTermReason": {
"type": "string",
"enum": ["error", "completed"]
},
"TranscribeReason": {
"type": "string",
"enum": ["internalError", "hangup", "maxLength", "digit", "noInput"]
},
"RequestType": {
"type": "string",
"enum": [
"inboundCall",
"record",
"getDigits",
"getSpeech",
"redirect",
"pause",
"outDialStart",
"outDialConnect",
"outDialApiConnect",
"machineDetected",
"dequeue",
"queueWait",
"addToQueueNotification",
"removeFromQueueNotification",
"callStatus",
"createConference",
"conferenceStatus",
"leaveConference",
"addToConferenceNotification",
"conferenceRecordingStatus",
"conferenceCallControl",
"messageDelivery",
"messageStatus"
]
},
"UpdateCallRequestStatus": {
"type": "string",
"enum": ["canceled", "completed"],
"description": "Either `canceled` or `completed`. Specifying `canceled` attempts to hang up calls that are queued without affecting calls already in progress. Specifying `completed` attempts to hang up a call already in progress."
},
"UpdateConferenceRequestStatus": {
"type": "string",
"enum": ["empty", "terminated"],
"description": "New status of the conference. Valid values: `empty` or `terminated`. For more information, see **Status Parameter** below.**"
},
"SMSTollFreeCampaignRegistrationStatus": {
"type": "string",
"description": "Current toll-free campaign registration status.Possible values: UNREGISTERED,INITIATED,PENDING,DECLINED,REGISTERED. A newly created campaign defaults to INITIATED status. ",
"enum": [
"UNREGISTERED",
"INITIATED",
"PENDING",
"DECLINED",
"REGISTERED"
]
},
"SMSTenDLCCampaignStatus": {
"type": "string",
"description": "Current campaign status. Possible values: ACTIVE, EXPIRED. A newly created campaign defaults to ACTIVE status. ",
"enum": ["ACTIVE", "EXPIRED"]
},
"SMSTenDLCPartnerCampaignStatus": {
"type": "string",
"description": "Current campaign status. Possible values: ACTIVE, EXPIRED. A newly created campaign defaults to ACTIVE status. ",
"enum": ["ACTIVE", "EXPIRED"]
},
"SMSTenDLCBrandEntityType": {
"maxLength": 20,
"type": "string",
"description": "Entity type behind the brand. This is the form of business establishment.",
"enum": [
"PRIVATE_PROFIT",
"PUBLIC_PROFIT",
"NON_PROFIT",
"GOVERNMENT",
"SOLE_PROPRIETOR"
]
},
"SMSTenDLCBrandRelationship": {
"type": "string",
"description": "Brand relationship to the CSP",
"enum": [
"BASIC_ACCOUNT",
"SMALL_ACCOUNT",
"MEDIUM_ACCOUNT",
"LARGE_ACCOUNT",
"KEY_ACCOUNT"
]
},
"SMSTenDLCBrandStockExchange": {
"type": "string",
"description": "(Required for public company) stock exchange.",
"example": "NASDAQ",
"enum": [
"NONE",
"NASDAQ",
"NYSE",
"AMEX",
"AMX",
"ASX",
"B3",
"BME",
"BSE",
"FRA",
"ICEX",
"JPX",
"JSE",
"KRX",
"LON",
"NSE",
"OMX",
"SEHK",
"SGX",
"SSE",
"STO",
"SWX",
"SZSE",
"TSX",
"TWSE",
"VSE",
"OTHER"
]
},
"SMSTenDLCBrandAltBusinessIdType": {
"type": "string",
"enum": ["NONE", "DUNS", "GIIN", "LEI"],
"description": "The type of the Alternative business identifier"
},
"SMSTenDLCBrandIdentityStatus": {
"type": "string",
"description": "TCR assessment of the brand identification status.",
"enum": ["SELF_DECLARED", "UNVERIFIED", "VERIFIED", "VETTED_VERIFIED"]
},
"CompletionResultStatus": {
"type": "string",
"description": "Completion result status. Possible values: success, no_context",
"enum": ["success", "no_context"]
},
"SMSTenDLCOptionalAttributes": {
"type": "object",
"description": "Optional brand attributes. Please refer to GET /enum/optionalAttributeNames for dictionary of optional attribute names.",
"additionalProperties": true
},
"PerclScript": {
"type": "object",
"description": "A PerCL script to be returned to the FreeClimb servers in FreeClimb applications",
"properties": {
"commands": {
"type": "array",
"description": "A JSON array of PerCL commands",
"items": {
"$ref": "#/components/schemas/PerclCommand"
}
}
}
},
"PerclCommand": {
"type": "object",
"description": "An individual command used in a PerCLScript.",
"discriminator": {
"propertyName": "command",
"mapping": {
"AddToConference": "#/components/schemas/AddToConference",
"CreateConference": "#/components/schemas/CreateConference",
"Dequeue": "#/components/schemas/Dequeue",
"Enqueue": "#/components/schemas/Enqueue",
"GetDigits": "#/components/schemas/GetDigits",
"GetSpeech": "#/components/schemas/GetSpeech",
"Hangup": "#/components/schemas/Hangup",
"OutDial": "#/components/schemas/OutDial",
"Pause": "#/components/schemas/Pause",
"Park": "#/components/schemas/Park",
"Play": "#/components/schemas/Play",
"PlayEarlyMedia": "#/components/schemas/PlayEarlyMedia",
"RecordUtterance": "#/components/schemas/RecordUtterance",
"Redirect": "#/components/schemas/Redirect",
"Reject": "#/components/schemas/Reject",
"RemoveFromConference": "#/components/schemas/RemoveFromConference",
"Say": "#/components/schemas/Say",
"SendDigits": "#/components/schemas/SendDigits",
"SetListen": "#/components/schemas/SetListen",
"SetTalk": "#/components/schemas/SetTalk",
"SetDTMFPassThrough": "#/components/schemas/SetDTMFPassThrough",
"Sms": "#/components/schemas/Sms",
"StartRecordCall": "#/components/schemas/StartRecordCall",
"TerminateConference": "#/components/schemas/TerminateConference",
"TranscribeUtterance": "#/components/schemas/TranscribeUtterance",
"Unpark": "#/components/schemas/Unpark"
}
},
"properties": {
"command": {
"type": "string",
"description": "Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments)"
}
}
},
"Webhook": {
"type": "object",
"discriminator": {
"propertyName": "requestType",
"mapping": {
"addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook",
"addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook",
"callControl": "#/components/schemas/CallControlWebhook",
"callStatus": "#/components/schemas/CallStatusWebhook",
"conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook",
"conferenceStatus": "#/components/schemas/ConferenceStatusWebhook",
"createConference": "#/components/schemas/CreateConferenceWebhook",
"dequeue": "#/components/schemas/DequeueWebhook",
"getDigits": "#/components/schemas/GetDigitsWebhook",
"getSpeech": "#/components/schemas/GetSpeechWebhook",
"inboundCall": "#/components/schemas/InboundCallWebhook",
"leaveConference": "#/components/schemas/LeaveConferenceWebhook",
"machineDetected": "#/components/schemas/MachineDetectedWebhook",
"messageDelivery": "#/components/schemas/MessageDeliveryWebhook",
"messageStatus": "#/components/schemas/MessageStatusWebhook",
"outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook",
"outDialConnect": "#/components/schemas/OutDialConnectWebhook",
"outDialStart": "#/components/schemas/OutDialStartWebhook",
"queueWait": "#/components/schemas/QueueWaitWebhook",
"record": "#/components/schemas/RecordWebhook",
"redirect": "#/components/schemas/RedirectWebhook",
"removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook",
"transcribe": "#/components/schemas/TranscribeWebhook"
}
},
"properties": {
"requestType": {
"type": "string",
"description": "Type of webhook request"
}
}
},
"AddToConferenceNotificationWebhook": {
"description": "A Call has been bridged to a Conference and the AddToConference command’s notificationUrl is being invoked. This is a notification only; any PerCL returned will be ignored.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be addToConferenceNotification - A Call has been bridged to a conference and the addToConference command’s notificationUrl is being invoked."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/ConferenceStatus"
},
"recordingUrl": {
"type": "string",
"description": "URL of the Conference’s recorded audio. Populated only if a Recording exists and the Conference was emptied.",
"format": "uri"
},
"recordingId": {
"type": "string",
"description": "Unique ID of the Recording from this Conference. Populated only if a recording exists and the Conference was emptied."
},
"recordingDurationSec": {
"type": "integer",
"description": "Duration of the recorded audio (in seconds), rounded up to the nearest second. Populated only if a Recording exists and the Conference was emptied."
}
}
}
]
},
"AddToQueueNotificationWebhook": {
"description": "A Call has been added to a Queue and the Enqueue command’s notificationUrl is being invoked. This is a notification only; any PerCL returned will be ignored.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be addToQueueNotification - A call has been added to a queue and the Enqueue command’s notificationUrl is being invoked."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
}
}
}
]
},
"CallControlWebhook": {
"description": "The digit sequence defined in the callControlSequence attribute of the AddToConference PerCL command has been entered by the Conference participant. A PerCL response is expected. If invalid PerCL is provided, the call leg which triggered this webhook will terminate.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be callControl."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"digits": {
"type": "string",
"description": "String of digits entered by the participant."
}
}
}
]
},
"CallStatusWebhook": {
"description": "A Call has ended and the statusCallbackUrl is being invoked. This is a notification only; All PerCL commands will be ignored.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be callStatus - A Call has ended and the statusCallbackUrl is being invoked."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"callEndedReason": {
"$ref": "#/components/schemas/CallEndedReason"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
}
}
}
]
},
"ConferenceRecordingStatusWebhook": {
"description": "The statusCallbackUrl request includes Recording information for a Conference that ended. This is a notification only; any PerCL returned will be ignored.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be conferenceRecordingStatus - The statusCallbackUrl request includes Recording information for a Conference that ended."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/ConferenceStatus"
},
"recordingUrl": {
"type": "string",
"description": "URL of the Conference’s recorded audio. Populated only if a Recording exists and the Conference was emptied.",
"format": "uri"
},
"recordingId": {
"type": "string",
"description": "Unique ID of the Recording from this Conference. Populated only if a recording exists and the Conference was emptied."
},
"recordingDurationSec": {
"type": "integer",
"description": "Duration of the recorded audio (in seconds), rounded up to the nearest second. Populated only if a Recording exists and the Conference was emptied."
}
}
}
]
},
"ConferenceStatusWebhook": {
"description": "The context or reason why this request is being made. Will be conferenceStatus - A Conference's status changed and its statusCallbackUrl is being invoked.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be conferenceRecordingStatus - The statusCallbackUrl request includes Recording information for a Conference that ended."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/ConferenceStatus"
},
"recordingUrl": {
"type": "string",
"description": "The URL of the Conference’s recorded audio. Populated only if a Recording exists and the Conference was emptied. Present only if statusCallbackUrl is being invoked.",
"format": "uri",
"nullable": true
},
"recordingId": {
"type": "string",
"description": "The unique ID of the Recording from this Conference. Populated only if a Recording exists and the Conference was emptied. Present only if statusCallbackUrl is being invoked.",
"nullable": true
},
"recordingDurationSec": {
"type": "integer",
"description": "The duration of the recorded audio rounded up to the nearest second (in seconds). Populated only if a Recording exists and the Conference was emptied. Present only if statusCallbackUrl is being invoked.",
"nullable": true
}
}
}
]
},
"CreateConferenceWebhook": {
"description": "A Conference has been created and its statusCallbackUrl or actionUrl is being invoked. A PerCL response is expected if the actionUrl is being invoked.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be createConference - A Conference has been created and its statusCallbackUrl or actionUrl is being invoked."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/ConferenceStatus"
},
"recordingUrl": {
"type": "string",
"description": "The URL of the Conference’s recorded audio. Populated only if a Recording exists and the Conference was emptied. Present only if statusCallbackUrl is being invoked.",
"format": "uri",
"nullable": true
},
"recordingId": {
"type": "string",
"description": "The unique ID of the Recording from this Conference. Populated only if a Recording exists and the Conference was emptied. Present only if statusCallbackUrl is being invoked.",
"nullable": true
},
"recordingDurationSec": {
"type": "integer",
"description": "The duration of the recorded audio rounded up to the nearest second (in seconds). Populated only if a Recording exists and the Conference was emptied. Present only if statusCallbackUrl is being invoked.",
"nullable": true
}
}
}
]
},
"DequeueWebhook": {
"description": "A queued call has been dequeued and the actionUrl of the corresponding Enqueue action is being invoked. A PerCL response is expected.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be dequeue - A queued call has been dequeued and the actionUrl of the corresponding Enqueue action is being invoked."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."
},
"accountId": {
"type": "string",
"description": "Account ID associated with your account."
},
"from": {
"type": "string",
"description": "Phone number of the party that initiated the Call (in E.164 format)."
},
"to": {
"type": "string",
"description": "Phone number provisioned to you and to which this Call is directed (in E.164 format)."
},
"callStatus": {
"$ref": "#/components/schemas/CallStatus"
},
"direction": {
"$ref": "#/components/schemas/CallDirection"
},
"conferenceId": {
"type": "string",
"description": "Unique ID of the Conference."
},
"queueId": {
"type": "string",
"description": "This is only populated if the request pertains to a Queue. Otherwise, it is set to null.",
"nullable": true
},
"queueResult": {
"type": "string",
"description": "The final result of the enqueued Call. Valid values are: •dequeued - Enqueued caller exited the Queue via a Dequeue action (Dequeue command or Queue Members POST REST API)."
},
"queueTime": {
"type": "integer",
"description": "Time (in seconds) the call spent in the Queue. This is only available if the Call was actually enqueued.",
"nullable": true
}
}
}
]
},
"GetDigitsWebhook": {
"description": "A POST request with the following fields will be sent to the actionUrl provided in your GetDigits command.",
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"requestType": {
"type": "string",
"description": "Context or reason why this request is being made. Will be getDigits - The GetDigits command has completed and its actionUrl is being invoked."
},
"callId": {
"type": "string",
"description": "Unique ID for this Call, generated by FreeClimb."