EndUserMessagingSocial / Client / list_whatsapp_flow_assets

list_whatsapp_flow_assets

EndUserMessagingSocial.Client.list_whatsapp_flow_assets(**kwargs)

Lists the assets (Flow JSON definition) of a WhatsApp Flow with presigned download URLs. Download URLs are generated by Meta and expire after a short period.

See also: AWS API Documentation

Request Syntax

response = client.list_whatsapp_flow_assets(
    id='string',
    flowId='string',
    nextToken='string',
    maxResults=123
)
Parameters:
  • id (string) –

    [REQUIRED]

    The ID of the WhatsApp Business Account associated with this Flow.

  • flowId (string) –

    [REQUIRED]

    The unique identifier of the Flow whose assets to list.

  • nextToken (string) – The token for the next page of results.

  • maxResults (integer) – The maximum number of results to return per page.

Return type:

dict

Returns:

Response Syntax

{
    'flowAssets': [
        {
            'name': 'string',
            'assetType': 'string',
            'downloadUrl': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • flowAssets (list) –

      A list of Flow assets with download URLs.

      • (dict) –

        Represents a single asset file associated with a WhatsApp Flow, including a presigned download URL.

        • name (string) –

          The filename of the asset (for example, flow.json).

        • assetType (string) –

          The type of asset. Currently the only supported value is FLOW_JSON.

        • downloadUrl (string) –

          A presigned URL from Meta for downloading the asset. The URL expires after a short period.

    • nextToken (string) –

      The token to retrieve the next page of results, if any.

Exceptions

  • EndUserMessagingSocial.Client.exceptions.ValidationException

  • EndUserMessagingSocial.Client.exceptions.AccessDeniedException

  • EndUserMessagingSocial.Client.exceptions.ResourceNotFoundException

  • EndUserMessagingSocial.Client.exceptions.InvalidParametersException

  • EndUserMessagingSocial.Client.exceptions.AccessDeniedByMetaException

  • EndUserMessagingSocial.Client.exceptions.ThrottledRequestException

  • EndUserMessagingSocial.Client.exceptions.InternalServiceException

  • EndUserMessagingSocial.Client.exceptions.DependencyException