Table of Contents

Struct VoiceWorkflow

Namespace
Vonage.VerifyV2.StartVerification.Voice
Assembly
Vonage.dll

Represents a verification workflow that delivers the PIN code via text-to-speech voice call.

public readonly struct VoiceWorkflow : IVerificationWorkflow
Implements
Inherited Members

Properties

Channel

The verification channel identifier (e.g., "sms", "voice", "email", "whatsapp", "whatsapp_interactive", "silent_auth").

[JsonPropertyOrder(0)]
public string Channel { get; }

Property Value

string

To

The recipient phone number in E.164 format without leading + or 00 (e.g., "447700900000").

[JsonPropertyOrder(1)]
[JsonConverter(typeof(PhoneNumberJsonConverter))]
public PhoneNumber To { get; }

Property Value

PhoneNumber

Methods

Parse(string)

Creates a new Voice verification workflow.

public static Result<VoiceWorkflow> Parse(string to)

Parameters

to string

The recipient phone number in E.164 format without leading + or 00 (e.g., "447700900000").

Returns

Result<VoiceWorkflow>

A Result<T> containing the workflow if successful, or validation errors if the phone number is invalid.

Examples

var workflow = VoiceWorkflow.Parse("447700900000");
See Also

Serialize(IJsonSerializer)

Serializes the workflow configuration to JSON format for the API request.

public string Serialize(IJsonSerializer serializer)

Parameters

serializer IJsonSerializer

The JSON serializer to use.

Returns

string

The JSON representation of the workflow.