Skip to content

AddressMessagePayload

Defined in: src/types/messages.ts:353

Options for MessagesResource.sendAddressMessage.

country is required and must be IN (India) or SG (Singapore). The SDK serializes the parameters (country, values, saved addresses, validation errors) into the JSON-encoded action.parameters string the API expects.

body: string

Defined in: src/types/messages.ts:355

Body text shown above the address form.


country: "IN" | "SG"

Defined in: src/types/messages.ts:357

Supported country: IN (India) or SG (Singapore).


optional footer?: string

Defined in: src/types/messages.ts:367

Optional footer text.


optional header?: InteractiveHeader

Defined in: src/types/messages.ts:365

Optional header: a plain string (text) or a structured text/media header.


optional savedAddresses?: AddressMessageSavedAddress[]

Defined in: src/types/messages.ts:361

Previously saved addresses to offer. Maps to saved_addresses.


optional validationErrors?: Record<string, string>

Defined in: src/types/messages.ts:363

Per-field validation error messages keyed by API field name. Maps to validation_errors.


optional values?: AddressMessageValues

Defined in: src/types/messages.ts:359

Pre-filled address field values. Maps to values.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.