bandwidth-sdk 18.3.1 → 19.0.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/README.md +1 -10
- data/Rakefile +1 -1
- data/bandwidth.yml +285 -109
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +1400 -1051
- data/coverage/index.html +20186 -16225
- data/custom_templates/api_client.mustache +3 -1
- data/custom_templates/configuration.mustache +18 -12
- data/custom_templates/gem.mustache +2 -2
- data/docs/Callback.md +1 -0
- data/docs/CallsApi.md +5 -25
- data/docs/ConferencesApi.md +9 -45
- data/docs/DisconnectCallback.md +6 -2
- data/docs/EndpointsApi.md +5 -25
- data/docs/InboundCallback.md +1 -1
- data/docs/InboundCallbackMessage.md +2 -0
- data/docs/InitiateCallback.md +1 -1
- data/docs/LookupResult.md +2 -2
- data/docs/MFAApi.md +3 -15
- data/docs/MediaApi.md +4 -20
- data/docs/Message.md +1 -1
- data/docs/MessagesApi.md +2 -10
- data/docs/MultiChannelAction.md +3 -3
- data/docs/MultiChannelActionCalendarEvent.md +3 -3
- data/docs/MultiChannelApi.md +1 -5
- data/docs/PhoneNumberLookupApi.md +3 -15
- data/docs/RbmActionBase.md +3 -3
- data/docs/RbmActionDial.md +3 -3
- data/docs/RbmActionOpenUrl.md +3 -3
- data/docs/RbmActionViewLocation.md +3 -3
- data/docs/RbmSession.md +26 -0
- data/docs/RbmSuggestionResponse.md +4 -4
- data/docs/RecordingsApi.md +10 -50
- data/docs/StatisticsApi.md +1 -5
- data/docs/StatusCallback.md +2 -2
- data/docs/StatusCallbackMessage.md +3 -1
- data/docs/TollFreeVerificationApi.md +9 -45
- data/docs/TranscriptionsApi.md +3 -15
- data/docs/TransferDisconnectCallback.md +7 -1
- data/lib/bandwidth-sdk/api/calls_api.rb +5 -5
- data/lib/bandwidth-sdk/api/conferences_api.rb +9 -9
- data/lib/bandwidth-sdk/api/endpoints_api.rb +5 -5
- data/lib/bandwidth-sdk/api/media_api.rb +4 -4
- data/lib/bandwidth-sdk/api/messages_api.rb +2 -2
- data/lib/bandwidth-sdk/api/mfa_api.rb +3 -3
- data/lib/bandwidth-sdk/api/multi_channel_api.rb +1 -1
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +3 -3
- data/lib/bandwidth-sdk/api/recordings_api.rb +10 -10
- data/lib/bandwidth-sdk/api/statistics_api.rb +1 -1
- data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +9 -9
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +3 -3
- data/lib/bandwidth-sdk/api_client.rb +3 -1
- data/lib/bandwidth-sdk/configuration.rb +18 -19
- data/lib/bandwidth-sdk/models/callback.rb +1 -0
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +27 -5
- data/lib/bandwidth-sdk/models/inbound_callback_message.rb +10 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +1 -0
- data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_base.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_dial.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_session.rb +208 -0
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +2 -2
- data/lib/bandwidth-sdk/models/status_callback_message.rb +13 -4
- data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +2 -1
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +37 -5
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +3 -2
- data/spec/smoke/calls_api_spec.rb +46 -46
- data/spec/smoke/conferences_api_spec.rb +1 -1
- data/spec/smoke/endpoints_api_spec.rb +2 -31
- data/spec/smoke/media_api_spec.rb +2 -0
- data/spec/smoke/messages_api_spec.rb +2 -24
- data/spec/smoke/mfa_api_spec.rb +4 -27
- data/spec/smoke/multi_channel_api_spec.rb +4 -2
- data/spec/smoke/phone_number_lookup_api_spec.rb +2 -0
- data/spec/smoke/recordings_api_spec.rb +1 -1
- data/spec/smoke/smoke_helper.rb +41 -0
- data/spec/smoke/statistics_api_spec.rb +2 -37
- data/spec/smoke/toll_free_verification_api_spec.rb +2 -0
- data/spec/smoke/transcriptions_api_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -48
- data/spec/unit/api/calls_api_spec.rb +3 -1
- data/spec/unit/api/conferences_api_spec.rb +2 -0
- data/spec/unit/api/endpoints_api_spec.rb +2 -0
- data/spec/unit/api/media_api_spec.rb +2 -0
- data/spec/unit/api/messages_api_spec.rb +2 -0
- data/spec/unit/api/mfa_api_spec.rb +2 -0
- data/spec/unit/api/multi_channel_api_spec.rb +2 -0
- data/spec/unit/api/phone_number_lookup_api_spec.rb +2 -0
- data/spec/unit/api/recordings_api_spec.rb +2 -0
- data/spec/unit/api/statistics_api_spec.rb +2 -0
- data/spec/unit/api/toll_free_verification_api_spec.rb +2 -0
- data/spec/unit/api/transcriptions_api_spec.rb +2 -0
- data/spec/unit/client/api_client_spec.rb +70 -206
- data/spec/unit/client/configuration_spec.rb +22 -17
- data/spec/unit/constants.rb +6 -0
- data/spec/unit/models/callback_spec.rb +1 -0
- data/spec/unit/models/disconnect_callback_spec.rb +10 -2
- data/spec/unit/models/inbound_callback_message_spec.rb +20 -5
- data/spec/unit/models/list_message_item_spec.rb +1 -0
- data/spec/unit/models/rbm_session_spec.rb +95 -0
- data/spec/unit/models/status_callback_message_spec.rb +20 -5
- data/spec/unit/models/status_callback_type_enum_spec.rb +7 -1
- data/spec/unit/models/transfer_disconnect_callback_spec.rb +16 -4
- metadata +9 -1
data/bandwidth.yml
CHANGED
|
@@ -8,7 +8,6 @@ info:
|
|
|
8
8
|
email: letstalk@bandwidth.com
|
|
9
9
|
version: 1.0.0
|
|
10
10
|
security:
|
|
11
|
-
- Basic: []
|
|
12
11
|
- OAuth2: []
|
|
13
12
|
tags:
|
|
14
13
|
- name: Messages
|
|
@@ -2015,7 +2014,7 @@ components:
|
|
|
2015
2014
|
type: string
|
|
2016
2015
|
format: date-time
|
|
2017
2016
|
description: The ISO 8601 datetime of the message.
|
|
2018
|
-
example: 2020-04-07T14:03:07.000Z
|
|
2017
|
+
example: '2020-04-07T14:03:07.000Z'
|
|
2019
2018
|
carrierName:
|
|
2020
2019
|
type: string
|
|
2021
2020
|
nullable: true
|
|
@@ -2031,6 +2030,7 @@ components:
|
|
|
2031
2030
|
messageLength:
|
|
2032
2031
|
type: integer
|
|
2033
2032
|
description: The length of the message content.
|
|
2033
|
+
nullable: true
|
|
2034
2034
|
example: 18
|
|
2035
2035
|
attachmentCount:
|
|
2036
2036
|
type: integer
|
|
@@ -2094,13 +2094,11 @@ components:
|
|
|
2094
2094
|
prevPage:
|
|
2095
2095
|
type: string
|
|
2096
2096
|
description: The link to the previous page for pagination.
|
|
2097
|
-
example:
|
|
2098
|
-
https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902
|
|
2097
|
+
example: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902
|
|
2099
2098
|
nextPage:
|
|
2100
2099
|
type: string
|
|
2101
2100
|
description: The link to the next page for pagination.
|
|
2102
|
-
example:
|
|
2103
|
-
https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&prevPage=GL83PD3C
|
|
2101
|
+
example: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&prevPage=GL83PD3C
|
|
2104
2102
|
prevPageToken:
|
|
2105
2103
|
type: string
|
|
2106
2104
|
description: The isolated pagination token for the previous page.
|
|
@@ -2201,7 +2199,7 @@ components:
|
|
|
2201
2199
|
type: string
|
|
2202
2200
|
format: date-time
|
|
2203
2201
|
description: The datetime stamp of the message in ISO 8601
|
|
2204
|
-
example: 2024-12-02T20:15:57.
|
|
2202
|
+
example: '2024-12-02T20:15:57.278201Z'
|
|
2205
2203
|
segmentCount:
|
|
2206
2204
|
$ref: '#/components/schemas/segmentCount'
|
|
2207
2205
|
direction:
|
|
@@ -2620,14 +2618,13 @@ components:
|
|
|
2620
2618
|
type: string
|
|
2621
2619
|
description: Displayed text for user to click
|
|
2622
2620
|
maxLength: 25
|
|
2623
|
-
example:
|
|
2621
|
+
example: Track my order
|
|
2624
2622
|
rbmActionPostbackData:
|
|
2625
2623
|
title: Post Back Data
|
|
2626
2624
|
type: string
|
|
2627
|
-
|
|
2628
|
-
description: Base64 payload the customer receives when the reply is clicked.
|
|
2625
|
+
description: Payload the customer receives when the reply is clicked.
|
|
2629
2626
|
maxLength: 2048
|
|
2630
|
-
example:
|
|
2627
|
+
example: track-order-43654
|
|
2631
2628
|
rbmActionBase:
|
|
2632
2629
|
type: object
|
|
2633
2630
|
properties:
|
|
@@ -2698,14 +2695,14 @@ components:
|
|
|
2698
2695
|
description: >-
|
|
2699
2696
|
The start time of the event. Must be a valid RFC-3339 value,
|
|
2700
2697
|
e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
|
|
2701
|
-
example: 2022-09-14T18:20:16.000Z
|
|
2698
|
+
example: '2022-09-14T18:20:16.000Z'
|
|
2702
2699
|
endTime:
|
|
2703
2700
|
type: string
|
|
2704
2701
|
format: date-time
|
|
2705
2702
|
description: >-
|
|
2706
2703
|
The end time of the event. Must be a valid RFC-3339 value, e.g.,
|
|
2707
2704
|
2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
|
|
2708
|
-
example: 2022-09-14T18:20:16.000Z
|
|
2705
|
+
example: '2022-09-14T18:20:16.000Z'
|
|
2709
2706
|
description:
|
|
2710
2707
|
type: string
|
|
2711
2708
|
description: The description of the event.
|
|
@@ -2877,7 +2874,7 @@ components:
|
|
|
2877
2874
|
description: The time the message was received by the Bandwidth API.
|
|
2878
2875
|
type: string
|
|
2879
2876
|
format: date-time
|
|
2880
|
-
example: 2025-01-01T18:20:16.000Z
|
|
2877
|
+
example: '2025-01-01T18:20:16.000Z'
|
|
2881
2878
|
direction:
|
|
2882
2879
|
$ref: '#/components/schemas/messageDirectionEnum'
|
|
2883
2880
|
to:
|
|
@@ -2916,8 +2913,8 @@ components:
|
|
|
2916
2913
|
properties:
|
|
2917
2914
|
text:
|
|
2918
2915
|
type: string
|
|
2919
|
-
description: The text
|
|
2920
|
-
example:
|
|
2916
|
+
description: The text of the suggestion the user tapped.
|
|
2917
|
+
example: Track my order
|
|
2921
2918
|
postbackData:
|
|
2922
2919
|
$ref: '#/components/schemas/rbmActionPostbackData'
|
|
2923
2920
|
pairedMessageId:
|
|
@@ -2938,6 +2935,70 @@ components:
|
|
|
2938
2935
|
format: double
|
|
2939
2936
|
description: The longitude of the client's location.
|
|
2940
2937
|
example: '-122.4194'
|
|
2938
|
+
rbmSession:
|
|
2939
|
+
type: object
|
|
2940
|
+
description: >-
|
|
2941
|
+
RCS interactive session information for the message.
|
|
2942
|
+
|
|
2943
|
+
An interactive session is a 24-hour window covering all Rich and Rich
|
|
2944
|
+
Media messages exchanged between an
|
|
2945
|
+
|
|
2946
|
+
RCS agent and a specific end user mobile number. It is triggered when at
|
|
2947
|
+
least 4 messages are exchanged within
|
|
2948
|
+
|
|
2949
|
+
24 hours, at least 2 of them mobile-originated and at least 1
|
|
2950
|
+
mobile-terminated.
|
|
2951
|
+
|
|
2952
|
+
Only present on `message-delivered`, `message-received` and
|
|
2953
|
+
`session-started` callbacks for RBM messages of
|
|
2954
|
+
|
|
2955
|
+
US agents with the Conversational billing category. Omitted for all
|
|
2956
|
+
other messages.
|
|
2957
|
+
properties:
|
|
2958
|
+
canInitiate:
|
|
2959
|
+
type: boolean
|
|
2960
|
+
description: >-
|
|
2961
|
+
Whether the message can start an interactive session.
|
|
2962
|
+
|
|
2963
|
+
`false` if the message is already part of an active session, or if
|
|
2964
|
+
the agent is not eligible for
|
|
2965
|
+
|
|
2966
|
+
interactive session billing.
|
|
2967
|
+
example: false
|
|
2968
|
+
id:
|
|
2969
|
+
type: string
|
|
2970
|
+
nullable: true
|
|
2971
|
+
description: >-
|
|
2972
|
+
The unique identifier of the interactive session the message is part
|
|
2973
|
+
of. This is not a message ID.
|
|
2974
|
+
|
|
2975
|
+
Omitted if the message is not part of a session.
|
|
2976
|
+
example: 0f5a3b9c-2d4e-4f6a-8b1c-7e9d0a2b3c4d
|
|
2977
|
+
type:
|
|
2978
|
+
type: string
|
|
2979
|
+
nullable: true
|
|
2980
|
+
description: |-
|
|
2981
|
+
The type of the interactive session.
|
|
2982
|
+
Only present on `session-started` callbacks.
|
|
2983
|
+
example: INTERACTIVE_SESSION
|
|
2984
|
+
startTime:
|
|
2985
|
+
type: string
|
|
2986
|
+
nullable: true
|
|
2987
|
+
format: date-time
|
|
2988
|
+
description: >-
|
|
2989
|
+
The time the 24-hour session window opened. Only present on
|
|
2990
|
+
`session-started` callbacks.
|
|
2991
|
+
example: '2026-08-06T09:59:55Z'
|
|
2992
|
+
endTime:
|
|
2993
|
+
type: string
|
|
2994
|
+
nullable: true
|
|
2995
|
+
format: date-time
|
|
2996
|
+
description: >-
|
|
2997
|
+
The time the 24-hour session window closes. Only present on
|
|
2998
|
+
`session-started` callbacks.
|
|
2999
|
+
example: '2026-08-07T09:59:55Z'
|
|
3000
|
+
required:
|
|
3001
|
+
- canInitiate
|
|
2941
3002
|
callback:
|
|
2942
3003
|
description: >-
|
|
2943
3004
|
Callbacks are divided into two types based on direction of the related
|
|
@@ -2960,6 +3021,7 @@ components:
|
|
|
2960
3021
|
message-delivered: '#/components/schemas/statusCallback'
|
|
2961
3022
|
message-failed: '#/components/schemas/statusCallback'
|
|
2962
3023
|
message-read: '#/components/schemas/statusCallback'
|
|
3024
|
+
session-started: '#/components/schemas/statusCallback'
|
|
2963
3025
|
message-received: '#/components/schemas/inboundCallback'
|
|
2964
3026
|
requested-location-response: '#/components/schemas/inboundCallback'
|
|
2965
3027
|
suggestion-response: '#/components/schemas/inboundCallback'
|
|
@@ -2972,14 +3034,14 @@ components:
|
|
|
2972
3034
|
time:
|
|
2973
3035
|
type: string
|
|
2974
3036
|
format: date-time
|
|
2975
|
-
example: 2024-12-02T20:15:57.
|
|
3037
|
+
example: '2024-12-02T20:15:57.278201Z'
|
|
2976
3038
|
eventTime:
|
|
2977
3039
|
type: string
|
|
2978
3040
|
description: >-
|
|
2979
3041
|
Represents the time at which the message was read, for
|
|
2980
3042
|
`message-read` callbacks.
|
|
2981
3043
|
format: date-time
|
|
2982
|
-
example: 2024-12-02T20:15:58.
|
|
3044
|
+
example: '2024-12-02T20:15:58.278205Z'
|
|
2983
3045
|
type:
|
|
2984
3046
|
$ref: '#/components/schemas/statusCallbackTypeEnum'
|
|
2985
3047
|
to:
|
|
@@ -3015,7 +3077,7 @@ components:
|
|
|
3015
3077
|
time:
|
|
3016
3078
|
type: string
|
|
3017
3079
|
format: date-time
|
|
3018
|
-
example: 2024-12-02T20:15:57.
|
|
3080
|
+
example: '2024-12-02T20:15:57.278201Z'
|
|
3019
3081
|
type:
|
|
3020
3082
|
$ref: '#/components/schemas/inboundCallbackTypeEnum'
|
|
3021
3083
|
to:
|
|
@@ -3060,12 +3122,17 @@ components:
|
|
|
3060
3122
|
|
|
3061
3123
|
- `message-read` indicates that the RBM message was read by the
|
|
3062
3124
|
recipient.
|
|
3125
|
+
|
|
3126
|
+
- `session-started` indicates that a previously exchanged RBM message is
|
|
3127
|
+
now part of an RCS interactive session and is no longer billed
|
|
3128
|
+
individually.
|
|
3063
3129
|
enum:
|
|
3064
3130
|
- message-sending
|
|
3065
3131
|
- message-sent
|
|
3066
3132
|
- message-delivered
|
|
3067
3133
|
- message-failed
|
|
3068
3134
|
- message-read
|
|
3135
|
+
- session-started
|
|
3069
3136
|
example: message-delivered
|
|
3070
3137
|
inboundCallbackTypeEnum:
|
|
3071
3138
|
type: string
|
|
@@ -3106,7 +3173,7 @@ components:
|
|
|
3106
3173
|
time:
|
|
3107
3174
|
type: string
|
|
3108
3175
|
format: date-time
|
|
3109
|
-
example: 2024-12-02T20:15:57.
|
|
3176
|
+
example: '2024-12-02T20:15:57.666000Z'
|
|
3110
3177
|
segmentCount:
|
|
3111
3178
|
$ref: '#/components/schemas/segmentCount'
|
|
3112
3179
|
direction:
|
|
@@ -3143,6 +3210,8 @@ components:
|
|
|
3143
3210
|
$ref: '#/components/schemas/priorityEnum'
|
|
3144
3211
|
channel:
|
|
3145
3212
|
$ref: '#/components/schemas/multiChannelMessageChannelEnum'
|
|
3213
|
+
session:
|
|
3214
|
+
$ref: '#/components/schemas/rbmSession'
|
|
3146
3215
|
required:
|
|
3147
3216
|
- id
|
|
3148
3217
|
- owner
|
|
@@ -3336,8 +3405,7 @@ components:
|
|
|
3336
3405
|
uui:
|
|
3337
3406
|
nullable: true
|
|
3338
3407
|
type: string
|
|
3339
|
-
example:
|
|
3340
|
-
eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64
|
|
3408
|
+
example: eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64
|
|
3341
3409
|
description: >-
|
|
3342
3410
|
A comma-separated list of 'User-To-User' headers to be sent
|
|
3343
3411
|
|
|
@@ -3547,8 +3615,7 @@ components:
|
|
|
3547
3615
|
callUrl:
|
|
3548
3616
|
type: string
|
|
3549
3617
|
format: uri
|
|
3550
|
-
example:
|
|
3551
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
3618
|
+
example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
3552
3619
|
description: The URL to update this call's state.
|
|
3553
3620
|
callTimeout:
|
|
3554
3621
|
type: number
|
|
@@ -3719,8 +3786,7 @@ components:
|
|
|
3719
3786
|
configured
|
|
3720
3787
|
|
|
3721
3788
|
to forward this header.
|
|
3722
|
-
example:
|
|
3723
|
-
eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9idy1zaGFrZW4tY2VydC1wdWIuczMuYW1hem9uYXdzLmNvbS9iYW5kd2lkdGgtc2hha2VuLWNlcnRfMjAyMzA3MTYucGVtIn0.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxOTg0MjgyMDI4MCJdfSwiaWF0IjoxNjU2NTM0MzM2LCJvcmlnIjp7InRuIjoiMTkxOTQ0NDI2ODMifSwib3JpZ2lkIjoiNDk0NTlhOGEtNDJmNi0zNTFjLTkzNjEtYWRmNTdhOWUwOGNhIn0.56un9sRw_uH-sbJvnUsqdevlVxbOVjn8MVlGTlBMicjaZuRRwxfiNp-C9zYCMKTTCbc-QdYPN05F61XNVN4D3w;info=<https://bw-shaken-cert-pub.s3.amazonaws.com/bandwidth-shaken-cert_20230716.pem>;alg=ES256;ppt=shaken
|
|
3789
|
+
example: eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9idy1zaGFrZW4tY2VydC1wdWIuczMuYW1hem9uYXdzLmNvbS9iYW5kd2lkdGgtc2hha2VuLWNlcnRfMjAyMzA3MTYucGVtIn0.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxOTg0MjgyMDI4MCJdfSwiaWF0IjoxNjU2NTM0MzM2LCJvcmlnIjp7InRuIjoiMTkxOTQ0NDI2ODMifSwib3JpZ2lkIjoiNDk0NTlhOGEtNDJmNi0zNTFjLTkzNjEtYWRmNTdhOWUwOGNhIn0.56un9sRw_uH-sbJvnUsqdevlVxbOVjn8MVlGTlBMicjaZuRRwxfiNp-C9zYCMKTTCbc-QdYPN05F61XNVN4D3w;info=<https://bw-shaken-cert-pub.s3.amazonaws.com/bandwidth-shaken-cert_20230716.pem>;alg=ES256;ppt=shaken
|
|
3724
3790
|
enqueuedTime:
|
|
3725
3791
|
nullable: true
|
|
3726
3792
|
type: string
|
|
@@ -4037,8 +4103,7 @@ components:
|
|
|
4037
4103
|
respond. Not
|
|
4038
4104
|
|
|
4039
4105
|
allowed if `state` is `completed`.
|
|
4040
|
-
example:
|
|
4041
|
-
https://myFallbackServer.example/bandwidth/webhooks/conferenceRedirect
|
|
4106
|
+
example: https://myFallbackServer.example/bandwidth/webhooks/conferenceRedirect
|
|
4042
4107
|
redirectFallbackMethod:
|
|
4043
4108
|
$ref: '#/components/schemas/redirectMethodEnum'
|
|
4044
4109
|
fallbackUsername:
|
|
@@ -4077,8 +4142,7 @@ components:
|
|
|
4077
4142
|
Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember)
|
|
4078
4143
|
|
|
4079
4144
|
endpoint.
|
|
4080
|
-
example:
|
|
4081
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/members/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
4145
|
+
example: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/members/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
4082
4146
|
mute:
|
|
4083
4147
|
type: boolean
|
|
4084
4148
|
description: >-
|
|
@@ -4315,8 +4379,7 @@ components:
|
|
|
4315
4379
|
|
|
4316
4380
|
to respond
|
|
4317
4381
|
maxLength: 2048
|
|
4318
|
-
example:
|
|
4319
|
-
https://myFallbackServer.example/bandwidth/webhooks/machineDetectionComplete
|
|
4382
|
+
example: https://myFallbackServer.example/bandwidth/webhooks/machineDetectionComplete
|
|
4320
4383
|
fallbackMethod:
|
|
4321
4384
|
$ref: '#/components/schemas/callbackMethodEnum'
|
|
4322
4385
|
fallbackUsername:
|
|
@@ -4470,8 +4533,7 @@ components:
|
|
|
4470
4533
|
example:
|
|
4471
4534
|
- transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
4472
4535
|
transcriptionName: live_transcription
|
|
4473
|
-
transcriptionUrl:
|
|
4474
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
4536
|
+
transcriptionUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
4475
4537
|
callTranscriptionMetadata:
|
|
4476
4538
|
type: object
|
|
4477
4539
|
properties:
|
|
@@ -4494,8 +4556,7 @@ components:
|
|
|
4494
4556
|
[Get Call
|
|
4495
4557
|
Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription)
|
|
4496
4558
|
endpoint.
|
|
4497
|
-
example:
|
|
4498
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
4559
|
+
example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
4499
4560
|
callTranscriptionResponse:
|
|
4500
4561
|
type: object
|
|
4501
4562
|
properties:
|
|
@@ -4560,8 +4621,7 @@ components:
|
|
|
4560
4621
|
type: string
|
|
4561
4622
|
format: uri
|
|
4562
4623
|
description: The URL of the [transcription](#operation/getCallTranscription)
|
|
4563
|
-
example:
|
|
4564
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcription
|
|
4624
|
+
example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcription
|
|
4565
4625
|
voiceApiError:
|
|
4566
4626
|
type: object
|
|
4567
4627
|
properties:
|
|
@@ -4876,6 +4936,10 @@ components:
|
|
|
4876
4936
|
$ref: '#/components/schemas/sipCallId'
|
|
4877
4937
|
sipResponseCode:
|
|
4878
4938
|
$ref: '#/components/schemas/sipResponseCode'
|
|
4939
|
+
sipStatusLine:
|
|
4940
|
+
$ref: '#/components/schemas/sipStatusLine'
|
|
4941
|
+
sipHeaders:
|
|
4942
|
+
$ref: '#/components/schemas/sipHeaders'
|
|
4879
4943
|
dtmfCallback:
|
|
4880
4944
|
type: object
|
|
4881
4945
|
description: >-
|
|
@@ -5395,6 +5459,12 @@ components:
|
|
|
5395
5459
|
$ref: '#/components/schemas/errorMessage'
|
|
5396
5460
|
errorId:
|
|
5397
5461
|
$ref: '#/components/schemas/errorId'
|
|
5462
|
+
sipResponseCode:
|
|
5463
|
+
$ref: '#/components/schemas/sipResponseCode'
|
|
5464
|
+
sipStatusLine:
|
|
5465
|
+
$ref: '#/components/schemas/sipStatusLine'
|
|
5466
|
+
sipHeaders:
|
|
5467
|
+
$ref: '#/components/schemas/sipHeaders'
|
|
5398
5468
|
eventType:
|
|
5399
5469
|
type: string
|
|
5400
5470
|
description: >-
|
|
@@ -5526,8 +5596,7 @@ components:
|
|
|
5526
5596
|
description: >-
|
|
5527
5597
|
The URL that can be used to download the recording. Only present if the
|
|
5528
5598
|
recording is finished and may be downloaded.
|
|
5529
|
-
example:
|
|
5530
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/recordings/r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833/media
|
|
5599
|
+
example: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/recordings/r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833/media
|
|
5531
5600
|
callId:
|
|
5532
5601
|
type: string
|
|
5533
5602
|
description: The call id associated with the event.
|
|
@@ -5540,8 +5609,7 @@ components:
|
|
|
5540
5609
|
type: string
|
|
5541
5610
|
format: uri
|
|
5542
5611
|
description: The URL of the call associated with the event.
|
|
5543
|
-
example:
|
|
5544
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
5612
|
+
example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
5545
5613
|
parentCallId:
|
|
5546
5614
|
type: string
|
|
5547
5615
|
description: >-
|
|
@@ -5710,23 +5778,44 @@ components:
|
|
|
5710
5778
|
additionalProperties:
|
|
5711
5779
|
type: string
|
|
5712
5780
|
description: >-
|
|
5713
|
-
(optional) Map of
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5781
|
+
(optional) Map of SIP headers, with lowercase keys (SIP headers are
|
|
5782
|
+
case-insensitive). On the Initiate callback, contains the
|
|
5783
|
+
customer-supplied X-* headers from the original INVITE; present only for
|
|
5784
|
+
inbound SIP URI calls with custom headers. On the Disconnect and
|
|
5785
|
+
Transfer Disconnect callbacks, contains a single `reason` key holding
|
|
5786
|
+
the raw, unmodified `Reason` header value from the final SIP response
|
|
5787
|
+
that rejected an outbound call (or transferred leg); present only when
|
|
5788
|
+
that response included a `Reason` header (for example, `v=analytics1`
|
|
5789
|
+
call-analytics block information from a terminating carrier). If the
|
|
5790
|
+
response carries more than one `Reason` header, all values are returned
|
|
5791
|
+
in the order received, separated by `, `. Note - on the Initiate
|
|
5792
|
+
callback, keys preserve the original SIP header name in lowercase rather
|
|
5793
|
+
than Bandwidth's usual camelCase JSON convention, since these are
|
|
5794
|
+
passthrough values from the caller's SIP INVITE, not Bandwidth-defined
|
|
5795
|
+
fields. If the same header name is sent more than once in the INVITE,
|
|
5796
|
+
only the last value is kept. The example shown is for the Initiate
|
|
5797
|
+
callback; on the Disconnect and Transfer Disconnect callbacks the only
|
|
5798
|
+
key is `reason`.
|
|
5720
5799
|
example:
|
|
5721
5800
|
x-custom-header: customer-value
|
|
5722
5801
|
x-session-id: sess-12345
|
|
5723
5802
|
sipResponseCode:
|
|
5724
5803
|
type: integer
|
|
5725
5804
|
description: >-
|
|
5726
|
-
(optional) The SIP status code
|
|
5727
|
-
|
|
5728
|
-
Present only when
|
|
5805
|
+
(optional) The SIP status code of the final response that rejected an
|
|
5806
|
+
outbound call's (or transferred leg's) INVITE (e.g. 486 for busy, 603
|
|
5807
|
+
for decline). Present only when the call was rejected with a SIP
|
|
5808
|
+
response.
|
|
5729
5809
|
example: 486
|
|
5810
|
+
sipStatusLine:
|
|
5811
|
+
type: string
|
|
5812
|
+
description: >-
|
|
5813
|
+
(optional) The full SIP status line, exactly as received, of the final
|
|
5814
|
+
response that rejected an outbound call's INVITE. The reason phrase can
|
|
5815
|
+
help distinguish outcomes that share a status code, such as `603 Network
|
|
5816
|
+
Blocked` and `603 Decline`. Present only when an outbound call was
|
|
5817
|
+
rejected with a SIP response.
|
|
5818
|
+
example: SIP/2.0 603 Network Blocked
|
|
5730
5819
|
codeRequest:
|
|
5731
5820
|
type: object
|
|
5732
5821
|
properties:
|
|
@@ -6766,8 +6855,7 @@ components:
|
|
|
6766
6855
|
maxLength: 500
|
|
6767
6856
|
nullable: false
|
|
6768
6857
|
example: https://www.example.com/path/to/resource
|
|
6769
|
-
pattern:
|
|
6770
|
-
^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
|
|
6858
|
+
pattern: ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
|
|
6771
6859
|
confirmationResponse:
|
|
6772
6860
|
type: string
|
|
6773
6861
|
minLength: 0
|
|
@@ -6814,8 +6902,7 @@ components:
|
|
|
6814
6902
|
minLength: 0
|
|
6815
6903
|
maxLength: 500
|
|
6816
6904
|
nullable: false
|
|
6817
|
-
pattern:
|
|
6818
|
-
^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$
|
|
6905
|
+
pattern: ^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$
|
|
6819
6906
|
example: foo@bar.com
|
|
6820
6907
|
useCases:
|
|
6821
6908
|
type: array
|
|
@@ -6967,8 +7054,7 @@ components:
|
|
|
6967
7054
|
maxLength: 2000
|
|
6968
7055
|
nullable: true
|
|
6969
7056
|
example: https://www.example.com/path/to/resource
|
|
6970
|
-
pattern:
|
|
6971
|
-
^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
|
|
7057
|
+
pattern: ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
|
|
6972
7058
|
tfvError:
|
|
6973
7059
|
description: A generic error object.
|
|
6974
7060
|
properties:
|
|
@@ -7107,8 +7193,7 @@ components:
|
|
|
7107
7193
|
minLength: 0
|
|
7108
7194
|
maxLength: 500
|
|
7109
7195
|
nullable: true
|
|
7110
|
-
example:
|
|
7111
|
-
cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
|
|
7196
|
+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
|
|
7112
7197
|
endpointId:
|
|
7113
7198
|
type: string
|
|
7114
7199
|
description: The unique ID of the endpoint.
|
|
@@ -7313,8 +7398,7 @@ components:
|
|
|
7313
7398
|
href:
|
|
7314
7399
|
type: string
|
|
7315
7400
|
description: The full URL of the link.
|
|
7316
|
-
example:
|
|
7317
|
-
https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
7401
|
+
example: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
7318
7402
|
rel:
|
|
7319
7403
|
type: string
|
|
7320
7404
|
description: The relationship of the link to the current resource.
|
|
@@ -8308,8 +8392,7 @@ components:
|
|
|
8308
8392
|
in: header
|
|
8309
8393
|
name: Continuation-Token
|
|
8310
8394
|
description: Continuation token used to retrieve subsequent media.
|
|
8311
|
-
example:
|
|
8312
|
-
1XEi2tsFtLo1JbtLwETnM1ZJ+PqAa8w6ENvC5QKvwyrCDYII663Gy5M4s40owR1tjkuWUif6qbWvFtQJR5/ipqbUnfAqL254LKNlPy6tATCzioKSuHuOqgzloDkSwRtX0LtcL2otHS69hK343m+SjdL+vlj71tT39
|
|
8395
|
+
example: 1XEi2tsFtLo1JbtLwETnM1ZJ+PqAa8w6ENvC5QKvwyrCDYII663Gy5M4s40owR1tjkuWUif6qbWvFtQJR5/ipqbUnfAqL254LKNlPy6tATCzioKSuHuOqgzloDkSwRtX0LtcL2otHS69hK343m+SjdL+vlj71tT39
|
|
8313
8396
|
schema:
|
|
8314
8397
|
type: string
|
|
8315
8398
|
messageId:
|
|
@@ -8398,7 +8481,7 @@ components:
|
|
|
8398
8481
|
description: >-
|
|
8399
8482
|
The start of the date range to search in ISO 8601 format. Uses the
|
|
8400
8483
|
message receive time. The date range to search in is currently 14 days.
|
|
8401
|
-
example: 2022-09-14T18:20:16.000Z
|
|
8484
|
+
example: '2022-09-14T18:20:16.000Z'
|
|
8402
8485
|
schema:
|
|
8403
8486
|
type: string
|
|
8404
8487
|
toDateTime:
|
|
@@ -8408,7 +8491,7 @@ components:
|
|
|
8408
8491
|
description: >-
|
|
8409
8492
|
The end of the date range to search in ISO 8601 format. Uses the message
|
|
8410
8493
|
receive time. The date range to search in is currently 14 days.
|
|
8411
|
-
example: 2022-09-14T18:20:16.000Z
|
|
8494
|
+
example: '2022-09-14T18:20:16.000Z'
|
|
8412
8495
|
schema:
|
|
8413
8496
|
type: string
|
|
8414
8497
|
campaignId:
|
|
@@ -8876,8 +8959,32 @@ components:
|
|
|
8876
8959
|
from: '+12345678901'
|
|
8877
8960
|
text: Hey, check out the MMS!
|
|
8878
8961
|
media:
|
|
8879
|
-
-
|
|
8880
|
-
|
|
8962
|
+
- https://messaging.bandwidth.com/api/v2/users/9900902/media/14762070468292kw2fuqty55yp2b2/0/bw.png
|
|
8963
|
+
rbmMessageReceivedSessionCallbackExample:
|
|
8964
|
+
summary: >-
|
|
8965
|
+
An example of a rbm message-received callback body for a message that is
|
|
8966
|
+
part of an RCS interactive session.
|
|
8967
|
+
value:
|
|
8968
|
+
time: '2026-08-06T10:00:05.502180Z'
|
|
8969
|
+
type: message-received
|
|
8970
|
+
to: BandwidthRBM
|
|
8971
|
+
description: Incoming message received
|
|
8972
|
+
message:
|
|
8973
|
+
id: 1786010405502l2ntaoajuqjhqnxu
|
|
8974
|
+
owner: BandwidthRBM
|
|
8975
|
+
applicationId: 93de2206-9669-4e07-948d-329f4b722ee2
|
|
8976
|
+
time: '2026-08-06T10:00:05.302180Z'
|
|
8977
|
+
segmentCount: 1
|
|
8978
|
+
direction: in
|
|
8979
|
+
to:
|
|
8980
|
+
- BandwidthRBM
|
|
8981
|
+
from: '+12345678902'
|
|
8982
|
+
channel: RBM
|
|
8983
|
+
content:
|
|
8984
|
+
text: Yes, please book it for tomorrow.
|
|
8985
|
+
session:
|
|
8986
|
+
canInitiate: false
|
|
8987
|
+
id: 0f5a3b9c-2d4e-4f6a-8b1c-7e9d0a2b3c4d
|
|
8881
8988
|
messageSendingCallbackExample:
|
|
8882
8989
|
summary: An example of a message-sending callback body.
|
|
8883
8990
|
value:
|
|
@@ -8977,6 +9084,79 @@ components:
|
|
|
8977
9084
|
owner: '+12345678902'
|
|
8978
9085
|
direction: out
|
|
8979
9086
|
segmentCount: 1
|
|
9087
|
+
rbmMessageDeliveredSessionCallbackExample:
|
|
9088
|
+
summary: >-
|
|
9089
|
+
An example of a rbm message-delivered callback body for a message that
|
|
9090
|
+
is part of an RCS interactive session.
|
|
9091
|
+
value:
|
|
9092
|
+
type: message-delivered
|
|
9093
|
+
time: '2026-08-06T10:01:11.160744Z'
|
|
9094
|
+
description: Message delivered to handset.
|
|
9095
|
+
to: '+12345678902'
|
|
9096
|
+
message:
|
|
9097
|
+
id: 1786010470868ty55yp2b2kw2fuq
|
|
9098
|
+
time: '2026-08-06T10:01:10.868292Z'
|
|
9099
|
+
to:
|
|
9100
|
+
- '+12345678902'
|
|
9101
|
+
from: BandwidthRBM
|
|
9102
|
+
text: ''
|
|
9103
|
+
applicationId: 93de2206-9669-4e07-948d-329f4b722ee2
|
|
9104
|
+
owner: BandwidthRBM
|
|
9105
|
+
direction: out
|
|
9106
|
+
segmentCount: 1
|
|
9107
|
+
channel: RBM
|
|
9108
|
+
session:
|
|
9109
|
+
canInitiate: false
|
|
9110
|
+
id: 0f5a3b9c-2d4e-4f6a-8b1c-7e9d0a2b3c4d
|
|
9111
|
+
rbmMessageDeliveredCanInitiateSessionCallbackExample:
|
|
9112
|
+
summary: >-
|
|
9113
|
+
An example of a rbm message-delivered callback body for a message that
|
|
9114
|
+
is not yet part of an RCS interactive session.
|
|
9115
|
+
value:
|
|
9116
|
+
type: message-delivered
|
|
9117
|
+
time: '2026-08-06T09:59:56.160744Z'
|
|
9118
|
+
description: Message delivered to handset.
|
|
9119
|
+
to: '+12345678902'
|
|
9120
|
+
message:
|
|
9121
|
+
id: 1786010395000kw2fuqty55yp2b2
|
|
9122
|
+
time: '2026-08-06T09:59:55.000000Z'
|
|
9123
|
+
to:
|
|
9124
|
+
- '+12345678902'
|
|
9125
|
+
from: BandwidthRBM
|
|
9126
|
+
text: ''
|
|
9127
|
+
applicationId: 93de2206-9669-4e07-948d-329f4b722ee2
|
|
9128
|
+
owner: BandwidthRBM
|
|
9129
|
+
direction: out
|
|
9130
|
+
segmentCount: 1
|
|
9131
|
+
channel: RBM
|
|
9132
|
+
session:
|
|
9133
|
+
canInitiate: true
|
|
9134
|
+
sessionStartedCallbackExample:
|
|
9135
|
+
summary: An example of a session-started callback body.
|
|
9136
|
+
value:
|
|
9137
|
+
type: session-started
|
|
9138
|
+
time: '2026-08-06T10:00:00.123000Z'
|
|
9139
|
+
description: Message is now part of an RCS interactive session.
|
|
9140
|
+
to: '+12345678902'
|
|
9141
|
+
message:
|
|
9142
|
+
id: 1786010395000kw2fuqty55yp2b2
|
|
9143
|
+
owner: BandwidthRBM
|
|
9144
|
+
applicationId: 93de2206-9669-4e07-948d-329f4b722ee2
|
|
9145
|
+
time: '2026-08-06T10:00:00.120000Z'
|
|
9146
|
+
segmentCount: 1
|
|
9147
|
+
direction: out
|
|
9148
|
+
to:
|
|
9149
|
+
- '+12345678902'
|
|
9150
|
+
from: BandwidthRBM
|
|
9151
|
+
text: ''
|
|
9152
|
+
tag: ''
|
|
9153
|
+
channel: RBM
|
|
9154
|
+
session:
|
|
9155
|
+
canInitiate: false
|
|
9156
|
+
id: 0f5a3b9c-2d4e-4f6a-8b1c-7e9d0a2b3c4d
|
|
9157
|
+
type: INTERACTIVE_SESSION
|
|
9158
|
+
startTime: '2026-08-06T09:59:55Z'
|
|
9159
|
+
endTime: '2026-08-07T09:59:55Z'
|
|
8980
9160
|
messageFailedCallbackExample:
|
|
8981
9161
|
summary: An example of a message-failed callback body.
|
|
8982
9162
|
value:
|
|
@@ -9008,8 +9188,7 @@ components:
|
|
|
9008
9188
|
to: '+19195551234'
|
|
9009
9189
|
from: '+19195554312'
|
|
9010
9190
|
enqueuedTime: '2022-06-16T13:15:07.160Z'
|
|
9011
|
-
callUrl:
|
|
9012
|
-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
9191
|
+
callUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
9013
9192
|
callTimeout: 30
|
|
9014
9193
|
callbackTimeout: 15
|
|
9015
9194
|
tag: My custom tag value
|
|
@@ -9101,14 +9280,12 @@ components:
|
|
|
9101
9280
|
summary: Numbers Lookup Accepted
|
|
9102
9281
|
value:
|
|
9103
9282
|
links:
|
|
9104
|
-
- href:
|
|
9105
|
-
/accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590
|
|
9283
|
+
- href: /accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590
|
|
9106
9284
|
rel: createdRequest
|
|
9107
9285
|
method: GET
|
|
9108
9286
|
data:
|
|
9109
9287
|
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
9110
9288
|
status: IN_PROGRESS
|
|
9111
|
-
results: []
|
|
9112
9289
|
errors: []
|
|
9113
9290
|
lookupInProgressExample:
|
|
9114
9291
|
summary: Numbers Lookup In Progress
|
|
@@ -9281,7 +9458,8 @@ components:
|
|
|
9281
9458
|
links: []
|
|
9282
9459
|
data: {}
|
|
9283
9460
|
errors:
|
|
9284
|
-
-
|
|
9461
|
+
- code: '1234'
|
|
9462
|
+
type: bad-request
|
|
9285
9463
|
description: >-
|
|
9286
9464
|
Bad Request. Ensure that you have set the requestId as a URL path
|
|
9287
9465
|
parameter.
|
|
@@ -9294,7 +9472,6 @@ components:
|
|
|
9294
9472
|
- type: Unauthorized
|
|
9295
9473
|
description: You are not authorized to access this resource.
|
|
9296
9474
|
code: '1'
|
|
9297
|
-
page: null
|
|
9298
9475
|
forbiddenExample:
|
|
9299
9476
|
summary: Forbidden Error
|
|
9300
9477
|
value:
|
|
@@ -9304,14 +9481,14 @@ components:
|
|
|
9304
9481
|
- type: Forbidden
|
|
9305
9482
|
description: You do not have permission to access this resource.
|
|
9306
9483
|
code: '2'
|
|
9307
|
-
page: null
|
|
9308
9484
|
unsupportedMediaTypeExample:
|
|
9309
9485
|
summary: Unsupported Media Type Error
|
|
9310
9486
|
value:
|
|
9311
9487
|
links: []
|
|
9312
9488
|
data: {}
|
|
9313
9489
|
errors:
|
|
9314
|
-
-
|
|
9490
|
+
- code: '1234'
|
|
9491
|
+
type: invalid-content-type
|
|
9315
9492
|
description: >-
|
|
9316
9493
|
Invalid content-type. Ensure that your content-type header is set
|
|
9317
9494
|
to application/json.
|
|
@@ -9321,7 +9498,8 @@ components:
|
|
|
9321
9498
|
links: []
|
|
9322
9499
|
data: {}
|
|
9323
9500
|
errors:
|
|
9324
|
-
-
|
|
9501
|
+
- code: '1234'
|
|
9502
|
+
type: not-found
|
|
9325
9503
|
description: >-
|
|
9326
9504
|
RequestId not found. Ensure that the requestId used in the URL
|
|
9327
9505
|
path is valid and maps to a previous request that was submitted.
|
|
@@ -9331,7 +9509,8 @@ components:
|
|
|
9331
9509
|
links: []
|
|
9332
9510
|
data: {}
|
|
9333
9511
|
errors:
|
|
9334
|
-
-
|
|
9512
|
+
- code: '1234'
|
|
9513
|
+
type: rate-limiting
|
|
9335
9514
|
description: >-
|
|
9336
9515
|
Rate limit exceeded. Wait for the time specified in the
|
|
9337
9516
|
Retry-After header before sending another request.
|
|
@@ -9351,12 +9530,10 @@ components:
|
|
|
9351
9530
|
summary: List Endpoints Paginated Response
|
|
9352
9531
|
value:
|
|
9353
9532
|
links:
|
|
9354
|
-
- href:
|
|
9355
|
-
https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2
|
|
9533
|
+
- href: https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2
|
|
9356
9534
|
rel: self
|
|
9357
9535
|
method: GET
|
|
9358
|
-
- href:
|
|
9359
|
-
https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2&afterCursor=TWF5IHRoZSBmb3JjZSBiZSB3aXRoIHlvdQ==
|
|
9536
|
+
- href: https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2&afterCursor=TWF5IHRoZSBmb3JjZSBiZSB3aXRoIHlvdQ==
|
|
9360
9537
|
rel: next
|
|
9361
9538
|
method: GET
|
|
9362
9539
|
page:
|
|
@@ -9382,8 +9559,7 @@ components:
|
|
|
9382
9559
|
summary: Create Endpoint Response
|
|
9383
9560
|
value:
|
|
9384
9561
|
links:
|
|
9385
|
-
- href:
|
|
9386
|
-
https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
9562
|
+
- href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
9387
9563
|
rel: endpoint
|
|
9388
9564
|
method: GET
|
|
9389
9565
|
data:
|
|
@@ -9400,8 +9576,7 @@ components:
|
|
|
9400
9576
|
summary: Get Endpoint Response
|
|
9401
9577
|
value:
|
|
9402
9578
|
links:
|
|
9403
|
-
- href:
|
|
9404
|
-
https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
9579
|
+
- href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
9405
9580
|
rel: self
|
|
9406
9581
|
method: GET
|
|
9407
9582
|
data:
|
|
@@ -9927,24 +10102,6 @@ components:
|
|
|
9927
10102
|
examples:
|
|
9928
10103
|
updateEndpointBxmlRequestExample:
|
|
9929
10104
|
$ref: '#/components/examples/updateEndpointBxmlRequestExample'
|
|
9930
|
-
securitySchemes:
|
|
9931
|
-
Basic:
|
|
9932
|
-
type: http
|
|
9933
|
-
scheme: basic
|
|
9934
|
-
description: >-
|
|
9935
|
-
Basic authentication is a simple authentication scheme built into the
|
|
9936
|
-
HTTP protocol. To use it, send your HTTP requests with an
|
|
9937
|
-
`Authorization` header that contains the word `Basic` followed by a
|
|
9938
|
-
space and a Base64-encoded string `username:password`.
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
|
|
9942
|
-
OAuth2:
|
|
9943
|
-
type: oauth2
|
|
9944
|
-
flows:
|
|
9945
|
-
clientCredentials:
|
|
9946
|
-
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
|
|
9947
|
-
scopes: {}
|
|
9948
10105
|
callbacks:
|
|
9949
10106
|
inboundCallback:
|
|
9950
10107
|
'{inboundCallbackUrl}':
|
|
@@ -9980,6 +10137,8 @@ components:
|
|
|
9980
10137
|
$ref: '#/components/examples/smsMessageReceivedCallbackExample'
|
|
9981
10138
|
mmsMessageReceivedCallback:
|
|
9982
10139
|
$ref: '#/components/examples/mmsMessageReceivedCallbackExample'
|
|
10140
|
+
rbmMessageReceivedSessionCallback:
|
|
10141
|
+
$ref: '#/components/examples/rbmMessageReceivedSessionCallbackExample'
|
|
9983
10142
|
responses:
|
|
9984
10143
|
'200':
|
|
9985
10144
|
description: OK
|
|
@@ -9995,8 +10154,9 @@ components:
|
|
|
9995
10154
|
information regarding a message sent (MT)
|
|
9996
10155
|
|
|
9997
10156
|
from your message-enabled Bandwidth telephone number.
|
|
9998
|
-
<p>The payload type will be one of <code>message-sending</code>, <code>message-sent</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>
|
|
9999
|
-
<p>Note that <code>message-read</code> callbacks are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
|
|
10157
|
+
<p>The payload type will be one of <code>message-sending</code>, <code>message-sent</code>, <code>message-delivered</code>, <code>message-failed</code>, <code>message-read</code> or <code>session-started</code>.
|
|
10158
|
+
<p>Note that <code>message-read</code> and <code>session-started</code> callbacks are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
|
|
10159
|
+
<p>Note that <code>session-started</code> callbacks are pertinent only for RBM messages of agents with the Conversational billing category.
|
|
10000
10160
|
</p><p>Please visit <a
|
|
10001
10161
|
href='/docs/messaging/webhooks/'>Webhooks</a></p>
|
|
10002
10162
|
content:
|
|
@@ -10013,10 +10173,15 @@ components:
|
|
|
10013
10173
|
mmsMessageDeliveredCallback:
|
|
10014
10174
|
$ref: '#/components/examples/mmsMessageDeliveredCallbackExample'
|
|
10015
10175
|
groupMmsMessageDeliveredCallback:
|
|
10016
|
-
$ref:
|
|
10017
|
-
|
|
10176
|
+
$ref: '#/components/examples/groupMmsMessageDeliveredCallbackExample'
|
|
10177
|
+
rbmMessageDeliveredSessionCallback:
|
|
10178
|
+
$ref: '#/components/examples/rbmMessageDeliveredSessionCallbackExample'
|
|
10179
|
+
rbmMessageDeliveredCanInitiateSessionCallback:
|
|
10180
|
+
$ref: '#/components/examples/rbmMessageDeliveredCanInitiateSessionCallbackExample'
|
|
10018
10181
|
messageFailedCallback:
|
|
10019
10182
|
$ref: '#/components/examples/messageFailedCallbackExample'
|
|
10183
|
+
sessionStartedCallback:
|
|
10184
|
+
$ref: '#/components/examples/sessionStartedCallbackExample'
|
|
10020
10185
|
responses:
|
|
10021
10186
|
'200':
|
|
10022
10187
|
description: OK
|
|
@@ -10076,3 +10241,14 @@ components:
|
|
|
10076
10241
|
responses:
|
|
10077
10242
|
'204':
|
|
10078
10243
|
description: Event was successfully received.
|
|
10244
|
+
securitySchemes:
|
|
10245
|
+
OAuth2:
|
|
10246
|
+
type: oauth2
|
|
10247
|
+
description: >-
|
|
10248
|
+
OAuth2 client credentials. For information on obtaining credentials, see
|
|
10249
|
+
[Credentials
|
|
10250
|
+
Management](https://dev.bandwidth.com/docs/account/credentials/management/).
|
|
10251
|
+
flows:
|
|
10252
|
+
clientCredentials:
|
|
10253
|
+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
|
|
10254
|
+
scopes: {}
|