Interface IPhoneControllerApiAsync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IPhoneControllerApiAsync : IApiAccessor
Methods
View SourceAcquirePhonePoolLeaseAsync(Guid, AcquirePhonePoolLeaseOptions, int, CancellationToken)
Acquire phone pool lease
Declaration
Task<PhonePoolLeaseDto> AcquirePhonePoolLeaseAsync(Guid poolId, AcquirePhonePoolLeaseOptions acquirePhonePoolLeaseOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| AcquirePhonePoolLeaseOptions | acquirePhonePoolLeaseOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolLeaseDto> | Task of PhonePoolLeaseDto |
Remarks
Acquire an available phone number from the pool and mark it leased
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
AcquirePhonePoolLeaseWithHttpInfoAsync(Guid, AcquirePhonePoolLeaseOptions, int, CancellationToken)
Acquire phone pool lease
Declaration
Task<ApiResponse<PhonePoolLeaseDto>> AcquirePhonePoolLeaseWithHttpInfoAsync(Guid poolId, AcquirePhonePoolLeaseOptions acquirePhonePoolLeaseOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| AcquirePhonePoolLeaseOptions | acquirePhonePoolLeaseOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolLeaseDto>> | Task of ApiResponse (PhonePoolLeaseDto) |
Remarks
Acquire an available phone number from the pool and mark it leased
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
AddAllPhoneNumbersToPhonePoolAsync(Guid, int, CancellationToken)
Add all phone numbers to phone pool
Declaration
Task<PhonePoolDetailDto> AddAllPhoneNumbersToPhonePoolAsync(Guid poolId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Add all active owned phone numbers to a pool
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
AddAllPhoneNumbersToPhonePoolWithHttpInfoAsync(Guid, int, CancellationToken)
Add all phone numbers to phone pool
Declaration
Task<ApiResponse<PhonePoolDetailDto>> AddAllPhoneNumbersToPhonePoolWithHttpInfoAsync(Guid poolId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Add all active owned phone numbers to a pool
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
AddPhoneNumbersToPhonePoolAsync(Guid, AddPhonePoolNumbersOptions, int, CancellationToken)
Add phone numbers to phone pool
Declaration
Task<PhonePoolDetailDto> AddPhoneNumbersToPhonePoolAsync(Guid poolId, AddPhonePoolNumbersOptions addPhonePoolNumbersOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| AddPhonePoolNumbersOptions | addPhonePoolNumbersOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Add one or more owned phone numbers to a pool
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
AddPhoneNumbersToPhonePoolWithHttpInfoAsync(Guid, AddPhonePoolNumbersOptions, int, CancellationToken)
Add phone numbers to phone pool
Declaration
Task<ApiResponse<PhonePoolDetailDto>> AddPhoneNumbersToPhonePoolWithHttpInfoAsync(Guid poolId, AddPhonePoolNumbersOptions addPhonePoolNumbersOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| AddPhonePoolNumbersOptions | addPhonePoolNumbersOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Add one or more owned phone numbers to a pool
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreateEmergencyAddressAsync(CreateEmergencyAddressOptions, int, CancellationToken)
Create an emergency address
Declaration
Task<EmergencyAddress> CreateEmergencyAddressAsync(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateEmergencyAddressOptions | createEmergencyAddressOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<EmergencyAddress> | Task of EmergencyAddress |
Remarks
Add an emergency address to a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreateEmergencyAddressWithHttpInfoAsync(CreateEmergencyAddressOptions, int, CancellationToken)
Create an emergency address
Declaration
Task<ApiResponse<EmergencyAddress>> CreateEmergencyAddressWithHttpInfoAsync(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateEmergencyAddressOptions | createEmergencyAddressOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<EmergencyAddress>> | Task of ApiResponse (EmergencyAddress) |
Remarks
Add an emergency address to a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreatePhoneNumberAsync(CreatePhoneNumberOptions, int, CancellationToken)
Add phone number to your account. Only works if you have already added a plan and an initial phone number in your account and acknowledged the pricing and terms of service by enabling API phone creation.
Declaration
Task<PhoneNumberDto> CreatePhoneNumberAsync(CreatePhoneNumberOptions createPhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePhoneNumberOptions | createPhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Create new phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreatePhoneNumberWithHttpInfoAsync(CreatePhoneNumberOptions, int, CancellationToken)
Add phone number to your account. Only works if you have already added a plan and an initial phone number in your account and acknowledged the pricing and terms of service by enabling API phone creation.
Declaration
Task<ApiResponse<PhoneNumberDto>> CreatePhoneNumberWithHttpInfoAsync(CreatePhoneNumberOptions createPhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePhoneNumberOptions | createPhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Create new phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreatePhonePoolAsync(CreatePhonePoolOptions, int, CancellationToken)
Create phone pool
Declaration
Task<PhonePoolDetailDto> CreatePhonePoolAsync(CreatePhonePoolOptions createPhonePoolOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePhonePoolOptions | createPhonePoolOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Create a reusable pool of phone numbers for coordinated leasing
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreatePhonePoolWithHttpInfoAsync(CreatePhonePoolOptions, int, CancellationToken)
Create phone pool
Declaration
Task<ApiResponse<PhonePoolDetailDto>> CreatePhonePoolWithHttpInfoAsync(CreatePhonePoolOptions createPhonePoolOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePhonePoolOptions | createPhonePoolOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Create a reusable pool of phone numbers for coordinated leasing
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreatePhoneProvisioningJobAsync(CreatePhoneProvisioningJobOptions, int, CancellationToken)
Create a phone provisioning job
Declaration
Task<PhoneProvisioningJobDto> CreatePhoneProvisioningJobAsync(CreatePhoneProvisioningJobOptions createPhoneProvisioningJobOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePhoneProvisioningJobOptions | createPhoneProvisioningJobOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneProvisioningJobDto> | Task of PhoneProvisioningJobDto |
Remarks
Create an advanced phone provisioning job from shortlisted numbers
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreatePhoneProvisioningJobWithHttpInfoAsync(CreatePhoneProvisioningJobOptions, int, CancellationToken)
Create a phone provisioning job
Declaration
Task<ApiResponse<PhoneProvisioningJobDto>> CreatePhoneProvisioningJobWithHttpInfoAsync(CreatePhoneProvisioningJobOptions createPhoneProvisioningJobOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePhoneProvisioningJobOptions | createPhoneProvisioningJobOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneProvisioningJobDto>> | Task of ApiResponse (PhoneProvisioningJobDto) |
Remarks
Create an advanced phone provisioning job from shortlisted numbers
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteAllPhoneNumberAsync(int, CancellationToken)
Delete all phone numbers
Declaration
Task DeleteAllPhoneNumberAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Remove all phone number from account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteAllPhoneNumberWithHttpInfoAsync(int, CancellationToken)
Delete all phone numbers
Declaration
Task<ApiResponse<object>> DeleteAllPhoneNumberWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Remove all phone number from account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteEmergencyAddressAsync(Guid, int, CancellationToken)
Delete an emergency address
Declaration
Task<EmptyResponseDto> DeleteEmergencyAddressAsync(Guid addressId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | addressId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<EmptyResponseDto> | Task of EmptyResponseDto |
Remarks
Delete an emergency address
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteEmergencyAddressWithHttpInfoAsync(Guid, int, CancellationToken)
Delete an emergency address
Declaration
Task<ApiResponse<EmptyResponseDto>> DeleteEmergencyAddressWithHttpInfoAsync(Guid addressId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | addressId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<EmptyResponseDto>> | Task of ApiResponse (EmptyResponseDto) |
Remarks
Delete an emergency address
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeletePhoneMessageThreadItemsAsync(Guid, string, int, CancellationToken)
Delete messages in a phone thread
Declaration
Task<EmptyResponseDto> DeletePhoneMessageThreadItemsAsync(Guid phoneNumberId, string otherNumber, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| string | otherNumber | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<EmptyResponseDto> | Task of EmptyResponseDto |
Remarks
Delete all messages in an SMS thread
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeletePhoneMessageThreadItemsWithHttpInfoAsync(Guid, string, int, CancellationToken)
Delete messages in a phone thread
Declaration
Task<ApiResponse<EmptyResponseDto>> DeletePhoneMessageThreadItemsWithHttpInfoAsync(Guid phoneNumberId, string otherNumber, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| string | otherNumber | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<EmptyResponseDto>> | Task of ApiResponse (EmptyResponseDto) |
Remarks
Delete all messages in an SMS thread
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeletePhoneNumberAsync(Guid, int, CancellationToken)
Delete a phone number
Declaration
Task DeletePhoneNumberAsync(Guid phoneNumberId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Remove phone number from account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeletePhoneNumberWithHttpInfoAsync(Guid, int, CancellationToken)
Delete a phone number
Declaration
Task<ApiResponse<object>> DeletePhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Remove phone number from account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeletePhonePoolAsync(Guid, int, CancellationToken)
Delete phone pool
Declaration
Task DeletePhonePoolAsync(Guid poolId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Delete a phone pool and release any active leases from that pool
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeletePhonePoolWithHttpInfoAsync(Guid, int, CancellationToken)
Delete phone pool
Declaration
Task<ApiResponse<object>> DeletePhonePoolWithHttpInfoAsync(Guid poolId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete a phone pool and release any active leases from that pool
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAllPhoneMessageThreadsAsync(int?, int?, int, CancellationToken)
Get the latest messages for all phones
Declaration
Task<PagePhoneMessageThreadProjection> GetAllPhoneMessageThreadsAsync(int? page = null, int? size = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PagePhoneMessageThreadProjection> | Task of PagePhoneMessageThreadProjection |
Remarks
List all message threads for all phones
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAllPhoneMessageThreadsWithHttpInfoAsync(int?, int?, int, CancellationToken)
Get the latest messages for all phones
Declaration
Task<ApiResponse<PagePhoneMessageThreadProjection>> GetAllPhoneMessageThreadsWithHttpInfoAsync(int? page = null, int? size = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PagePhoneMessageThreadProjection>> | Task of ApiResponse (PagePhoneMessageThreadProjection) |
Remarks
List all message threads for all phones
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAllPhoneNumberReleasesAsync(int?, int?, string, int, CancellationToken)
Get all phone number releases
Declaration
Task<PagePhoneNumberReleaseProjection> GetAllPhoneNumberReleasesAsync(int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PagePhoneNumberReleaseProjection> | Task of PagePhoneNumberReleaseProjection |
Remarks
List released or deleted phone numbers
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAllPhoneNumberReleasesWithHttpInfoAsync(int?, int?, string, int, CancellationToken)
Get all phone number releases
Declaration
Task<ApiResponse<PagePhoneNumberReleaseProjection>> GetAllPhoneNumberReleasesWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PagePhoneNumberReleaseProjection>> | Task of ApiResponse (PagePhoneNumberReleaseProjection) |
Remarks
List released or deleted phone numbers
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetConsentStatusAsync(int, CancellationToken)
Get consent status
Declaration
Task<ConsentStatusDto> GetConsentStatusAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ConsentStatusDto> | Task of ConsentStatusDto |
Remarks
Get the status of phone usage consent
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetConsentStatusWithHttpInfoAsync(int, CancellationToken)
Get consent status
Declaration
Task<ApiResponse<ConsentStatusDto>> GetConsentStatusWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<ConsentStatusDto>> | Task of ApiResponse (ConsentStatusDto) |
Remarks
Get the status of phone usage consent
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetEmergencyAddressAsync(Guid, int, CancellationToken)
Get an emergency address
Declaration
Task<EmergencyAddress> GetEmergencyAddressAsync(Guid addressId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | addressId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<EmergencyAddress> | Task of EmergencyAddress |
Remarks
Fetch an emergency address by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetEmergencyAddressWithHttpInfoAsync(Guid, int, CancellationToken)
Get an emergency address
Declaration
Task<ApiResponse<EmergencyAddress>> GetEmergencyAddressWithHttpInfoAsync(Guid addressId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | addressId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<EmergencyAddress>> | Task of ApiResponse (EmergencyAddress) |
Remarks
Fetch an emergency address by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetEmergencyAddressesAsync(int, CancellationToken)
Get emergency addresses
Declaration
Task<List<EmergencyAddressDto>> GetEmergencyAddressesAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<List<EmergencyAddressDto>> | Task of List<EmergencyAddressDto> |
Remarks
List emergency addresses
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetEmergencyAddressesWithHttpInfoAsync(int, CancellationToken)
Get emergency addresses
Declaration
Task<ApiResponse<List<EmergencyAddressDto>>> GetEmergencyAddressesWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<List<EmergencyAddressDto>>> | Task of ApiResponse (List<EmergencyAddressDto>) |
Remarks
List emergency addresses
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetOrCreatePhonePoolAsync(GetOrCreatePhonePoolOptions, int, CancellationToken)
Get or create phone pool
Declaration
Task<PhonePoolDetailDto> GetOrCreatePhonePoolAsync(GetOrCreatePhonePoolOptions getOrCreatePhonePoolOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOrCreatePhonePoolOptions | getOrCreatePhonePoolOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Get a phone pool by name or create it if it does not exist
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetOrCreatePhonePoolWithHttpInfoAsync(GetOrCreatePhonePoolOptions, int, CancellationToken)
Get or create phone pool
Declaration
Task<ApiResponse<PhonePoolDetailDto>> GetOrCreatePhonePoolWithHttpInfoAsync(GetOrCreatePhonePoolOptions getOrCreatePhonePoolOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOrCreatePhonePoolOptions | getOrCreatePhonePoolOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Get a phone pool by name or create it if it does not exist
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneMessageThreadItemsAsync(Guid, string, int?, int?, int, CancellationToken)
Get messages in a phone thread
Declaration
Task<PagePhoneMessageThreadItemProjection> GetPhoneMessageThreadItemsAsync(Guid phoneNumberId, string otherNumber, int? page = null, int? size = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| string | otherNumber | |
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PagePhoneMessageThreadItemProjection> | Task of PagePhoneMessageThreadItemProjection |
Remarks
List message thread messages for a phone message thread
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneMessageThreadItemsWithHttpInfoAsync(Guid, string, int?, int?, int, CancellationToken)
Get messages in a phone thread
Declaration
Task<ApiResponse<PagePhoneMessageThreadItemProjection>> GetPhoneMessageThreadItemsWithHttpInfoAsync(Guid phoneNumberId, string otherNumber, int? page = null, int? size = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| string | otherNumber | |
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PagePhoneMessageThreadItemProjection>> | Task of ApiResponse (PagePhoneMessageThreadItemProjection) |
Remarks
List message thread messages for a phone message thread
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneMessageThreadsAsync(Guid, int?, int?, int, CancellationToken)
Get the latest message preview for a thread
Declaration
Task<PagePhoneMessageThreadProjection> GetPhoneMessageThreadsAsync(Guid phoneNumberId, int? page = null, int? size = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PagePhoneMessageThreadProjection> | Task of PagePhoneMessageThreadProjection |
Remarks
List message threads for a phone
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneMessageThreadsWithHttpInfoAsync(Guid, int?, int?, int, CancellationToken)
Get the latest message preview for a thread
Declaration
Task<ApiResponse<PagePhoneMessageThreadProjection>> GetPhoneMessageThreadsWithHttpInfoAsync(Guid phoneNumberId, int? page = null, int? size = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int? | page | (optional, default to 0) |
| int? | size | (optional, default to 20) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PagePhoneMessageThreadProjection>> | Task of ApiResponse (PagePhoneMessageThreadProjection) |
Remarks
List message threads for a phone
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberAsync(Guid, int, CancellationToken)
Get a phone number by ID
Declaration
Task<PhoneNumberDto> GetPhoneNumberAsync(Guid phoneNumberId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Get a phone number by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberByNameAsync(string, int, CancellationToken)
Get a phone number by name
Declaration
Task<PhoneNumberDto> GetPhoneNumberByNameAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Get a phone number by name
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberByNameWithHttpInfoAsync(string, int, CancellationToken)
Get a phone number by name
Declaration
Task<ApiResponse<PhoneNumberDto>> GetPhoneNumberByNameWithHttpInfoAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Get a phone number by name
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberByPhoneNumberAsync(string, int, CancellationToken)
Get a phone number by phone number
Declaration
Task<PhoneNumberDto> GetPhoneNumberByPhoneNumberAsync(string phoneNumber, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneNumber | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Get a phone number by phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberByPhoneNumberWithHttpInfoAsync(string, int, CancellationToken)
Get a phone number by phone number
Declaration
Task<ApiResponse<PhoneNumberDto>> GetPhoneNumberByPhoneNumberWithHttpInfoAsync(string phoneNumber, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneNumber | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Get a phone number by phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberLineTypeIntelligenceAsync(ValidatePhoneNumberOptions, int, CancellationToken)
Get line type intelligence for a phone number
Declaration
Task<PhoneNumberLineTypeLookupDto> GetPhoneNumberLineTypeIntelligenceAsync(ValidatePhoneNumberOptions validatePhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidatePhoneNumberOptions | validatePhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberLineTypeLookupDto> | Task of PhoneNumberLineTypeLookupDto |
Remarks
Lookup line type intelligence for a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberLineTypeIntelligenceWithHttpInfoAsync(ValidatePhoneNumberOptions, int, CancellationToken)
Get line type intelligence for a phone number
Declaration
Task<ApiResponse<PhoneNumberLineTypeLookupDto>> GetPhoneNumberLineTypeIntelligenceWithHttpInfoAsync(ValidatePhoneNumberOptions validatePhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidatePhoneNumberOptions | validatePhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberLineTypeLookupDto>> | Task of ApiResponse (PhoneNumberLineTypeLookupDto) |
Remarks
Lookup line type intelligence for a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberReleaseAsync(Guid, int, CancellationToken)
Get phone number release
Declaration
Task<PhoneNumberReleaseProjection> GetPhoneNumberReleaseAsync(Guid releaseId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | releaseId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberReleaseProjection> | Task of PhoneNumberReleaseProjection |
Remarks
Get a released or deleted phone numbers
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberReleaseWithHttpInfoAsync(Guid, int, CancellationToken)
Get phone number release
Declaration
Task<ApiResponse<PhoneNumberReleaseProjection>> GetPhoneNumberReleaseWithHttpInfoAsync(Guid releaseId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | releaseId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberReleaseProjection>> | Task of ApiResponse (PhoneNumberReleaseProjection) |
Remarks
Get a released or deleted phone numbers
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumberWithHttpInfoAsync(Guid, int, CancellationToken)
Get a phone number by ID
Declaration
Task<ApiResponse<PhoneNumberDto>> GetPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Get a phone number by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumbersAsync(string, string, string, string, string, string, int?, int?, string, DateTime?, DateTime?, string, List<Guid>, bool?, int, CancellationToken)
Get phone numbers
Declaration
Task<PagePhoneNumberProjection> GetPhoneNumbersAsync(string phoneCountry = null, string lineType = null, string carrierName = null, string mobileCountryCode = null, string mobileNetworkCode = null, string providerLabel = null, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string search = null, List<Guid> include = null, bool? favourite = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneCountry | Optional phone country (optional) |
| string | lineType | Optional line type filter (optional) |
| string | carrierName | Optional carrier name filter (optional) |
| string | mobileCountryCode | Optional mobile country code filter (optional) |
| string | mobileNetworkCode | Optional mobile network code filter (optional) |
| string | providerLabel | Optional provider label filter such as T1 or T2 (optional) |
| int? | page | Optional page index for list pagination (optional, default to 0) |
| int? | size | Optional page size for list pagination (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| DateTime? | since | Filter by created at after the given timestamp (optional) |
| DateTime? | before | Filter by created at before the given timestamp (optional) |
| string | search | Optional search filter (optional) |
| List<Guid> | include | Optional phoneIds to include in result (optional) |
| bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PagePhoneNumberProjection> | Task of PagePhoneNumberProjection |
Remarks
List phone numbers for account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneNumbersWithHttpInfoAsync(string, string, string, string, string, string, int?, int?, string, DateTime?, DateTime?, string, List<Guid>, bool?, int, CancellationToken)
Get phone numbers
Declaration
Task<ApiResponse<PagePhoneNumberProjection>> GetPhoneNumbersWithHttpInfoAsync(string phoneCountry = null, string lineType = null, string carrierName = null, string mobileCountryCode = null, string mobileNetworkCode = null, string providerLabel = null, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string search = null, List<Guid> include = null, bool? favourite = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneCountry | Optional phone country (optional) |
| string | lineType | Optional line type filter (optional) |
| string | carrierName | Optional carrier name filter (optional) |
| string | mobileCountryCode | Optional mobile country code filter (optional) |
| string | mobileNetworkCode | Optional mobile network code filter (optional) |
| string | providerLabel | Optional provider label filter such as T1 or T2 (optional) |
| int? | page | Optional page index for list pagination (optional, default to 0) |
| int? | size | Optional page size for list pagination (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| DateTime? | since | Filter by created at after the given timestamp (optional) |
| DateTime? | before | Filter by created at before the given timestamp (optional) |
| string | search | Optional search filter (optional) |
| List<Guid> | include | Optional phoneIds to include in result (optional) |
| bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PagePhoneNumberProjection>> | Task of ApiResponse (PagePhoneNumberProjection) |
Remarks
List phone numbers for account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePlansAsync(int, CancellationToken)
Get phone plans
Declaration
Task<List<PhonePlanDto>> GetPhonePlansAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<List<PhonePlanDto>> | Task of List<PhonePlanDto> |
Remarks
Get phone number plans
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePlansAvailabilityAsync(int, CancellationToken)
Get phone plans availability
Declaration
Task<PhonePlanAvailability> GetPhonePlansAvailabilityAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePlanAvailability> | Task of PhonePlanAvailability |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePlansAvailabilityWithHttpInfoAsync(int, CancellationToken)
Get phone plans availability
Declaration
Task<ApiResponse<PhonePlanAvailability>> GetPhonePlansAvailabilityWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePlanAvailability>> | Task of ApiResponse (PhonePlanAvailability) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePlansWithHttpInfoAsync(int, CancellationToken)
Get phone plans
Declaration
Task<ApiResponse<List<PhonePlanDto>>> GetPhonePlansWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<List<PhonePlanDto>>> | Task of ApiResponse (List<PhonePlanDto>) |
Remarks
Get phone number plans
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePoolAsync(Guid, int, CancellationToken)
Get phone pool
Declaration
Task<PhonePoolDetailDto> GetPhonePoolAsync(Guid poolId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Get phone pool details by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePoolByNameAsync(string, int, CancellationToken)
Get phone pool by name
Declaration
Task<PhonePoolDetailDto> GetPhonePoolByNameAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Get phone pool details by name
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePoolByNameWithHttpInfoAsync(string, int, CancellationToken)
Get phone pool by name
Declaration
Task<ApiResponse<PhonePoolDetailDto>> GetPhonePoolByNameWithHttpInfoAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Get phone pool details by name
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePoolWithHttpInfoAsync(Guid, int, CancellationToken)
Get phone pool
Declaration
Task<ApiResponse<PhonePoolDetailDto>> GetPhonePoolWithHttpInfoAsync(Guid poolId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Get phone pool details by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePoolsAsync(int, CancellationToken)
Get phone pools
Declaration
Task<List<PhonePoolDto>> GetPhonePoolsAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<List<PhonePoolDto>> | Task of List<PhonePoolDto> |
Remarks
List phone pools for the authenticated user
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhonePoolsWithHttpInfoAsync(int, CancellationToken)
Get phone pools
Declaration
Task<ApiResponse<List<PhonePoolDto>>> GetPhonePoolsWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<List<PhonePoolDto>>> | Task of ApiResponse (List<PhonePoolDto>) |
Remarks
List phone pools for the authenticated user
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneProvisioningCapabilitiesAsync(string, string, int, CancellationToken)
Get phone provisioning capabilities
Declaration
Task<PhoneProviderCapabilitiesResult> GetPhoneProvisioningCapabilitiesAsync(string phoneCountry, string providerLabel = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneCountry | |
| string | providerLabel | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneProviderCapabilitiesResult> | Task of PhoneProviderCapabilitiesResult |
Remarks
Get supported provider-country variant capabilities for advanced provisioning
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneProvisioningCapabilitiesWithHttpInfoAsync(string, string, int, CancellationToken)
Get phone provisioning capabilities
Declaration
Task<ApiResponse<PhoneProviderCapabilitiesResult>> GetPhoneProvisioningCapabilitiesWithHttpInfoAsync(string phoneCountry, string providerLabel = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneCountry | |
| string | providerLabel | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneProviderCapabilitiesResult>> | Task of ApiResponse (PhoneProviderCapabilitiesResult) |
Remarks
Get supported provider-country variant capabilities for advanced provisioning
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneProvisioningJobAsync(Guid, int, CancellationToken)
Get phone provisioning job
Declaration
Task<PhoneProvisioningJobDto> GetPhoneProvisioningJobAsync(Guid jobId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | jobId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneProvisioningJobDto> | Task of PhoneProvisioningJobDto |
Remarks
Get advanced phone provisioning job status
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneProvisioningJobWithHttpInfoAsync(Guid, int, CancellationToken)
Get phone provisioning job
Declaration
Task<ApiResponse<PhoneProvisioningJobDto>> GetPhoneProvisioningJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | jobId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneProvisioningJobDto>> | Task of ApiResponse (PhoneProvisioningJobDto) |
Remarks
Get advanced phone provisioning job status
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneSmsPrepaidCreditAsync(Guid, int, CancellationToken)
Get SMS prepaid credit
Declaration
Task<PhoneSmsPrepaidCreditDto> GetPhoneSmsPrepaidCreditAsync(Guid creditId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | creditId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneSmsPrepaidCreditDto> | Task of PhoneSmsPrepaidCreditDto |
Remarks
Get a specific SMS prepaid credit balance for the authenticated account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneSmsPrepaidCreditWithHttpInfoAsync(Guid, int, CancellationToken)
Get SMS prepaid credit
Declaration
Task<ApiResponse<PhoneSmsPrepaidCreditDto>> GetPhoneSmsPrepaidCreditWithHttpInfoAsync(Guid creditId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | creditId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneSmsPrepaidCreditDto>> | Task of ApiResponse (PhoneSmsPrepaidCreditDto) |
Remarks
Get a specific SMS prepaid credit balance for the authenticated account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneSmsPrepaidCreditsAsync(int, CancellationToken)
Get SMS prepaid credits
Declaration
Task<PhoneSmsPrepaidCreditsDto> GetPhoneSmsPrepaidCreditsAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneSmsPrepaidCreditsDto> | Task of PhoneSmsPrepaidCreditsDto |
Remarks
List SMS prepaid credits for the authenticated account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneSmsPrepaidCreditsWithHttpInfoAsync(int, CancellationToken)
Get SMS prepaid credits
Declaration
Task<ApiResponse<PhoneSmsPrepaidCreditsDto>> GetPhoneSmsPrepaidCreditsWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneSmsPrepaidCreditsDto>> | Task of ApiResponse (PhoneSmsPrepaidCreditsDto) |
Remarks
List SMS prepaid credits for the authenticated account
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneSummaryAsync(int, CancellationToken)
Get phone summary
Declaration
Task<PhoneSummaryDto> GetPhoneSummaryAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneSummaryDto> | Task of PhoneSummaryDto |
Remarks
Get overview of assigned phones
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetPhoneSummaryWithHttpInfoAsync(int, CancellationToken)
Get phone summary
Declaration
Task<ApiResponse<PhoneSummaryDto>> GetPhoneSummaryWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneSummaryDto>> | Task of ApiResponse (PhoneSummaryDto) |
Remarks
Get overview of assigned phones
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetSentSmsByPhoneNumberAsync(Guid, int?, int?, string, DateTime?, DateTime?, string, int, CancellationToken)
List sent TXT messages for a phone number
Declaration
Task<PageSentSmsProjection> GetSentSmsByPhoneNumberAsync(Guid phoneNumberId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string search = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int? | page | Optional page index in SMS list pagination (optional, default to 0) |
| int? | size | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| DateTime? | since | Optional filter SMSs received after given date time (optional) |
| DateTime? | before | Optional filter SMSs received before given date time (optional) |
| string | search | Optional search filter (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageSentSmsProjection> | Task of PageSentSmsProjection |
Remarks
Get sent SMS messages for a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetSentSmsByPhoneNumberWithHttpInfoAsync(Guid, int?, int?, string, DateTime?, DateTime?, string, int, CancellationToken)
List sent TXT messages for a phone number
Declaration
Task<ApiResponse<PageSentSmsProjection>> GetSentSmsByPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string search = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int? | page | Optional page index in SMS list pagination (optional, default to 0) |
| int? | size | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| DateTime? | since | Optional filter SMSs received after given date time (optional) |
| DateTime? | before | Optional filter SMSs received before given date time (optional) |
| string | search | Optional search filter (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageSentSmsProjection>> | Task of ApiResponse (PageSentSmsProjection) |
Remarks
Get sent SMS messages for a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetSmsByPhoneNumberAsync(Guid, int?, int?, string, bool?, DateTime?, DateTime?, string, bool?, int, CancellationToken)
List SMS messages for a phone number
Declaration
Task<PageSmsProjection> GetSmsByPhoneNumberAsync(Guid phoneNumberId, int? page = null, int? size = null, string sort = null, bool? unreadOnly = null, DateTime? since = null, DateTime? before = null, string search = null, bool? favourite = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int? | page | Optional page index in SMS list pagination (optional, default to 0) |
| int? | size | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| bool? | unreadOnly | Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) |
| DateTime? | since | Optional filter SMSs received after given date time (optional) |
| DateTime? | before | Optional filter SMSs received before given date time (optional) |
| string | search | Optional search filter (optional) |
| bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageSmsProjection> | Task of PageSmsProjection |
Remarks
Get SMS messages for a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetSmsByPhoneNumberWithHttpInfoAsync(Guid, int?, int?, string, bool?, DateTime?, DateTime?, string, bool?, int, CancellationToken)
List SMS messages for a phone number
Declaration
Task<ApiResponse<PageSmsProjection>> GetSmsByPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int? page = null, int? size = null, string sort = null, bool? unreadOnly = null, DateTime? since = null, DateTime? before = null, string search = null, bool? favourite = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| int? | page | Optional page index in SMS list pagination (optional, default to 0) |
| int? | size | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| bool? | unreadOnly | Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) |
| DateTime? | since | Optional filter SMSs received after given date time (optional) |
| DateTime? | before | Optional filter SMSs received before given date time (optional) |
| string | search | Optional search filter (optional) |
| bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageSmsProjection>> | Task of ApiResponse (PageSmsProjection) |
Remarks
Get SMS messages for a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ReassignPhoneNumberReleaseAsync(Guid, int, CancellationToken)
Reassign phone number release
Declaration
Task<PhoneNumberDto> ReassignPhoneNumberReleaseAsync(Guid releaseId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | releaseId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Reassign phone number that was released or deleted
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ReassignPhoneNumberReleaseWithHttpInfoAsync(Guid, int, CancellationToken)
Reassign phone number release
Declaration
Task<ApiResponse<PhoneNumberDto>> ReassignPhoneNumberReleaseWithHttpInfoAsync(Guid releaseId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | releaseId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Reassign phone number that was released or deleted
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ReleasePhonePoolLeaseAsync(Guid, Guid, int, CancellationToken)
Release phone pool lease
Declaration
Task ReleasePhonePoolLeaseAsync(Guid poolId, Guid leaseId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| Guid | leaseId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Release an active phone pool lease
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ReleasePhonePoolLeaseWithHttpInfoAsync(Guid, Guid, int, CancellationToken)
Release phone pool lease
Declaration
Task<ApiResponse<object>> ReleasePhonePoolLeaseWithHttpInfoAsync(Guid poolId, Guid leaseId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| Guid | leaseId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Release an active phone pool lease
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
RemovePhoneNumberFromPhonePoolAsync(Guid, Guid, int, CancellationToken)
Remove phone number from phone pool
Declaration
Task RemovePhoneNumberFromPhonePoolAsync(Guid poolId, Guid phoneNumberId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| Guid | phoneNumberId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Remove a phone number from a pool. If the number is leased from this pool the lease is released.
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
RemovePhoneNumberFromPhonePoolWithHttpInfoAsync(Guid, Guid, int, CancellationToken)
Remove phone number from phone pool
Declaration
Task<ApiResponse<object>> RemovePhoneNumberFromPhonePoolWithHttpInfoAsync(Guid poolId, Guid phoneNumberId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| Guid | phoneNumberId | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Remove a phone number from a pool. If the number is leased from this pool the lease is released.
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SearchAvailablePhoneNumbersAsync(SearchAvailablePhoneNumbersOptions, int, CancellationToken)
Search available phone numbers
Declaration
Task<AvailablePhoneNumbersResult> SearchAvailablePhoneNumbersAsync(SearchAvailablePhoneNumbersOptions searchAvailablePhoneNumbersOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchAvailablePhoneNumbersOptions | searchAvailablePhoneNumbersOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AvailablePhoneNumbersResult> | Task of AvailablePhoneNumbersResult |
Remarks
Search available numbers for advanced provisioning
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SearchAvailablePhoneNumbersWithHttpInfoAsync(SearchAvailablePhoneNumbersOptions, int, CancellationToken)
Search available phone numbers
Declaration
Task<ApiResponse<AvailablePhoneNumbersResult>> SearchAvailablePhoneNumbersWithHttpInfoAsync(SearchAvailablePhoneNumbersOptions searchAvailablePhoneNumbersOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchAvailablePhoneNumbersOptions | searchAvailablePhoneNumbersOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AvailablePhoneNumbersResult>> | Task of ApiResponse (AvailablePhoneNumbersResult) |
Remarks
Search available numbers for advanced provisioning
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SendSmsFromPhoneNumberAsync(Guid, SmsSendOptions, int, CancellationToken)
Send TXT message from a phone number
Declaration
Task<SentSmsDto> SendSmsFromPhoneNumberAsync(Guid phoneNumberId, SmsSendOptions smsSendOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| SmsSendOptions | smsSendOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<SentSmsDto> | Task of SentSmsDto |
Remarks
Send SMS from a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SendSmsFromPhoneNumberWithHttpInfoAsync(Guid, SmsSendOptions, int, CancellationToken)
Send TXT message from a phone number
Declaration
Task<ApiResponse<SentSmsDto>> SendSmsFromPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, SmsSendOptions smsSendOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| SmsSendOptions | smsSendOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<SentSmsDto>> | Task of ApiResponse (SentSmsDto) |
Remarks
Send SMS from a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SetConsentStatusAsync(bool, int, CancellationToken)
Set consent status
Declaration
Task<ConsentStatusDto> SetConsentStatusAsync(bool agree, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | agree | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ConsentStatusDto> | Task of ConsentStatusDto |
Remarks
Give or revoke consent for phone usage
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SetConsentStatusWithHttpInfoAsync(bool, int, CancellationToken)
Set consent status
Declaration
Task<ApiResponse<ConsentStatusDto>> SetConsentStatusWithHttpInfoAsync(bool agree, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | agree | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<ConsentStatusDto>> | Task of ApiResponse (ConsentStatusDto) |
Remarks
Give or revoke consent for phone usage
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SetPhoneFavouritedAsync(Guid, SetPhoneFavouritedOptions, int, CancellationToken)
Set phone favourited state
Declaration
Task<PhoneNumberDto> SetPhoneFavouritedAsync(Guid phoneNumberId, SetPhoneFavouritedOptions setPhoneFavouritedOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | ID of phone to set favourite state |
| SetPhoneFavouritedOptions | setPhoneFavouritedOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Set and return new favorite state for a phone
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SetPhoneFavouritedWithHttpInfoAsync(Guid, SetPhoneFavouritedOptions, int, CancellationToken)
Set phone favourited state
Declaration
Task<ApiResponse<PhoneNumberDto>> SetPhoneFavouritedWithHttpInfoAsync(Guid phoneNumberId, SetPhoneFavouritedOptions setPhoneFavouritedOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | ID of phone to set favourite state |
| SetPhoneFavouritedOptions | setPhoneFavouritedOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Set and return new favorite state for a phone
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
TestPhoneNumberSendSmsAsync(Guid, TestPhoneNumberOptions, string, int, CancellationToken)
Test sending an SMS to a number
Declaration
Task TestPhoneNumberSendSmsAsync(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| TestPhoneNumberOptions | testPhoneNumberOptions | |
| string | xTestId | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Test a phone number by sending an SMS to it. NOTE this is only for internal use to check that a phone number is working. For end-to-end phone testing see https://docs.mailslurp.com/txt-sms/
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
TestPhoneNumberSendSmsWithHttpInfoAsync(Guid, TestPhoneNumberOptions, string, int, CancellationToken)
Test sending an SMS to a number
Declaration
Task<ApiResponse<object>> TestPhoneNumberSendSmsWithHttpInfoAsync(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | |
| TestPhoneNumberOptions | testPhoneNumberOptions | |
| string | xTestId | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Test a phone number by sending an SMS to it. NOTE this is only for internal use to check that a phone number is working. For end-to-end phone testing see https://docs.mailslurp.com/txt-sms/
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
UpdatePhoneNumberAsync(Guid, UpdatePhoneNumberOptions, int, CancellationToken)
Update a phone number
Declaration
Task<PhoneNumberDto> UpdatePhoneNumberAsync(Guid phoneNumberId, UpdatePhoneNumberOptions updatePhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | ID of phone to set favourite state |
| UpdatePhoneNumberOptions | updatePhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberDto> | Task of PhoneNumberDto |
Remarks
Set field for phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
UpdatePhoneNumberWithHttpInfoAsync(Guid, UpdatePhoneNumberOptions, int, CancellationToken)
Update a phone number
Declaration
Task<ApiResponse<PhoneNumberDto>> UpdatePhoneNumberWithHttpInfoAsync(Guid phoneNumberId, UpdatePhoneNumberOptions updatePhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | phoneNumberId | ID of phone to set favourite state |
| UpdatePhoneNumberOptions | updatePhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberDto>> | Task of ApiResponse (PhoneNumberDto) |
Remarks
Set field for phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
UpdatePhonePoolAsync(Guid, UpdatePhonePoolOptions, int, CancellationToken)
Update phone pool
Declaration
Task<PhonePoolDetailDto> UpdatePhonePoolAsync(Guid poolId, UpdatePhonePoolOptions updatePhonePoolOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| UpdatePhonePoolOptions | updatePhonePoolOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhonePoolDetailDto> | Task of PhonePoolDetailDto |
Remarks
Update phone pool metadata such as name or description
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
UpdatePhonePoolWithHttpInfoAsync(Guid, UpdatePhonePoolOptions, int, CancellationToken)
Update phone pool
Declaration
Task<ApiResponse<PhonePoolDetailDto>> UpdatePhonePoolWithHttpInfoAsync(Guid poolId, UpdatePhonePoolOptions updatePhonePoolOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | poolId | |
| UpdatePhonePoolOptions | updatePhonePoolOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhonePoolDetailDto>> | Task of ApiResponse (PhonePoolDetailDto) |
Remarks
Update phone pool metadata such as name or description
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ValidatePhoneNumberAsync(ValidatePhoneNumberOptions, int, CancellationToken)
Verify validity of a phone number
Declaration
Task<PhoneNumberValidationDto> ValidatePhoneNumberAsync(ValidatePhoneNumberOptions validatePhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidatePhoneNumberOptions | validatePhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PhoneNumberValidationDto> | Task of PhoneNumberValidationDto |
Remarks
Validate a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ValidatePhoneNumberWithHttpInfoAsync(ValidatePhoneNumberOptions, int, CancellationToken)
Verify validity of a phone number
Declaration
Task<ApiResponse<PhoneNumberValidationDto>> ValidatePhoneNumberWithHttpInfoAsync(ValidatePhoneNumberOptions validatePhoneNumberOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidatePhoneNumberOptions | validatePhoneNumberOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PhoneNumberValidationDto>> | Task of ApiResponse (PhoneNumberValidationDto) |
Remarks
Validate a phone number
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |