bandwidth-sdk 16.2.2 → 17.0.1
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 +9 -9
- data/README.md +31 -10
- data/bandwidth.yml +629 -299
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +241 -119
- data/coverage/index.html +2752 -1364
- data/docs/AsyncLookupRequest.md +18 -0
- data/docs/{LookupRequest.md → CompletedLookupStatusEnum.md} +2 -5
- data/docs/CreateAsyncBulkLookupResponse.md +22 -0
- data/docs/{CreateLookupResponse.md → CreateAsyncBulkLookupResponseData.md} +4 -4
- data/docs/CreateSyncLookupResponse.md +22 -0
- data/docs/CreateSyncLookupResponseData.md +22 -0
- data/docs/DeactivationEventEnum.md +15 -0
- data/docs/GetAsyncBulkLookupResponse.md +22 -0
- data/docs/GetAsyncBulkLookupResponseData.md +22 -0
- data/docs/InProgressLookupStatusEnum.md +15 -0
- data/docs/LatestMessageDeliveryStatusEnum.md +15 -0
- data/docs/{LookupStatusEnum.md → LineTypeEnum.md} +2 -2
- data/docs/LinkSchema.md +22 -0
- data/docs/LookupErrorResponse.md +22 -0
- data/docs/LookupErrorSchema.md +24 -0
- data/docs/LookupErrorSchemaMeta.md +22 -0
- data/docs/LookupResult.md +22 -18
- data/docs/MultiChannelAction.md +32 -81
- data/docs/MultiChannelApi.md +1 -1
- data/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +3 -3
- data/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +3 -3
- data/docs/MultiChannelChannelListObjectBase.md +22 -0
- data/docs/MultiChannelChannelListOwnerObject.md +18 -0
- data/docs/MultiChannelChannelListRBMObject.md +24 -0
- data/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +6 -10
- data/docs/MultiChannelChannelListRBMResponseObject.md +26 -0
- data/docs/MultiChannelChannelListRequestObject.md +24 -0
- data/docs/MultiChannelChannelListResponseObject.md +26 -0
- data/docs/MultiChannelChannelListSMSObject.md +24 -0
- data/docs/MultiChannelChannelListSMSResponseObject.md +26 -0
- data/docs/MultiChannelMessageRequest.md +1 -1
- data/docs/MultiChannelMessageResponseData.md +1 -1
- data/docs/PhoneNumberLookupApi.md +111 -38
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/SyncLookupRequest.md +18 -0
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +117 -47
- data/lib/bandwidth-sdk/configuration.rb +10 -4
- data/lib/bandwidth-sdk/models/async_lookup_request.rb +232 -0
- data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +235 -0
- data/lib/bandwidth-sdk/models/{create_lookup_response.rb → create_async_bulk_lookup_response_data.rb} +5 -5
- data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +234 -0
- data/lib/bandwidth-sdk/models/{lookup_status.rb → create_sync_lookup_response_data.rb} +15 -27
- data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +39 -0
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +234 -0
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +257 -0
- data/lib/bandwidth-sdk/models/{lookup_status_enum.rb → in_progress_lookup_status_enum.rb} +3 -3
- data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/line_type_enum.rb +42 -0
- data/lib/bandwidth-sdk/models/{tn_lookup_request_error.rb → link_schema.rb} +31 -11
- data/lib/bandwidth-sdk/models/lookup_error_response.rb +235 -0
- data/lib/bandwidth-sdk/models/lookup_error_schema.rb +242 -0
- data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +234 -0
- data/lib/bandwidth-sdk/models/lookup_result.rb +102 -63
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +71 -26
- data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object.rb → multi_channel_channel_list_mms_object.rb} +11 -4
- data/lib/bandwidth-sdk/models/{multi_channel_message_response_data_channel_list_inner.rb → multi_channel_channel_list_mms_response_object.rb} +6 -5
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +275 -0
- data/lib/bandwidth-sdk/models/{lookup_request.rb → multi_channel_channel_list_owner_object.rb} +15 -17
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +298 -0
- data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object_content.rb → multi_channel_channel_list_rbm_object_all_of_content.rb} +2 -4
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +316 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +104 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +104 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +298 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +316 -0
- data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/sync_lookup_request.rb +232 -0
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +28 -8
- data/spec/smoke/multi_channel_api_spec.rb +125 -24
- data/spec/smoke/phone_number_lookup_api_spec.rb +65 -70
- data/spec/unit/api/multi_channel_api_spec.rb +13 -2
- data/spec/unit/api/phone_number_lookup_api_spec.rb +71 -56
- metadata +58 -18
- data/docs/LookupStatus.md +0 -24
- data/docs/TnLookupRequestError.md +0 -18
data/bandwidth.yml
CHANGED
|
@@ -1328,62 +1328,66 @@ paths:
|
|
|
1328
1328
|
'500':
|
|
1329
1329
|
$ref: '#/components/responses/mfaInternalServerError'
|
|
1330
1330
|
servers: *ref_2
|
|
1331
|
-
/accounts/{accountId}/
|
|
1331
|
+
/accounts/{accountId}/phoneNumberLookup:
|
|
1332
1332
|
post:
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1333
|
+
summary: Create Synchronous Number Lookup
|
|
1334
|
+
description: >-
|
|
1335
|
+
Creates a synchronous phone number lookup request. Maximum of 100
|
|
1336
|
+
telephone numbers per request.
|
|
1337
|
+
operationId: createSyncLookup
|
|
1337
1338
|
tags:
|
|
1338
1339
|
- Phone Number Lookup
|
|
1339
1340
|
parameters:
|
|
1340
|
-
- $ref: '#/components/parameters/
|
|
1341
|
+
- $ref: '#/components/parameters/accountId1'
|
|
1341
1342
|
requestBody:
|
|
1342
|
-
$ref: '#/components/requestBodies/
|
|
1343
|
+
$ref: '#/components/requestBodies/createSyncLookupRequest'
|
|
1343
1344
|
responses:
|
|
1344
|
-
'
|
|
1345
|
-
$ref: '#/components/responses/
|
|
1346
|
-
|
|
1347
|
-
$ref: '#/components/responses/
|
|
1348
|
-
'401':
|
|
1349
|
-
$ref: '#/components/responses/tnLookupUnauthorizedError'
|
|
1350
|
-
'403':
|
|
1351
|
-
$ref: '#/components/responses/tnLookupForbiddenError'
|
|
1352
|
-
'415':
|
|
1353
|
-
$ref: '#/components/responses/tnLookupMediaTypeError'
|
|
1354
|
-
'429':
|
|
1355
|
-
$ref: '#/components/responses/tnLookupTooManyRequestsError'
|
|
1356
|
-
'500':
|
|
1357
|
-
$ref: '#/components/responses/tnLookupInternalServerError'
|
|
1345
|
+
'200':
|
|
1346
|
+
$ref: '#/components/responses/createSyncLookupResponse'
|
|
1347
|
+
default:
|
|
1348
|
+
$ref: '#/components/responses/tnLookupDefaultResponse'
|
|
1358
1349
|
servers: &ref_3
|
|
1359
|
-
- url: https://
|
|
1350
|
+
- url: https://api.bandwidth.com/v2
|
|
1360
1351
|
description: Production
|
|
1361
|
-
/accounts/{accountId}/
|
|
1352
|
+
/accounts/{accountId}/phoneNumberLookup/bulk:
|
|
1353
|
+
post:
|
|
1354
|
+
summary: Create Asynchronous Bulk Number Lookup
|
|
1355
|
+
description: >-
|
|
1356
|
+
Creates an asynchronous bulk phone number lookup request. Maximum of
|
|
1357
|
+
15,000 telephone numbers per request. Use the [Get Asynchronous Bulk
|
|
1358
|
+
Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup)
|
|
1359
|
+
endpoint to check the status of the request and view the results.
|
|
1360
|
+
operationId: createAsyncBulkLookup
|
|
1361
|
+
tags:
|
|
1362
|
+
- Phone Number Lookup
|
|
1363
|
+
parameters:
|
|
1364
|
+
- $ref: '#/components/parameters/accountId1'
|
|
1365
|
+
requestBody:
|
|
1366
|
+
$ref: '#/components/requestBodies/createAsyncBulkLookupRequest'
|
|
1367
|
+
responses:
|
|
1368
|
+
'202':
|
|
1369
|
+
$ref: '#/components/responses/createAsyncBulkLookupResponse'
|
|
1370
|
+
default:
|
|
1371
|
+
$ref: '#/components/responses/tnLookupDefaultResponse'
|
|
1372
|
+
servers: *ref_3
|
|
1373
|
+
/accounts/{accountId}/phoneNumberLookup/bulk/{requestId}:
|
|
1362
1374
|
get:
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1375
|
+
summary: Get Asynchronous Bulk Number Lookup
|
|
1376
|
+
description: >-
|
|
1377
|
+
Get an existing [Asynchronous Bulk Number
|
|
1378
|
+
Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use
|
|
1379
|
+
this endpoint to check the status of the request and view the results.
|
|
1380
|
+
operationId: getAsyncBulkLookup
|
|
1367
1381
|
tags:
|
|
1368
1382
|
- Phone Number Lookup
|
|
1369
1383
|
parameters:
|
|
1370
|
-
- $ref: '#/components/parameters/
|
|
1384
|
+
- $ref: '#/components/parameters/accountId1'
|
|
1371
1385
|
- $ref: '#/components/parameters/requestId'
|
|
1372
1386
|
responses:
|
|
1373
1387
|
'200':
|
|
1374
|
-
$ref: '#/components/responses/
|
|
1375
|
-
|
|
1376
|
-
$ref: '#/components/responses/
|
|
1377
|
-
'401':
|
|
1378
|
-
$ref: '#/components/responses/tnLookupUnauthorizedError'
|
|
1379
|
-
'403':
|
|
1380
|
-
$ref: '#/components/responses/tnLookupForbiddenError'
|
|
1381
|
-
'404':
|
|
1382
|
-
$ref: '#/components/responses/tnLookupNotFoundError'
|
|
1383
|
-
'429':
|
|
1384
|
-
$ref: '#/components/responses/tnLookupTooManyRequestsError'
|
|
1385
|
-
'500':
|
|
1386
|
-
$ref: '#/components/responses/tnLookupInternalServerError'
|
|
1388
|
+
$ref: '#/components/responses/getAsyncBulkLookupResponse'
|
|
1389
|
+
default:
|
|
1390
|
+
$ref: '#/components/responses/tnLookupDefaultResponse'
|
|
1387
1391
|
servers: *ref_3
|
|
1388
1392
|
/accounts/{accountId}/tollFreeVerification:
|
|
1389
1393
|
post:
|
|
@@ -2486,7 +2490,7 @@ components:
|
|
|
2486
2490
|
$ref: '#/components/schemas/multiChannelAction'
|
|
2487
2491
|
maxItems: 11
|
|
2488
2492
|
multiChannelAction:
|
|
2489
|
-
|
|
2493
|
+
anyOf:
|
|
2490
2494
|
- $ref: '#/components/schemas/rbmActionBase'
|
|
2491
2495
|
- $ref: '#/components/schemas/rbmActionDial'
|
|
2492
2496
|
- $ref: '#/components/schemas/rbmActionViewLocation'
|
|
@@ -2501,7 +2505,7 @@ components:
|
|
|
2501
2505
|
CREATE_CALENDAR_EVENT: '#/components/schemas/multiChannelActionCalendarEvent'
|
|
2502
2506
|
OPEN_URL: '#/components/schemas/rbmActionOpenUrl'
|
|
2503
2507
|
REQUEST_LOCATION: '#/components/schemas/rbmActionBase'
|
|
2504
|
-
|
|
2508
|
+
multiChannelChannelListObjectBase:
|
|
2505
2509
|
type: object
|
|
2506
2510
|
properties:
|
|
2507
2511
|
from:
|
|
@@ -2510,19 +2514,85 @@ components:
|
|
|
2510
2514
|
$ref: '#/components/schemas/applicationId'
|
|
2511
2515
|
channel:
|
|
2512
2516
|
$ref: '#/components/schemas/multiChannelMessageChannelEnum'
|
|
2513
|
-
content:
|
|
2514
|
-
description: The content of the message.
|
|
2515
|
-
oneOf:
|
|
2516
|
-
- $ref: '#/components/schemas/rbmMessageContentText'
|
|
2517
|
-
- $ref: '#/components/schemas/rbmMessageMedia'
|
|
2518
|
-
- $ref: '#/components/schemas/rbmMessageContentRichCard'
|
|
2519
|
-
- $ref: '#/components/schemas/smsMessageContent'
|
|
2520
|
-
- $ref: '#/components/schemas/mmsMessageContent'
|
|
2521
2517
|
required:
|
|
2522
2518
|
- from
|
|
2523
2519
|
- applicationId
|
|
2524
2520
|
- channel
|
|
2521
|
+
multiChannelChannelListRBMObject:
|
|
2522
|
+
allOf:
|
|
2523
|
+
- $ref: '#/components/schemas/multiChannelChannelListObjectBase'
|
|
2524
|
+
- type: object
|
|
2525
|
+
properties:
|
|
2526
|
+
content:
|
|
2527
|
+
description: The content of the message.
|
|
2528
|
+
oneOf:
|
|
2529
|
+
- $ref: '#/components/schemas/rbmMessageContentText'
|
|
2530
|
+
- $ref: '#/components/schemas/rbmMessageMedia'
|
|
2531
|
+
- $ref: '#/components/schemas/rbmMessageContentRichCard'
|
|
2532
|
+
required:
|
|
2525
2533
|
- content
|
|
2534
|
+
multiChannelChannelListSMSObject:
|
|
2535
|
+
allOf:
|
|
2536
|
+
- $ref: '#/components/schemas/multiChannelChannelListObjectBase'
|
|
2537
|
+
- type: object
|
|
2538
|
+
properties:
|
|
2539
|
+
content:
|
|
2540
|
+
$ref: '#/components/schemas/smsMessageContent'
|
|
2541
|
+
required:
|
|
2542
|
+
- content
|
|
2543
|
+
multiChannelChannelListMMSObject:
|
|
2544
|
+
allOf:
|
|
2545
|
+
- $ref: '#/components/schemas/multiChannelChannelListObjectBase'
|
|
2546
|
+
- type: object
|
|
2547
|
+
properties:
|
|
2548
|
+
content:
|
|
2549
|
+
$ref: '#/components/schemas/mmsMessageContent'
|
|
2550
|
+
required:
|
|
2551
|
+
- content
|
|
2552
|
+
multiChannelChannelListRBMResponseObject:
|
|
2553
|
+
allOf:
|
|
2554
|
+
- $ref: '#/components/schemas/multiChannelChannelListRBMObject'
|
|
2555
|
+
- $ref: '#/components/schemas/multiChannelChannelListOwnerObject'
|
|
2556
|
+
multiChannelChannelListSMSResponseObject:
|
|
2557
|
+
allOf:
|
|
2558
|
+
- $ref: '#/components/schemas/multiChannelChannelListSMSObject'
|
|
2559
|
+
- $ref: '#/components/schemas/multiChannelChannelListOwnerObject'
|
|
2560
|
+
multiChannelChannelListMMSResponseObject:
|
|
2561
|
+
allOf:
|
|
2562
|
+
- $ref: '#/components/schemas/multiChannelChannelListMMSObject'
|
|
2563
|
+
- $ref: '#/components/schemas/multiChannelChannelListOwnerObject'
|
|
2564
|
+
multiChannelChannelListRequestObject:
|
|
2565
|
+
anyOf:
|
|
2566
|
+
- $ref: '#/components/schemas/multiChannelChannelListRBMObject'
|
|
2567
|
+
- $ref: '#/components/schemas/multiChannelChannelListSMSObject'
|
|
2568
|
+
- $ref: '#/components/schemas/multiChannelChannelListMMSObject'
|
|
2569
|
+
discriminator:
|
|
2570
|
+
propertyName: channel
|
|
2571
|
+
mapping:
|
|
2572
|
+
RBM: '#/components/schemas/multiChannelChannelListRBMObject'
|
|
2573
|
+
SMS: '#/components/schemas/multiChannelChannelListSMSObject'
|
|
2574
|
+
MMS: '#/components/schemas/multiChannelChannelListMMSObject'
|
|
2575
|
+
multiChannelChannelListOwnerObject:
|
|
2576
|
+
type: object
|
|
2577
|
+
properties:
|
|
2578
|
+
owner:
|
|
2579
|
+
type: string
|
|
2580
|
+
description: >-
|
|
2581
|
+
The Bandwidth senderId associated with the message. Identical to
|
|
2582
|
+
'from'.
|
|
2583
|
+
required:
|
|
2584
|
+
- owner
|
|
2585
|
+
multiChannelChannelListResponseObject:
|
|
2586
|
+
anyOf:
|
|
2587
|
+
- $ref: '#/components/schemas/multiChannelChannelListRBMResponseObject'
|
|
2588
|
+
- $ref: '#/components/schemas/multiChannelChannelListSMSResponseObject'
|
|
2589
|
+
- $ref: '#/components/schemas/multiChannelChannelListMMSResponseObject'
|
|
2590
|
+
discriminator:
|
|
2591
|
+
propertyName: channel
|
|
2592
|
+
mapping:
|
|
2593
|
+
RBM: '#/components/schemas/multiChannelChannelListRBMResponseObject'
|
|
2594
|
+
SMS: '#/components/schemas/multiChannelChannelListSMSResponseObject'
|
|
2595
|
+
MMS: '#/components/schemas/multiChannelChannelListMMSResponseObject'
|
|
2526
2596
|
multiChannelMessageRequest:
|
|
2527
2597
|
description: Multi-Channel Message Request
|
|
2528
2598
|
type: object
|
|
@@ -2536,7 +2606,7 @@ components:
|
|
|
2536
2606
|
order they are listed. Once a message sends successfully, the others
|
|
2537
2607
|
will be ignored.
|
|
2538
2608
|
items:
|
|
2539
|
-
$ref: '#/components/schemas/
|
|
2609
|
+
$ref: '#/components/schemas/multiChannelChannelListRequestObject'
|
|
2540
2610
|
maxItems: 4
|
|
2541
2611
|
tag:
|
|
2542
2612
|
$ref: '#/components/schemas/tag'
|
|
@@ -2569,17 +2639,7 @@ components:
|
|
|
2569
2639
|
order they are listed. Once a message sends successfully, the others
|
|
2570
2640
|
will be ignored.
|
|
2571
2641
|
items:
|
|
2572
|
-
|
|
2573
|
-
- $ref: '#/components/schemas/multiChannelChannelListObject'
|
|
2574
|
-
- type: object
|
|
2575
|
-
properties:
|
|
2576
|
-
owner:
|
|
2577
|
-
type: string
|
|
2578
|
-
description: >-
|
|
2579
|
-
The Bandwidth senderId associated with the message.
|
|
2580
|
-
Identical to 'from'.
|
|
2581
|
-
required:
|
|
2582
|
-
- owner
|
|
2642
|
+
$ref: '#/components/schemas/multiChannelChannelListResponseObject'
|
|
2583
2643
|
maxItems: 4
|
|
2584
2644
|
tag:
|
|
2585
2645
|
$ref: '#/components/schemas/tag'
|
|
@@ -5368,112 +5428,291 @@ components:
|
|
|
5368
5428
|
The message containing the reason behind the request being
|
|
5369
5429
|
forbidden.
|
|
5370
5430
|
example: Missing Authentication Token
|
|
5371
|
-
|
|
5431
|
+
completedLookupStatusEnum:
|
|
5432
|
+
type: string
|
|
5433
|
+
enum:
|
|
5434
|
+
- COMPLETE
|
|
5435
|
+
- PARTIAL_COMPLETE
|
|
5436
|
+
- FAILED
|
|
5437
|
+
example: COMPLETE
|
|
5438
|
+
inProgressLookupStatusEnum:
|
|
5372
5439
|
type: string
|
|
5373
|
-
description: >-
|
|
5374
|
-
The status of the request (IN_PROGRESS, COMPLETE, PARTIAL_COMPLETE, or
|
|
5375
|
-
FAILED).
|
|
5376
5440
|
enum:
|
|
5377
5441
|
- IN_PROGRESS
|
|
5378
5442
|
- COMPLETE
|
|
5379
5443
|
- PARTIAL_COMPLETE
|
|
5380
5444
|
- FAILED
|
|
5381
5445
|
example: COMPLETE
|
|
5382
|
-
|
|
5446
|
+
deactivationEventEnum:
|
|
5447
|
+
type: string
|
|
5448
|
+
description: >
|
|
5449
|
+
[DNI-Only](#section/DNI-Only).
|
|
5450
|
+
|
|
5451
|
+
`DEACTIVATED` if the carrier reported a deactivation event for this
|
|
5452
|
+
phone number.
|
|
5453
|
+
enum:
|
|
5454
|
+
- DEACTIVATED
|
|
5455
|
+
latestMessageDeliveryStatusEnum:
|
|
5456
|
+
type: string
|
|
5457
|
+
description: >-
|
|
5458
|
+
[DNI-Only](#section/DNI-Only). The current delivery status of the phone
|
|
5459
|
+
number.
|
|
5460
|
+
|
|
5461
|
+
- ACTIVE: A message was successfully sent to the number (delivery code
|
|
5462
|
+
0).
|
|
5463
|
+
|
|
5464
|
+
- DEACTIVATED: A message was not delivered to a number (delivery code
|
|
5465
|
+
720)
|
|
5466
|
+
|
|
5467
|
+
- UNKNOWN: Bandwidth cannot find an delivery status entry for the
|
|
5468
|
+
number.
|
|
5469
|
+
enum:
|
|
5470
|
+
- ACTIVE
|
|
5471
|
+
- DEACTIVATED
|
|
5472
|
+
- UNKNOWN
|
|
5473
|
+
lineTypeEnum:
|
|
5474
|
+
type: string
|
|
5475
|
+
enum:
|
|
5476
|
+
- FIXED
|
|
5477
|
+
- VOIP-FIXED
|
|
5478
|
+
- MOBILE
|
|
5479
|
+
- VOIP
|
|
5480
|
+
example: MOBILE
|
|
5481
|
+
requestId:
|
|
5482
|
+
type: string
|
|
5483
|
+
format: uuid
|
|
5484
|
+
description: The phone number lookup request ID from Bandwidth.
|
|
5485
|
+
example: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
5486
|
+
linkSchema:
|
|
5487
|
+
title: Link
|
|
5488
|
+
type: object
|
|
5489
|
+
properties:
|
|
5490
|
+
href:
|
|
5491
|
+
type: string
|
|
5492
|
+
description: URI of the link.
|
|
5493
|
+
example: /relative/uri
|
|
5494
|
+
rel:
|
|
5495
|
+
type: string
|
|
5496
|
+
description: Specifies the relationship between this link and the resource.
|
|
5497
|
+
example: aRelatedResource
|
|
5498
|
+
method:
|
|
5499
|
+
type: string
|
|
5500
|
+
description: HTTP method to be used.
|
|
5501
|
+
example: GET
|
|
5502
|
+
lookupErrorSchema:
|
|
5383
5503
|
type: object
|
|
5384
|
-
description: Create phone number lookup request.
|
|
5385
5504
|
properties:
|
|
5386
|
-
|
|
5505
|
+
code:
|
|
5506
|
+
type: string
|
|
5507
|
+
description: Validation error code
|
|
5508
|
+
example: NO-MATCH
|
|
5509
|
+
description:
|
|
5510
|
+
type: string
|
|
5511
|
+
description: Description of validation error
|
|
5512
|
+
example: Example error description
|
|
5513
|
+
type:
|
|
5514
|
+
type: string
|
|
5515
|
+
description: Type of validation error
|
|
5516
|
+
example: NumberInventory
|
|
5517
|
+
meta:
|
|
5518
|
+
type: object
|
|
5519
|
+
properties:
|
|
5520
|
+
phoneNumbers:
|
|
5521
|
+
type: array
|
|
5522
|
+
items:
|
|
5523
|
+
type: string
|
|
5524
|
+
description: Phone number experiencing the error.
|
|
5525
|
+
example:
|
|
5526
|
+
- '+13992077164'
|
|
5527
|
+
- '+19196104424'
|
|
5528
|
+
message:
|
|
5529
|
+
type: string
|
|
5530
|
+
description: Message describing the error
|
|
5531
|
+
example: Invalid TNs
|
|
5532
|
+
code:
|
|
5533
|
+
type: integer
|
|
5534
|
+
description: Error code associated with the message
|
|
5535
|
+
example: 1001
|
|
5536
|
+
syncLookupRequest:
|
|
5537
|
+
type: object
|
|
5538
|
+
properties:
|
|
5539
|
+
phoneNumbers:
|
|
5540
|
+
description: Telephone numbers in E.164 format.
|
|
5387
5541
|
type: array
|
|
5542
|
+
minimum: 1
|
|
5543
|
+
maximum: 100
|
|
5388
5544
|
items:
|
|
5389
5545
|
type: string
|
|
5546
|
+
pattern: ^\+[1-9]\d{1,14}$
|
|
5390
5547
|
required:
|
|
5391
|
-
-
|
|
5392
|
-
|
|
5548
|
+
- phoneNumbers
|
|
5549
|
+
asyncLookupRequest:
|
|
5393
5550
|
type: object
|
|
5394
|
-
description: >-
|
|
5395
|
-
The request has been accepted for processing but not yet finished and in
|
|
5396
|
-
a terminal state (COMPLETE, PARTIAL_COMPLETE, or FAILED).
|
|
5397
5551
|
properties:
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5552
|
+
phoneNumbers:
|
|
5553
|
+
description: Telephone numbers in E.164 format.
|
|
5554
|
+
type: array
|
|
5555
|
+
minimum: 1
|
|
5556
|
+
maximum: 15000
|
|
5557
|
+
items:
|
|
5558
|
+
type: string
|
|
5559
|
+
pattern: ^\+[1-9]\d{1,14}$
|
|
5560
|
+
required:
|
|
5561
|
+
- phoneNumbers
|
|
5562
|
+
createSyncLookupResponse:
|
|
5404
5563
|
type: object
|
|
5405
|
-
description: >-
|
|
5406
|
-
If requestId exists, the result for that request is returned. See the
|
|
5407
|
-
Examples for details on the various responses that you can receive.
|
|
5408
|
-
Generally, if you see a Response Code of 0 in a result for a TN,
|
|
5409
|
-
information will be available for it. Any other Response Code will
|
|
5410
|
-
indicate no information was available for the TN.
|
|
5411
5564
|
properties:
|
|
5412
|
-
|
|
5413
|
-
type: string
|
|
5414
|
-
description: The requestId.
|
|
5415
|
-
example: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
5416
|
-
status:
|
|
5417
|
-
$ref: '#/components/schemas/lookupStatusEnum'
|
|
5418
|
-
result:
|
|
5565
|
+
links:
|
|
5419
5566
|
type: array
|
|
5420
|
-
description: The carrier information results for the specified telephone number.
|
|
5421
5567
|
items:
|
|
5422
|
-
$ref: '#/components/schemas/
|
|
5423
|
-
|
|
5568
|
+
$ref: '#/components/schemas/linkSchema'
|
|
5569
|
+
example: []
|
|
5570
|
+
data:
|
|
5571
|
+
type: object
|
|
5572
|
+
description: The phone number lookup response data
|
|
5573
|
+
properties:
|
|
5574
|
+
requestId:
|
|
5575
|
+
$ref: '#/components/schemas/requestId'
|
|
5576
|
+
status:
|
|
5577
|
+
$ref: '#/components/schemas/completedLookupStatusEnum'
|
|
5578
|
+
results:
|
|
5579
|
+
type: array
|
|
5580
|
+
description: >-
|
|
5581
|
+
The carrier information results for the specified telephone
|
|
5582
|
+
numbers.
|
|
5583
|
+
items:
|
|
5584
|
+
$ref: '#/components/schemas/lookupResult'
|
|
5585
|
+
errors:
|
|
5424
5586
|
type: array
|
|
5425
|
-
description: The telephone numbers whose lookup failed.
|
|
5426
5587
|
items:
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5588
|
+
$ref: '#/components/schemas/lookupErrorSchema'
|
|
5589
|
+
createAsyncBulkLookupResponse:
|
|
5590
|
+
type: object
|
|
5591
|
+
properties:
|
|
5592
|
+
links:
|
|
5593
|
+
type: array
|
|
5594
|
+
description: Links for pagination (if applicable)
|
|
5595
|
+
items:
|
|
5596
|
+
$ref: '#/components/schemas/linkSchema'
|
|
5597
|
+
data:
|
|
5598
|
+
type: object
|
|
5599
|
+
description: The phone number lookup response data
|
|
5600
|
+
properties:
|
|
5601
|
+
requestId:
|
|
5602
|
+
$ref: '#/components/schemas/requestId'
|
|
5603
|
+
status:
|
|
5604
|
+
$ref: '#/components/schemas/inProgressLookupStatusEnum'
|
|
5605
|
+
errors:
|
|
5606
|
+
type: array
|
|
5607
|
+
items:
|
|
5608
|
+
$ref: '#/components/schemas/lookupErrorSchema'
|
|
5609
|
+
getAsyncBulkLookupResponse:
|
|
5610
|
+
type: object
|
|
5611
|
+
properties:
|
|
5612
|
+
links:
|
|
5613
|
+
type: array
|
|
5614
|
+
items:
|
|
5615
|
+
$ref: '#/components/schemas/linkSchema'
|
|
5616
|
+
example: []
|
|
5617
|
+
data:
|
|
5618
|
+
type: object
|
|
5619
|
+
description: The phone number lookup response data
|
|
5620
|
+
properties:
|
|
5621
|
+
requestId:
|
|
5622
|
+
$ref: '#/components/schemas/requestId'
|
|
5623
|
+
status:
|
|
5624
|
+
$ref: '#/components/schemas/inProgressLookupStatusEnum'
|
|
5625
|
+
results:
|
|
5626
|
+
type: array
|
|
5627
|
+
description: >-
|
|
5628
|
+
The carrier information results for the specified telephone
|
|
5629
|
+
number.
|
|
5630
|
+
items:
|
|
5631
|
+
$ref: '#/components/schemas/lookupResult'
|
|
5632
|
+
errors:
|
|
5633
|
+
type: array
|
|
5634
|
+
items:
|
|
5635
|
+
$ref: '#/components/schemas/lookupErrorSchema'
|
|
5636
|
+
lookupErrorResponse:
|
|
5637
|
+
type: object
|
|
5638
|
+
properties:
|
|
5639
|
+
links:
|
|
5640
|
+
type: array
|
|
5641
|
+
items:
|
|
5642
|
+
$ref: '#/components/schemas/linkSchema'
|
|
5643
|
+
example: []
|
|
5644
|
+
data:
|
|
5645
|
+
type: object
|
|
5646
|
+
description: The phone number lookup response data
|
|
5647
|
+
errors:
|
|
5648
|
+
type: array
|
|
5649
|
+
items:
|
|
5650
|
+
$ref: '#/components/schemas/lookupErrorSchema'
|
|
5430
5651
|
lookupResult:
|
|
5431
5652
|
type: object
|
|
5432
5653
|
description: Carrier information results for the specified telephone number.
|
|
5433
5654
|
properties:
|
|
5434
|
-
|
|
5435
|
-
type: integer
|
|
5436
|
-
description: Our vendor's response code.
|
|
5437
|
-
example: 0
|
|
5438
|
-
Message:
|
|
5439
|
-
type: string
|
|
5440
|
-
description: Message associated with the response code.
|
|
5441
|
-
example: NOERROR
|
|
5442
|
-
E.164 Format:
|
|
5655
|
+
phoneNumber:
|
|
5443
5656
|
type: string
|
|
5444
5657
|
description: The telephone number in E.164 format.
|
|
5445
|
-
example: '+
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
example: (919) 555-1234
|
|
5450
|
-
Country:
|
|
5451
|
-
type: string
|
|
5452
|
-
description: The country of the telephone number.
|
|
5453
|
-
example: US
|
|
5454
|
-
Line Type:
|
|
5455
|
-
type: string
|
|
5456
|
-
description: The line type of the telephone number.
|
|
5457
|
-
example: Mobile
|
|
5458
|
-
Line Provider:
|
|
5658
|
+
example: '+10072904498'
|
|
5659
|
+
lineType:
|
|
5660
|
+
$ref: '#/components/schemas/lineTypeEnum'
|
|
5661
|
+
messagingProvider:
|
|
5459
5662
|
type: string
|
|
5460
5663
|
description: The messaging service provider of the telephone number.
|
|
5461
5664
|
example: Verizon Wireless
|
|
5462
|
-
|
|
5665
|
+
voiceProvider:
|
|
5463
5666
|
type: string
|
|
5464
|
-
description: The
|
|
5465
|
-
example:
|
|
5466
|
-
|
|
5667
|
+
description: The voice service provider of the telephone number.
|
|
5668
|
+
example: Verizon Wireless
|
|
5669
|
+
countryCodeA3:
|
|
5467
5670
|
type: string
|
|
5468
|
-
description:
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5671
|
+
description: >-
|
|
5672
|
+
The country code of the telephone number in ISO 3166-1 alpha-3
|
|
5673
|
+
format.
|
|
5674
|
+
example: USA
|
|
5675
|
+
deactivationReporter:
|
|
5676
|
+
type: string
|
|
5677
|
+
description: >
|
|
5678
|
+
[DNI-Only](#section/DNI-Only).
|
|
5679
|
+
|
|
5680
|
+
The carrier that reported a deactivation event for this phone
|
|
5681
|
+
number.
|
|
5682
|
+
deactivationDate:
|
|
5474
5683
|
type: string
|
|
5475
|
-
|
|
5476
|
-
|
|
5684
|
+
format: date-time-local
|
|
5685
|
+
description: >-
|
|
5686
|
+
[DNI-Only](#section/DNI-Only). The datetime the carrier reported a
|
|
5687
|
+
deactivation event.
|
|
5688
|
+
example: 2025-06-20 18:35
|
|
5689
|
+
deactivationEvent:
|
|
5690
|
+
$ref: '#/components/schemas/deactivationEventEnum'
|
|
5691
|
+
latestMessageDeliveryStatus:
|
|
5692
|
+
$ref: '#/components/schemas/latestMessageDeliveryStatusEnum'
|
|
5693
|
+
initialMessageDeliveryStatusDate:
|
|
5694
|
+
type: string
|
|
5695
|
+
format: date
|
|
5696
|
+
description: >-
|
|
5697
|
+
[DNI-Only](#section/DNI-Only). The date the phone number entered the
|
|
5698
|
+
status described in `latestMessageDeliveryStatus`.
|
|
5699
|
+
|
|
5700
|
+
Think of this as the "start time" for that status.
|
|
5701
|
+
|
|
5702
|
+
Value resets every time the `latestMessageDeliveryStatus` changes.
|
|
5703
|
+
example: '2025-06-20'
|
|
5704
|
+
latestMessageDeliveryStatusDate:
|
|
5705
|
+
type: string
|
|
5706
|
+
format: date
|
|
5707
|
+
description: >-
|
|
5708
|
+
[DNI-Only](#section/DNI-Only). The date bandwidth last received
|
|
5709
|
+
delivery status information for this phone number.
|
|
5710
|
+
|
|
5711
|
+
Use this field to understand how up-to-date the
|
|
5712
|
+
`latestMessageDeliveryStatus` is.
|
|
5713
|
+
|
|
5714
|
+
Value resets every time the `latestMessageDeliveryStatus` changes.
|
|
5715
|
+
example: '2025-06-21'
|
|
5477
5716
|
accountId1:
|
|
5478
5717
|
type: string
|
|
5479
5718
|
description: User's account ID.
|
|
@@ -6720,109 +6959,68 @@ components:
|
|
|
6720
6959
|
application/json:
|
|
6721
6960
|
schema:
|
|
6722
6961
|
$ref: '#/components/schemas/mfaRequestError'
|
|
6723
|
-
|
|
6962
|
+
createSyncLookupResponse:
|
|
6963
|
+
description: OK
|
|
6964
|
+
content:
|
|
6965
|
+
application/json:
|
|
6966
|
+
schema:
|
|
6967
|
+
$ref: '#/components/schemas/createSyncLookupResponse'
|
|
6968
|
+
examples:
|
|
6969
|
+
lookupCompleteWithDniExample:
|
|
6970
|
+
$ref: '#/components/examples/lookupCompleteWithDniExample'
|
|
6971
|
+
lookupCompleteExample:
|
|
6972
|
+
$ref: '#/components/examples/lookupCompleteExample'
|
|
6973
|
+
lookupPartialExample:
|
|
6974
|
+
$ref: '#/components/examples/lookupPartialExample'
|
|
6975
|
+
lookupFailedExample:
|
|
6976
|
+
$ref: '#/components/examples/lookupFailedExample'
|
|
6977
|
+
createAsyncBulkLookupResponse:
|
|
6724
6978
|
description: Accepted
|
|
6725
6979
|
content:
|
|
6726
6980
|
application/json:
|
|
6727
6981
|
schema:
|
|
6728
|
-
$ref: '#/components/schemas/
|
|
6982
|
+
$ref: '#/components/schemas/createAsyncBulkLookupResponse'
|
|
6729
6983
|
examples:
|
|
6730
|
-
|
|
6984
|
+
lookupInProgressExample:
|
|
6731
6985
|
$ref: '#/components/examples/lookupInProgressExample'
|
|
6732
|
-
|
|
6986
|
+
getAsyncBulkLookupResponse:
|
|
6733
6987
|
description: OK
|
|
6734
6988
|
content:
|
|
6735
6989
|
application/json:
|
|
6736
6990
|
schema:
|
|
6737
|
-
$ref: '#/components/schemas/
|
|
6991
|
+
$ref: '#/components/schemas/getAsyncBulkLookupResponse'
|
|
6738
6992
|
examples:
|
|
6993
|
+
lookupCompleteWithDniExample:
|
|
6994
|
+
$ref: '#/components/examples/lookupCompleteWithDniExample'
|
|
6995
|
+
lookupCompleteExample:
|
|
6996
|
+
$ref: '#/components/examples/lookupCompleteExample'
|
|
6739
6997
|
lookupInProgressExample:
|
|
6740
6998
|
$ref: '#/components/examples/lookupInProgressExample'
|
|
6999
|
+
lookupPartialExample:
|
|
7000
|
+
$ref: '#/components/examples/lookupPartialExample'
|
|
6741
7001
|
lookupFailedExample:
|
|
6742
7002
|
$ref: '#/components/examples/lookupFailedExample'
|
|
6743
|
-
|
|
6744
|
-
$ref: '#/components/examples/lookupSingleNumberCompleteExample'
|
|
6745
|
-
lookupMultipleNumbersCompleteExample:
|
|
6746
|
-
$ref: '#/components/examples/lookupMultipleNumbersCompleteExample'
|
|
6747
|
-
lookupMultipleNumbersPartialCompleteExample:
|
|
6748
|
-
$ref: >-
|
|
6749
|
-
#/components/examples/lookupMultipleNumbersPartialCompleteExample
|
|
6750
|
-
lookupSingleNumberCompleteNoInfoExample:
|
|
6751
|
-
$ref: '#/components/examples/lookupSingleNumberCompleteNoInfoExample'
|
|
6752
|
-
tnLookupBadRequestError:
|
|
7003
|
+
tnLookupDefaultResponse:
|
|
6753
7004
|
description: Bad Request
|
|
6754
7005
|
content:
|
|
6755
7006
|
application/json:
|
|
6756
7007
|
schema:
|
|
6757
|
-
$ref: '#/components/schemas/
|
|
7008
|
+
$ref: '#/components/schemas/lookupErrorResponse'
|
|
6758
7009
|
examples:
|
|
6759
7010
|
badRequest:
|
|
6760
|
-
|
|
6761
|
-
value:
|
|
6762
|
-
message: 'Some tns do not match e164 format: 1234'
|
|
6763
|
-
tnLookupUnauthorizedError:
|
|
6764
|
-
description: Unauthorized
|
|
6765
|
-
content:
|
|
6766
|
-
application/json:
|
|
6767
|
-
schema:
|
|
6768
|
-
$ref: '#/components/schemas/tnLookupRequestError'
|
|
6769
|
-
examples:
|
|
7011
|
+
$ref: '#/components/examples/badRequestExample'
|
|
6770
7012
|
unauthorized:
|
|
6771
|
-
|
|
6772
|
-
value:
|
|
6773
|
-
message: Unauthorized
|
|
6774
|
-
tnLookupForbiddenError:
|
|
6775
|
-
description: Forbidden
|
|
6776
|
-
content:
|
|
6777
|
-
application/json:
|
|
6778
|
-
schema:
|
|
6779
|
-
$ref: '#/components/schemas/tnLookupRequestError'
|
|
6780
|
-
examples:
|
|
7013
|
+
$ref: '#/components/examples/unauthorizedExample'
|
|
6781
7014
|
forbidden:
|
|
6782
|
-
|
|
6783
|
-
value:
|
|
6784
|
-
message: >-
|
|
6785
|
-
Authorization header requires 'Credential' parameter.
|
|
6786
|
-
Authorization header requires 'Signature' parameter.
|
|
6787
|
-
Authorization header requires 'SignedHeaders' parameter.
|
|
6788
|
-
Authorization header requires existence of either a
|
|
6789
|
-
'X-Amz-Date' or a 'Date' header. Authorization=Basic
|
|
6790
|
-
Y2tvZloPTGhHgywYIzGlcGVlcGvvcGovYTIGIt=='
|
|
6791
|
-
tnLookupMediaTypeError:
|
|
6792
|
-
description: Unsupported Media Type
|
|
6793
|
-
content:
|
|
6794
|
-
application/json:
|
|
6795
|
-
schema:
|
|
6796
|
-
$ref: '#/components/schemas/tnLookupRequestError'
|
|
6797
|
-
examples:
|
|
6798
|
-
mediaType:
|
|
6799
|
-
summary: Example Unsupported Media Type Error
|
|
6800
|
-
value:
|
|
6801
|
-
message: Content-Type must be application/json.
|
|
6802
|
-
tnLookupNotFoundError:
|
|
6803
|
-
description: Not Found
|
|
6804
|
-
tnLookupTooManyRequestsError:
|
|
6805
|
-
description: Too Many Requests
|
|
6806
|
-
content:
|
|
6807
|
-
application/json:
|
|
6808
|
-
schema:
|
|
6809
|
-
$ref: '#/components/schemas/tnLookupRequestError'
|
|
6810
|
-
examples:
|
|
6811
|
-
mediaType:
|
|
6812
|
-
summary: Example Too Many Requests Error
|
|
6813
|
-
value:
|
|
6814
|
-
message: Too many requests.
|
|
6815
|
-
tnLookupInternalServerError:
|
|
6816
|
-
description: Internal Server Error
|
|
6817
|
-
content:
|
|
6818
|
-
application/json:
|
|
6819
|
-
schema:
|
|
6820
|
-
$ref: '#/components/schemas/tnLookupRequestError'
|
|
6821
|
-
examples:
|
|
7015
|
+
$ref: '#/components/examples/forbiddenExample'
|
|
6822
7016
|
mediaType:
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
7017
|
+
$ref: '#/components/examples/unsupportedMediaTypeExample'
|
|
7018
|
+
notFound:
|
|
7019
|
+
$ref: '#/components/examples/notFoundExample'
|
|
7020
|
+
tooManyRequests:
|
|
7021
|
+
$ref: '#/components/examples/tooManyRequestsExample'
|
|
7022
|
+
internalServer:
|
|
7023
|
+
$ref: '#/components/examples/internalServerErrorExample'
|
|
6826
7024
|
getTollFreeVerificationStatusResponse:
|
|
6827
7025
|
description: OK
|
|
6828
7026
|
content:
|
|
@@ -7405,14 +7603,23 @@ components:
|
|
|
7405
7603
|
type: string
|
|
7406
7604
|
description: Filter results to calls with specified call Disconnect Cause.
|
|
7407
7605
|
example: hangup
|
|
7606
|
+
accountId1:
|
|
7607
|
+
in: path
|
|
7608
|
+
name: accountId
|
|
7609
|
+
required: true
|
|
7610
|
+
schema:
|
|
7611
|
+
type: string
|
|
7612
|
+
description: Your Bandwidth Account ID.
|
|
7613
|
+
example: '9900000'
|
|
7408
7614
|
requestId:
|
|
7409
|
-
name: requestId
|
|
7410
7615
|
in: path
|
|
7616
|
+
name: requestId
|
|
7411
7617
|
required: true
|
|
7412
7618
|
schema:
|
|
7413
7619
|
type: string
|
|
7414
|
-
|
|
7415
|
-
|
|
7620
|
+
format: uuid
|
|
7621
|
+
description: The phone number lookup request ID from Bandwidth.
|
|
7622
|
+
example: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
7416
7623
|
tfPhoneNumberPathParam:
|
|
7417
7624
|
in: path
|
|
7418
7625
|
name: phoneNumber
|
|
@@ -7651,95 +7858,208 @@ components:
|
|
|
7651
7858
|
type: validation
|
|
7652
7859
|
description: 'Invalid answerUrl: only http and https are allowed.'
|
|
7653
7860
|
singleNumberRequestExample:
|
|
7654
|
-
summary:
|
|
7861
|
+
summary: Number Lookup Request
|
|
7655
7862
|
value:
|
|
7656
|
-
|
|
7657
|
-
- '+
|
|
7863
|
+
phoneNumbers:
|
|
7864
|
+
- '+19196104423'
|
|
7658
7865
|
multipleNumberRequestExample:
|
|
7659
|
-
summary:
|
|
7866
|
+
summary: Number Lookup Request for Multiple Numbers
|
|
7660
7867
|
value:
|
|
7661
|
-
|
|
7662
|
-
- '+
|
|
7663
|
-
- '+
|
|
7868
|
+
phoneNumbers:
|
|
7869
|
+
- '+19196104423'
|
|
7870
|
+
- '+19196104424'
|
|
7664
7871
|
lookupInProgressExample:
|
|
7665
|
-
summary:
|
|
7872
|
+
summary: Numbers Lookup In Progress
|
|
7666
7873
|
value:
|
|
7667
|
-
|
|
7668
|
-
|
|
7874
|
+
links:
|
|
7875
|
+
- href: href
|
|
7876
|
+
rel: rel
|
|
7877
|
+
method: GET
|
|
7878
|
+
data:
|
|
7879
|
+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
7880
|
+
status: IN_PROGRESS
|
|
7881
|
+
results: []
|
|
7882
|
+
errors: []
|
|
7669
7883
|
lookupFailedExample:
|
|
7670
|
-
summary:
|
|
7884
|
+
summary: Numbers Lookup Failed
|
|
7885
|
+
value:
|
|
7886
|
+
links:
|
|
7887
|
+
- href: href
|
|
7888
|
+
rel: rel
|
|
7889
|
+
method: GET
|
|
7890
|
+
data:
|
|
7891
|
+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
7892
|
+
status: FAILED
|
|
7893
|
+
results: []
|
|
7894
|
+
errors:
|
|
7895
|
+
- code: NO-MATCH
|
|
7896
|
+
description: The following TNs could not be found in the Number Industry data
|
|
7897
|
+
meta:
|
|
7898
|
+
phoneNumbers:
|
|
7899
|
+
- '+13992077164'
|
|
7900
|
+
message: Invalid TNs
|
|
7901
|
+
code: 1001
|
|
7902
|
+
type: NumberInventory
|
|
7903
|
+
lookupPartialExample:
|
|
7904
|
+
summary: Numbers Lookup Partial Complete
|
|
7905
|
+
value:
|
|
7906
|
+
links:
|
|
7907
|
+
- href: href
|
|
7908
|
+
rel: rel
|
|
7909
|
+
method: GET
|
|
7910
|
+
data:
|
|
7911
|
+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
7912
|
+
status: PARTIAL_COMPLETE
|
|
7913
|
+
results:
|
|
7914
|
+
- phoneNumber: '+19196104423'
|
|
7915
|
+
lineType: MOBILE
|
|
7916
|
+
messagingProvider: Verizon Wireless
|
|
7917
|
+
voiceProvider: Verizon Wireless
|
|
7918
|
+
countryCodeA3: USA
|
|
7919
|
+
- phoneNumber: '+19196104424'
|
|
7920
|
+
lineType: MOBILE
|
|
7921
|
+
messagingProvider: T-Mobile USA
|
|
7922
|
+
voiceProvider: T-Mobile USA
|
|
7923
|
+
countryCodeA3: USA
|
|
7924
|
+
errors:
|
|
7925
|
+
- code: NO-MATCH
|
|
7926
|
+
description: The following TNs could not be found in the Number Industry data
|
|
7927
|
+
meta:
|
|
7928
|
+
phoneNumbers:
|
|
7929
|
+
- '+13992077164'
|
|
7930
|
+
message: Invalid TNs
|
|
7931
|
+
code: 1001
|
|
7932
|
+
type: NumberInventory
|
|
7933
|
+
lookupCompleteExample:
|
|
7934
|
+
summary: Numbers Lookup Complete (without DNI)
|
|
7935
|
+
value:
|
|
7936
|
+
links:
|
|
7937
|
+
- href: href
|
|
7938
|
+
rel: rel
|
|
7939
|
+
method: GET
|
|
7940
|
+
data:
|
|
7941
|
+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
|
|
7942
|
+
status: COMPLETE
|
|
7943
|
+
results:
|
|
7944
|
+
- phoneNumber: '+10072904497'
|
|
7945
|
+
lineType: MOBILE
|
|
7946
|
+
messagingProvider: Verizon Wireless
|
|
7947
|
+
voiceProvider: Verizon Wireless
|
|
7948
|
+
countryCodeA3: USA
|
|
7949
|
+
- phoneNumber: '+10072904498'
|
|
7950
|
+
lineType: MOBILE
|
|
7951
|
+
messagingProvider: T-Mobile USA
|
|
7952
|
+
voiceProvider: T-Mobile USA
|
|
7953
|
+
countryCodeA3: USA
|
|
7954
|
+
errors: []
|
|
7955
|
+
lookupCompleteWithDniExample:
|
|
7956
|
+
summary: Numbers Lookup Complete (with DNI)
|
|
7957
|
+
value:
|
|
7958
|
+
links:
|
|
7959
|
+
- href: href
|
|
7960
|
+
rel: rel
|
|
7961
|
+
method: GET
|
|
7962
|
+
data:
|
|
7963
|
+
requestId: 20732adf-bf81-8b17-41b1-004223a05590
|
|
7964
|
+
status: COMPLETE
|
|
7965
|
+
results:
|
|
7966
|
+
- phoneNumber: '+10072904497'
|
|
7967
|
+
countryCodeA3: USA
|
|
7968
|
+
lineType: MOBILE
|
|
7969
|
+
messagingProvider: T-MOBILE USA INC
|
|
7970
|
+
voiceProvider: T-MOBILE USA INC
|
|
7971
|
+
latestMessageDeliveryStatus: ACTIVE
|
|
7972
|
+
initialMessageDeliveryStatusDate: '2025-05-14'
|
|
7973
|
+
latestMessageDeliveryStatusDate: '2025-05-18'
|
|
7974
|
+
- phoneNumber: '+10072904498'
|
|
7975
|
+
countryCodeA3: USA
|
|
7976
|
+
lineType: FIXED
|
|
7977
|
+
voiceProvider: VERIZON
|
|
7978
|
+
latestMessageDeliveryStatus: DEACTIVATED
|
|
7979
|
+
initialMessageDeliveryStatusDate: '2025-09-05'
|
|
7980
|
+
latestMessageDeliveryStatusDate: '2025-09-05'
|
|
7981
|
+
- phoneNumber: '+10072904499'
|
|
7982
|
+
lineType: MOBILE
|
|
7983
|
+
countryCodeA3: USA
|
|
7984
|
+
messagingProvider: VERIZON
|
|
7985
|
+
voiceProvider: VERIZON
|
|
7986
|
+
deactivationReporter: Verizon Wireless
|
|
7987
|
+
deactivationDate: '2025-09-29 01:23:00'
|
|
7988
|
+
deactivationEvent: DEACTIVATED
|
|
7989
|
+
latestMessageDeliveryStatus: UNKNOWN
|
|
7990
|
+
errors: []
|
|
7991
|
+
badRequestExample:
|
|
7992
|
+
summary: Example Bad Request Error
|
|
7993
|
+
value:
|
|
7994
|
+
links: []
|
|
7995
|
+
data: {}
|
|
7996
|
+
errors:
|
|
7997
|
+
- type: bad-request
|
|
7998
|
+
description: >-
|
|
7999
|
+
Bad Request. Ensure that you have set the requestId as a URL path
|
|
8000
|
+
parameter.
|
|
8001
|
+
unauthorizedExample:
|
|
8002
|
+
summary: Unauthorized Error
|
|
8003
|
+
value:
|
|
8004
|
+
links: []
|
|
8005
|
+
data: {}
|
|
8006
|
+
errors:
|
|
8007
|
+
- type: Unauthorized
|
|
8008
|
+
description: You are not authorized to access this resource.
|
|
8009
|
+
code: '1'
|
|
8010
|
+
page: null
|
|
8011
|
+
forbiddenExample:
|
|
8012
|
+
summary: Forbidden Error
|
|
7671
8013
|
value:
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
-
|
|
7676
|
-
|
|
7677
|
-
|
|
8014
|
+
links: []
|
|
8015
|
+
data: {}
|
|
8016
|
+
errors:
|
|
8017
|
+
- type: Forbidden
|
|
8018
|
+
description: You do not have permission to access this resource.
|
|
8019
|
+
code: '2'
|
|
8020
|
+
page: null
|
|
8021
|
+
unsupportedMediaTypeExample:
|
|
8022
|
+
summary: Unsupported Media Type Error
|
|
7678
8023
|
value:
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
Line Provider: Verizon Wireless
|
|
7689
|
-
Mobile Country Code: '310'
|
|
7690
|
-
Mobile Network Code: '010'
|
|
7691
|
-
lookupMultipleNumbersCompleteExample:
|
|
7692
|
-
summary: Example Multiple Numbers Lookup Complete Response
|
|
8024
|
+
links: []
|
|
8025
|
+
data: {}
|
|
8026
|
+
errors:
|
|
8027
|
+
- type: invalid-content-type
|
|
8028
|
+
description: >-
|
|
8029
|
+
Invalid content-type. Ensure that your content-type header is set
|
|
8030
|
+
to application/json.
|
|
8031
|
+
notFoundExample:
|
|
8032
|
+
summary: Not Found Error
|
|
7693
8033
|
value:
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
Line Provider: Verizon Wireless
|
|
7704
|
-
Mobile Country Code: '310'
|
|
7705
|
-
Mobile Network Code: '010'
|
|
7706
|
-
- Response Code: 0
|
|
7707
|
-
Message: NOERROR
|
|
7708
|
-
E.164 Format: '+19195554321'
|
|
7709
|
-
Formatted: (919) 555-4321
|
|
7710
|
-
Country: US
|
|
7711
|
-
Line Type: Mobile
|
|
7712
|
-
Line Provider: T-Mobile USA
|
|
7713
|
-
Mobile Country Code: '310'
|
|
7714
|
-
Mobile Network Code: '160'
|
|
7715
|
-
lookupMultipleNumbersPartialCompleteExample:
|
|
7716
|
-
summary: Example Multiple Numbers Lookup Partial Complete Response
|
|
8034
|
+
links: []
|
|
8035
|
+
data: {}
|
|
8036
|
+
errors:
|
|
8037
|
+
- type: not-found
|
|
8038
|
+
description: >-
|
|
8039
|
+
RequestId not found. Ensure that the requestId used in the URL
|
|
8040
|
+
path is valid and maps to a previous request that was submitted.
|
|
8041
|
+
tooManyRequestsExample:
|
|
8042
|
+
summary: Too Many Requests Error
|
|
7717
8043
|
value:
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
Line Provider: Verizon Wireless
|
|
7728
|
-
Mobile Country Code: '310'
|
|
7729
|
-
Mobile Network Code: '010'
|
|
7730
|
-
failedTelephoneNumbers:
|
|
7731
|
-
- '+191955512345'
|
|
7732
|
-
lookupSingleNumberCompleteNoInfoExample:
|
|
7733
|
-
summary: Example Single Number Lookup Complete with No Information Response
|
|
8044
|
+
links: []
|
|
8045
|
+
data: {}
|
|
8046
|
+
errors:
|
|
8047
|
+
- type: rate-limiting
|
|
8048
|
+
description: >-
|
|
8049
|
+
Rate limit exceeded. Wait for the time specified in the
|
|
8050
|
+
Retry-After header before sending another request.
|
|
8051
|
+
internalServerErrorExample:
|
|
8052
|
+
summary: Internal Server Error
|
|
7734
8053
|
value:
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
8054
|
+
links: []
|
|
8055
|
+
data: {}
|
|
8056
|
+
errors:
|
|
8057
|
+
- code: '500'
|
|
8058
|
+
type: unexpected-error
|
|
8059
|
+
description: >-
|
|
8060
|
+
Unexpected error. Please contact Bandwidth Support if your
|
|
8061
|
+
requests are receiving this status code for an extended period of
|
|
8062
|
+
time.
|
|
7743
8063
|
requestBodies:
|
|
7744
8064
|
createMessageRequest:
|
|
7745
8065
|
content:
|
|
@@ -8039,18 +8359,28 @@ components:
|
|
|
8039
8359
|
application/json:
|
|
8040
8360
|
schema:
|
|
8041
8361
|
$ref: '#/components/schemas/verifyCodeRequest'
|
|
8042
|
-
|
|
8043
|
-
description:
|
|
8362
|
+
createSyncLookupRequest:
|
|
8363
|
+
description: Synchronous phone number lookup request.
|
|
8044
8364
|
required: true
|
|
8045
8365
|
content:
|
|
8046
8366
|
application/json:
|
|
8047
8367
|
schema:
|
|
8048
|
-
$ref: '#/components/schemas/
|
|
8368
|
+
$ref: '#/components/schemas/syncLookupRequest'
|
|
8049
8369
|
examples:
|
|
8050
8370
|
singleNumberRequestExample:
|
|
8051
8371
|
$ref: '#/components/examples/singleNumberRequestExample'
|
|
8052
8372
|
multipleNumberRequestExample:
|
|
8053
8373
|
$ref: '#/components/examples/multipleNumberRequestExample'
|
|
8374
|
+
createAsyncBulkLookupRequest:
|
|
8375
|
+
description: Asynchronous bulk phone number lookup request.
|
|
8376
|
+
required: true
|
|
8377
|
+
content:
|
|
8378
|
+
application/json:
|
|
8379
|
+
schema:
|
|
8380
|
+
$ref: '#/components/schemas/asyncLookupRequest'
|
|
8381
|
+
examples:
|
|
8382
|
+
multipleNumberRequestExample:
|
|
8383
|
+
$ref: '#/components/examples/multipleNumberRequestExample'
|
|
8054
8384
|
requestTollFreeVerificationRequest:
|
|
8055
8385
|
description: Request for verification of a toll-free phone number.
|
|
8056
8386
|
required: true
|