Struct WhatsAppInteractiveWorkflow
- Assembly
- Vonage.dll
Represents a verification workflow that delivers the PIN code via WhatsApp interactive message with a one-tap button for automatic code submission.
public readonly struct WhatsAppInteractiveWorkflow : 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
To
The recipient WhatsApp phone number in E.164 format without leading + or 00 (e.g., "447700900000").
[JsonPropertyOrder(1)]
[JsonConverter(typeof(PhoneNumberJsonConverter))]
public PhoneNumber To { get; }
Property Value
Methods
Parse(string)
Creates a new WhatsApp Interactive verification workflow.
public static Result<WhatsAppInteractiveWorkflow> Parse(string to)
Parameters
tostringThe recipient WhatsApp phone number in E.164 format without leading + or 00 (e.g., "447700900000").
Returns
- Result<WhatsAppInteractiveWorkflow>
A Result<T> containing the workflow if successful, or validation errors if the phone number is invalid.
Examples
var workflow = WhatsAppInteractiveWorkflow.Parse("447700900000");
- See Also
Serialize(IJsonSerializer)
Serializes the workflow configuration to JSON format for the API request.
public string Serialize(IJsonSerializer serializer)
Parameters
serializerIJsonSerializerThe JSON serializer to use.
Returns
- string
The JSON representation of the workflow.