Skip to main content

whats_app_flow_previews

Creates, updates, deletes, gets or lists a whats_app_flow_previews resource.

Overview

Namewhats_app_flow_previews
TypeResource
Idaws.socialmessaging.whats_app_flow_previews

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
flow_idstringThe unique identifier of the Flow. (pattern: <code>[0-9]+</code>)
previewobjectThe preview URL and its expiration timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_whats_app_flow_previewselectid, flowId, regioninvalidateGenerates a web preview URL for testing a WhatsApp Flow before publishing. Preview URLs expire in 30 days and can be shared with stakeholders for review.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
flowIdstringThe unique identifier of the Flow to preview.
idstringThe ID of the WhatsApp Business Account associated with this Flow.
regionstringAWS region (default: us-east-1)
invalidatebooleanSet to true to force generation of a new preview URL. Use this if the previous URL has been compromised or you want a fresh expiration period.

SELECT examples

Generates a web preview URL for testing a WhatsApp Flow before publishing. Preview URLs expire in 30 days and can be shared with stakeholders for review.

SELECT
flow_id,
preview
FROM aws.socialmessaging.whats_app_flow_previews
WHERE id = '{{ id }}' -- required
AND flowId = '{{ flowId }}' -- required
AND region = '{{ region }}' -- required
AND invalidate = '{{ invalidate }}'
;