All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| createAsyncBulkLookup | POST /accounts/{accountId}/phoneNumberLookup/bulk | Create Asynchronous Bulk Number Lookup |
| createSyncLookup | POST /accounts/{accountId}/phoneNumberLookup | Create Synchronous Number Lookup |
| getAsyncBulkLookup | GET /accounts/{accountId}/phoneNumberLookup/bulk/{requestId} | Get Asynchronous Bulk Number Lookup |
CreateAsyncBulkLookupResponse createAsyncBulkLookup(asyncLookupRequest)
Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the Get Asynchronous Bulk Number Lookup endpoint to check the status of the request and view the results.
import {
PhoneNumberLookupApi,
Configuration,
AsyncLookupRequest
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new PhoneNumberLookupApi(configuration);
let accountId: string; // (default to undefined)
let asyncLookupRequest: AsyncLookupRequest; //Asynchronous bulk phone number lookup request.
const { status, data } = await apiInstance.createAsyncBulkLookup(
accountId,
asyncLookupRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| asyncLookupRequest | AsyncLookupRequest | Asynchronous bulk phone number lookup request. | |
| accountId | [string] | defaults to undefined |
CreateAsyncBulkLookupResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 202 | Accepted | - |
| 0 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSyncLookupResponse createSyncLookup(syncLookupRequest)
Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
import {
PhoneNumberLookupApi,
Configuration,
SyncLookupRequest
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new PhoneNumberLookupApi(configuration);
let accountId: string; // (default to undefined)
let syncLookupRequest: SyncLookupRequest; //Synchronous phone number lookup request.
const { status, data } = await apiInstance.createSyncLookup(
accountId,
syncLookupRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| syncLookupRequest | SyncLookupRequest | Synchronous phone number lookup request. | |
| accountId | [string] | defaults to undefined |
CreateSyncLookupResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 0 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAsyncBulkLookupResponse getAsyncBulkLookup()
Get an existing Asynchronous Bulk Number Lookup. Use this endpoint to check the status of the request and view the results.
import {
PhoneNumberLookupApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new PhoneNumberLookupApi(configuration);
let accountId: string; // (default to undefined)
let requestId: string; // (default to undefined)
const { status, data } = await apiInstance.getAsyncBulkLookup(
accountId,
requestId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | defaults to undefined | |
| requestId | [string] | defaults to undefined |
GetAsyncBulkLookupResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 0 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]