Retrieves a paginated list of Twilio Content templates with their WhatsApp approval request statuses.
Optional filter and pagination parameters.
A promise that resolves to a paginator containing content templates with approval statuses.
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { GetContentTemplates } from "@twilio/flex-sdk/actions/Conversation";async function getContentTemplates() { const client = await createClient("SDK_TOKEN"); const action = new GetContentTemplates({ pageSize: 20, language: ["en"] }); const result = await client.execute(action); console.log(result.items); if (result.hasNextPage) { const nextPage = await result.nextPage(); }} Copy
import { createClient } from "@twilio/flex-sdk";import { GetContentTemplates } from "@twilio/flex-sdk/actions/Conversation";async function getContentTemplates() { const client = await createClient("SDK_TOKEN"); const action = new GetContentTemplates({ pageSize: 20, language: ["en"] }); const result = await client.execute(action); console.log(result.items); if (result.hasNextPage) { const nextPage = await result.nextPage(); }}
Optional
Retrieves a paginated list of Twilio Content templates with their WhatsApp approval request statuses.
Param: options
Optional filter and pagination parameters.
Returns
A promise that resolves to a paginator containing content templates with approval statuses.
Throws
FlexSdkError with the following error code(s):
Example