@@ -1043,38 +1043,31 @@ components:
1043
1043
description: Verification callback status of a toll-free phone number.
1044
1044
required: true
1045
1045
webhookSubscriptionRequest:
1046
- properties:
1047
- accountId:
1048
- type: string
1049
- basicAuthentication:
1050
- properties:
1051
- password:
1052
- maxLength: 200
1053
- type: string
1054
- username:
1055
- maxLength: 100
1056
- type: string
1057
- required:
1058
- - username
1059
- - password
1060
- type: object
1061
- callbackUrl:
1062
- $ref: '#/components/schemas/webhookUrl'
1063
- createdDate:
1064
- format: date-time
1065
- type: string
1066
- id:
1067
- type: string
1068
- modifiedDate:
1069
- format: date-time
1070
- type: string
1071
- type:
1072
- enum:
1073
- - TOLLFREE_VERIFICATION_STATUS
1074
- type: string
1075
- required:
1076
- - callbackUrl
1077
- type: object
1046
+ content:
1047
+ application/json:
1048
+ schema:
1049
+ properties:
1050
+ basicAuthentication:
1051
+ properties:
1052
+ password:
1053
+ maxLength: 200
1054
+ type: string
1055
+ username:
1056
+ maxLength: 100
1057
+ type: string
1058
+ required:
1059
+ - username
1060
+ - password
1061
+ type: object
1062
+ callbackUrl:
1063
+ $ref: '#/components/schemas/webhookUrl'
1064
+ required:
1065
+ - callbackUrl
1066
+ type: object
1067
+ description: >-
1068
+ Information about a webhook that Bandwidth should send upon the
1069
+ completion of TFV verification.
1070
+ required: true
1078
1071
zipWhipTfvWebhookRequest:
1079
1072
content:
1080
1073
application/json:
@@ -1343,21 +1336,21 @@ components:
1343
1336
content:
1344
1337
application/json:
1345
1338
schema:
1346
- $ref: '#/components/requestBodies/webhookSubscriptionRequest '
1339
+ $ref: '#/components/schemas/webhookSubscription '
1347
1340
description: Created
1348
1341
webhookSubscriptionDeleted:
1349
1342
description: Deleted
1350
1343
webhookSubscriptionUpdated:
1351
1344
content:
1352
1345
application/json:
1353
1346
schema:
1354
- $ref: '#/components/requestBodies/webhookSubscriptionRequest '
1347
+ $ref: '#/components/schemas/webhookSubscription '
1355
1348
description: OK
1356
1349
webhookSubscriptionsList:
1357
1350
content:
1358
1351
application/json:
1359
1352
schema:
1360
- $ref: '#/components/schemas/webhookSubscriptionsApiPage '
1353
+ $ref: '#/components/schemas/webhookSubscriptionsListBody '
1361
1354
description: OK
1362
1355
schemas:
1363
1356
A2pClass:
@@ -14268,11 +14261,6 @@ components:
14268
14261
verificationRequestId:
14269
14262
example: abc-d8569gh
14270
14263
type: string
14271
- webhookUrl:
14272
- example: https://your_url.com/webhookService
14273
- pattern: >-
14274
- ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
14275
- type: string
14276
14264
type: object
14277
14265
useCase:
14278
14266
example: 2FA
@@ -14335,8 +14323,6 @@ components:
14335
14323
minLength: 0
14336
14324
nullable: false
14337
14325
type: string
14338
- webhookUrl:
14339
- $ref: '#/components/schemas/webhookUrl'
14340
14326
required:
14341
14327
- businessAddress
14342
14328
- businessContact
@@ -14369,24 +14355,71 @@ components:
14369
14355
status:
14370
14356
$ref: '#/components/schemas/tfvCallbackStatus'
14371
14357
type: object
14372
- webhookSubscriptionsApiPage :
14358
+ webhookSubscription :
14373
14359
description: >-
14374
- Object that returns the full list of webhook subscriptions for an
14375
- account.
14360
+ Information about a webhook that Bandwidth should send upon the
14361
+ completion of TFV verification.
14362
+ properties:
14363
+ accountId:
14364
+ example: '1234567'
14365
+ type: string
14366
+ basicAuthentication:
14367
+ description: >-
14368
+ Basic authentication credentials are not required, but if present,
14369
+ both username and password must be provided.
14370
+ properties:
14371
+ password:
14372
+ maxLength: 200
14373
+ type: string
14374
+ username:
14375
+ maxLength: 100
14376
+ type: string
14377
+ required:
14378
+ - username
14379
+ - password
14380
+ type: object
14381
+ callbackUrl:
14382
+ $ref: '#/components/schemas/webhookUrl'
14383
+ createdDate:
14384
+ example: '2023-05-15T13:56:39.965Z'
14385
+ format: date-time
14386
+ type: string
14387
+ id:
14388
+ example: 7hICGStfAfeGxEq3N0lQwO
14389
+ type: string
14390
+ modifiedDate:
14391
+ example: '2023-05-15T13:56:39.965Z'
14392
+ format: date-time
14393
+ type: string
14394
+ type:
14395
+ description: >-
14396
+ Currently only one type of webhook is supported for toll-free
14397
+ verification, and that is the webhook for the status of a toll-free
14398
+ verification request.
14399
+ enum:
14400
+ - TOLLFREE_VERIFICATION_STATUS
14401
+ type: string
14402
+ required:
14403
+ - callbackUrl
14404
+ type: object
14405
+ webhookSubscriptionsListBody:
14406
+ description: >-
14407
+ A list of all webhook subscriptions registered for this account ID for
14408
+ this particular feature (unpaginated).
14376
14409
properties:
14377
14410
data:
14378
14411
items:
14379
- $ref: '#/components/requestBodies/webhookSubscriptionRequest '
14412
+ $ref: '#/components/schemas/webhookSubscription '
14380
14413
type: array
14381
- type: object
14414
+ required:
14415
+ - data
14416
+ type: object
14382
14417
webhookUrl:
14383
14418
description: >-
14384
- Callback URL to receive status updates from Bandwidth. When this value
14385
- is registered with a validation request, it will be used for that
14386
- request (only) and it cannot be updated after submission. To register a
14387
- callback for all status updates, which can be updated through the API,
14388
- register a webhook subscription (which can also include basic
14389
- authentication credentials).
14419
+ Callback URL to receive status updates from Bandwidth. When a webhook
14420
+ subscription is registered with Bandwidth under a given account ID, it
14421
+ will be used to send status updates for all requests submitted under
14422
+ that account ID.
14390
14423
example: https://www.example.com/path/to/resource
14391
14424
maxLength: 2000
14392
14425
minLength: 0
@@ -40152,12 +40185,11 @@ paths:
40152
40185
post:
40153
40186
description: >-
40154
40187
Create a new webhook subscription (this webhook will be called for every
40155
- update on every submission; is is also possible to register a one-time
40156
- callback URL as part of a submission itself). In addition to a
40157
- `callbackUrl`, this subscription can provide HTTP Basic authentication
40158
- credentials (a username and a password). The returned subscription
40159
- object will contain an ID that can be used to modify or delete the
40160
- subscription at a later time.
40188
+ update on every submission). In addition to a `callbackUrl`, this
40189
+ subscription can provide optional HTTP basic authentication credentials
40190
+ (a username and a password). The returned subscription object will
40191
+ contain an ID that can be used to modify or delete the subscription at a
40192
+ later time.
40161
40193
operationId: createWebhookSubscription
40162
40194
parameters:
40163
40195
- $ref: '#/components/parameters/AccountIdPathParam'
0 commit comments