Table of Contents

Struct WhatsAppInteractiveWorkflow

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

string

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

PhoneNumber

Methods

Parse(string)

Creates a new WhatsApp Interactive verification workflow.

public static Result<WhatsAppInteractiveWorkflow> Parse(string to)

Parameters

to string

The 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

serializer IJsonSerializer

The JSON serializer to use.

Returns

string

The JSON representation of the workflow.