# ps.module.PhoneNumberApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionCompanyCompanyIdPhonenumberIdDelete**](PhoneNumberApi.md#apiVersionCompanyCompanyIdPhonenumberIdDelete) | **DELETE** /api/{version}/company/{companyId}/phonenumber/{id} | [Company] Delete Phone Number of respective company
[**apiVersionCompanyCompanyIdPhonenumberIdPut**](PhoneNumberApi.md#apiVersionCompanyCompanyIdPhonenumberIdPut) | **PUT** /api/{version}/company/{companyId}/phonenumber/{id} | [Company] Update Phone Number of respective company
[**apiVersionCompanyCompanyIdPhonenumberPost**](PhoneNumberApi.md#apiVersionCompanyCompanyIdPhonenumberPost) | **POST** /api/{version}/company/{companyId}/phonenumber | [Company] Add Phone Number to respective company
[**apiVersionCsrPhonenumberGet**](PhoneNumberApi.md#apiVersionCsrPhonenumberGet) | **GET** /api/{version}/csr/phonenumber | [CSR] List all Phone Number sort by tenant id, then number
[**apiVersionCsrTenantTenantIdPhonenumberGet**](PhoneNumberApi.md#apiVersionCsrTenantTenantIdPhonenumberGet) | **GET** /api/{version}/csr/tenant/{tenantId}/phonenumber | [CSR] List all Phone Number by Tenant
[**apiVersionCsrTenantTenantIdPhonenumberIdOwnerOwnerIdPut**](PhoneNumberApi.md#apiVersionCsrTenantTenantIdPhonenumberIdOwnerOwnerIdPut) | **PUT** /api/{version}/csr/tenant/{tenantId}/phonenumber/{id}/owner/{ownerId} | Assign Phone Number to company or teammate
[**apiVersionPhonenumberIdDldaDldaIdGet**](PhoneNumberApi.md#apiVersionPhonenumberIdDldaDldaIdGet) | **GET** /api/{version}/phonenumber/{id}/dlda/{dldaId} | Get directory listing and directory assistance for phone number
[**apiVersionPhonenumberIdDldaGet**](PhoneNumberApi.md#apiVersionPhonenumberIdDldaGet) | **GET** /api/{version}/phonenumber/{id}/dlda | List directory listing and directory assistance for phone number
[**apiVersionPhonenumberIdDldaPost**](PhoneNumberApi.md#apiVersionPhonenumberIdDldaPost) | **POST** /api/{version}/phonenumber/{id}/dlda | Create directory listing and directory assistance for phone number
[**apiVersionPhonenumberIdLidbGet**](PhoneNumberApi.md#apiVersionPhonenumberIdLidbGet) | **GET** /api/{version}/phonenumber/{id}/lidb | List outbound calling name for phone number
[**apiVersionPhonenumberIdLidbLidbIdGet**](PhoneNumberApi.md#apiVersionPhonenumberIdLidbLidbIdGet) | **GET** /api/{version}/phonenumber/{id}/lidb/{lidbId} | Get outbound calling name for phone number
[**apiVersionPhonenumberIdLidbPost**](PhoneNumberApi.md#apiVersionPhonenumberIdLidbPost) | **POST** /api/{version}/phonenumber/{id}/lidb | Create outbound calling name for phone number
[**apiVersionTeamTeamIdPhonenumberGet**](PhoneNumberApi.md#apiVersionTeamTeamIdPhonenumberGet) | **GET** /api/{version}/team/{teamId}/phonenumber | List team available SMS Phone Number
[**apiVersionTeammateTeammateIdPhonenumberGet**](PhoneNumberApi.md#apiVersionTeammateTeammateIdPhonenumberGet) | **GET** /api/{version}/teammate/{teammateId}/phonenumber | List teammate available SMS Phone Number
[**apiVersionTeammateTeammateIdPhonenumberIdDelete**](PhoneNumberApi.md#apiVersionTeammateTeammateIdPhonenumberIdDelete) | **DELETE** /api/{version}/teammate/{teammateId}/phonenumber/{id} | [Teammate] Delete Phone Number of respective teammate
[**apiVersionTeammateTeammateIdPhonenumberIdPut**](PhoneNumberApi.md#apiVersionTeammateTeammateIdPhonenumberIdPut) | **PUT** /api/{version}/teammate/{teammateId}/phonenumber/{id} | [Teammate] Update Phone Number of respective teammate
[**apiVersionTeammateTeammateIdPhonenumberPost**](PhoneNumberApi.md#apiVersionTeammateTeammateIdPhonenumberPost) | **POST** /api/{version}/teammate/{teammateId}/phonenumber | [Teammate] Add Phone Number to respective teammate
[**apiVersionTenantTenantIdPhonenumberGet**](PhoneNumberApi.md#apiVersionTenantTenantIdPhonenumberGet) | **GET** /api/{version}/tenant/{tenantId}/phonenumber | List all Phone Number by Tenant
[**apiVersionTenantTenantIdPhonenumberPost**](PhoneNumberApi.md#apiVersionTenantTenantIdPhonenumberPost) | **POST** /api/{version}/tenant/{tenantId}/phonenumber | [CSR] Port in number from external source

<a name="apiVersionCompanyCompanyIdPhonenumberIdDelete"></a>
# **apiVersionCompanyCompanyIdPhonenumberIdDelete**
> apiVersionCompanyCompanyIdPhonenumberIdDelete(companyId, id, version)

[Company] Delete Phone Number of respective company

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let companyId = "companyId_example"; // String | Company Id
let id = "id_example"; // String | Phone Number Id
let version = "version_example"; // String | 

apiInstance.apiVersionCompanyCompanyIdPhonenumberIdDelete(companyId, id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **companyId** | **String**| Company Id | 
 **id** | **String**| Phone Number Id | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionCompanyCompanyIdPhonenumberIdPut"></a>
# **apiVersionCompanyCompanyIdPhonenumberIdPut**
> apiVersionCompanyCompanyIdPhonenumberIdPut(companyIdidversion)

[Company] Update Phone Number of respective company

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let companyId = "companyId_example"; // String | Company Id
let id = "id_example"; // String | Phone Number Id
let version = "version_example"; // String | 

apiInstance.apiVersionCompanyCompanyIdPhonenumberIdPut(companyIdidversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **companyId** | **String**| Company Id | 
 **id** | **String**| Phone Number Id | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCorePhoneNumbersCompaniesUpdateCompanyPhoneNumberQuery**](PhoneSpeakServiceCorePhoneNumbersCompaniesUpdateCompanyPhoneNumberQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCompanyCompanyIdPhonenumberPost"></a>
# **apiVersionCompanyCompanyIdPhonenumberPost**
> apiVersionCompanyCompanyIdPhonenumberPost(companyIdversion)

[Company] Add Phone Number to respective company

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let companyId = "companyId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCompanyCompanyIdPhonenumberPost(companyIdversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **companyId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCorePhoneNumbersCompaniesCreateCompanyPhoneNumberQuery**](PhoneSpeakServiceCorePhoneNumbersCompaniesCreateCompanyPhoneNumberQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCsrPhonenumberGet"></a>
# **apiVersionCsrPhonenumberGet**
> apiVersionCsrPhonenumberGet(version, opts)

[CSR] List all Phone Number sort by tenant id, then number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let version = "version_example"; // String | 
let opts = { 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'searchNumber': "searchNumber_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56, // Number | 
  'deactivated': true // Boolean | 
};
apiInstance.apiVersionCsrPhonenumberGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **searchNumber** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 
 **deactivated** | **Boolean**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionCsrTenantTenantIdPhonenumberGet"></a>
# **apiVersionCsrTenantTenantIdPhonenumberGet**
> apiVersionCsrTenantTenantIdPhonenumberGet(tenantId, version, opts)

[CSR] List all Phone Number by Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let tenantId = "tenantId_example"; // String | 
let version = "version_example"; // String | 
let opts = { 
  'deactivated': true, // Boolean | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionCsrTenantTenantIdPhonenumberGet(tenantId, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **version** | **String**|  | 
 **deactivated** | **Boolean**|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionCsrTenantTenantIdPhonenumberIdOwnerOwnerIdPut"></a>
# **apiVersionCsrTenantTenantIdPhonenumberIdOwnerOwnerIdPut**
> apiVersionCsrTenantTenantIdPhonenumberIdOwnerOwnerIdPut(tenantId, id, ownerId, version)

Assign Phone Number to company or teammate

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let tenantId = "tenantId_example"; // String | 
let id = "id_example"; // String | 
let ownerId = "ownerId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantTenantIdPhonenumberIdOwnerOwnerIdPut(tenantId, id, ownerId, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **id** | **String**|  | 
 **ownerId** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionPhonenumberIdDldaDldaIdGet"></a>
# **apiVersionPhonenumberIdDldaDldaIdGet**
> apiVersionPhonenumberIdDldaDldaIdGet(id, dldaId, version)

Get directory listing and directory assistance for phone number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let id = "id_example"; // String | Phone Number id
let dldaId = "dldaId_example"; // String | DLDA id
let version = "version_example"; // String | 

apiInstance.apiVersionPhonenumberIdDldaDldaIdGet(id, dldaId, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| Phone Number id | 
 **dldaId** | **String**| DLDA id | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionPhonenumberIdDldaGet"></a>
# **apiVersionPhonenumberIdDldaGet**
> apiVersionPhonenumberIdDldaGet(id, version, opts)

List directory listing and directory assistance for phone number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let id = "id_example"; // String | Phone Number id
let version = "version_example"; // String | 
let opts = { 
  'phoneNumberId': "phoneNumberId_example", // String | 
  'orderStatus': [new ps.module.PhoneSpeakEntitiesEnumsTelcoOrderStatus()], // [PhoneSpeakEntitiesEnumsTelcoOrderStatus] | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'searchNumber': "searchNumber_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56, // Number | 
  'skipPagination': true // Boolean | 
};
apiInstance.apiVersionPhonenumberIdDldaGet(id, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| Phone Number id | 
 **version** | **String**|  | 
 **phoneNumberId** | **String**|  | [optional] 
 **orderStatus** | [**[PhoneSpeakEntitiesEnumsTelcoOrderStatus]**](PhoneSpeakEntitiesEnumsTelcoOrderStatus.md)|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **searchNumber** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 
 **skipPagination** | **Boolean**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionPhonenumberIdDldaPost"></a>
# **apiVersionPhonenumberIdDldaPost**
> apiVersionPhonenumberIdDldaPost(idversion)

Create directory listing and directory assistance for phone number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let id = "id_example"; // String | Phone Number id
let version = "version_example"; // String | 

apiInstance.apiVersionPhonenumberIdDldaPost(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| Phone Number id | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreDLDAsCreateDLDAQuery**](PhoneSpeakServiceCoreDLDAsCreateDLDAQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionPhonenumberIdLidbGet"></a>
# **apiVersionPhonenumberIdLidbGet**
> apiVersionPhonenumberIdLidbGet(id, version, opts)

List outbound calling name for phone number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let id = "id_example"; // String | Phone Number id
let version = "version_example"; // String | 
let opts = { 
  'id2': "id_example", // String | 
  'phoneNumberId': "phoneNumberId_example", // String | 
  'orderStatus': [new ps.module.PhoneSpeakEntitiesEnumsTelcoOrderStatus()], // [PhoneSpeakEntitiesEnumsTelcoOrderStatus] | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56, // Number | 
  'skipPagination': true // Boolean | 
};
apiInstance.apiVersionPhonenumberIdLidbGet(id, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| Phone Number id | 
 **version** | **String**|  | 
 **id2** | **String**|  | [optional] 
 **phoneNumberId** | **String**|  | [optional] 
 **orderStatus** | [**[PhoneSpeakEntitiesEnumsTelcoOrderStatus]**](PhoneSpeakEntitiesEnumsTelcoOrderStatus.md)|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 
 **skipPagination** | **Boolean**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionPhonenumberIdLidbLidbIdGet"></a>
# **apiVersionPhonenumberIdLidbLidbIdGet**
> apiVersionPhonenumberIdLidbLidbIdGet(id, lidbId, version)

Get outbound calling name for phone number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let id = "id_example"; // String | Phone Number id
let lidbId = "lidbId_example"; // String | DLDA id
let version = "version_example"; // String | 

apiInstance.apiVersionPhonenumberIdLidbLidbIdGet(id, lidbId, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| Phone Number id | 
 **lidbId** | **String**| DLDA id | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionPhonenumberIdLidbPost"></a>
# **apiVersionPhonenumberIdLidbPost**
> apiVersionPhonenumberIdLidbPost(idversion)

Create outbound calling name for phone number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let id = "id_example"; // String | Phone Number id
let version = "version_example"; // String | 

apiInstance.apiVersionPhonenumberIdLidbPost(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| Phone Number id | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreLIDBsCreateLIDBQuery**](PhoneSpeakServiceCoreLIDBsCreateLIDBQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeamTeamIdPhonenumberGet"></a>
# **apiVersionTeamTeamIdPhonenumberGet**
> apiVersionTeamTeamIdPhonenumberGet(teamId, version)

List team available SMS Phone Number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let teamId = "teamId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeamTeamIdPhonenumberGet(teamId, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teamId** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdPhonenumberGet"></a>
# **apiVersionTeammateTeammateIdPhonenumberGet**
> apiVersionTeammateTeammateIdPhonenumberGet(teammateId, version)

List teammate available SMS Phone Number

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let teammateId = "teammateId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdPhonenumberGet(teammateId, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdPhonenumberIdDelete"></a>
# **apiVersionTeammateTeammateIdPhonenumberIdDelete**
> apiVersionTeammateTeammateIdPhonenumberIdDelete(teammateId, id, version)

[Teammate] Delete Phone Number of respective teammate

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let teammateId = "teammateId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdPhonenumberIdDelete(teammateId, id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdPhonenumberIdPut"></a>
# **apiVersionTeammateTeammateIdPhonenumberIdPut**
> apiVersionTeammateTeammateIdPhonenumberIdPut(teammateIdidversion)

[Teammate] Update Phone Number of respective teammate

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let teammateId = "teammateId_example"; // String | Teammate Id
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdPhonenumberIdPut(teammateIdidversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**| Teammate Id | 
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCorePhoneNumbersUpdateTeammatePhoneNumberQuery**](PhoneSpeakServiceCorePhoneNumbersUpdateTeammatePhoneNumberQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdPhonenumberPost"></a>
# **apiVersionTeammateTeammateIdPhonenumberPost**
> apiVersionTeammateTeammateIdPhonenumberPost(teammateIdversion)

[Teammate] Add Phone Number to respective teammate

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let teammateId = "teammateId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdPhonenumberPost(teammateIdversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCorePhoneNumbersCreateTeammatePhoneNumberQuery**](PhoneSpeakServiceCorePhoneNumbersCreateTeammatePhoneNumberQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTenantTenantIdPhonenumberGet"></a>
# **apiVersionTenantTenantIdPhonenumberGet**
> apiVersionTenantTenantIdPhonenumberGet(tenantId, version, opts)

List all Phone Number by Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let tenantId = "tenantId_example"; // String | 
let version = "version_example"; // String | 
let opts = { 
  'deactivated': true, // Boolean | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionTenantTenantIdPhonenumberGet(tenantId, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **version** | **String**|  | 
 **deactivated** | **Boolean**|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTenantTenantIdPhonenumberPost"></a>
# **apiVersionTenantTenantIdPhonenumberPost**
> apiVersionTenantTenantIdPhonenumberPost(tenantIdversion)

[CSR] Port in number from external source

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.PhoneNumberApi();
let tenantId = "tenantId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTenantTenantIdPhonenumberPost(tenantIdversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCorePhoneNumbersTenantsTenantCreatePhoneNumberQuery**](PhoneSpeakServiceCorePhoneNumbersTenantsTenantCreatePhoneNumberQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

