Skip to content
View as Markdown

GET WhatsApp Templates​

GET
/whatsapp/templates

List stored WhatsApp message templates and review-status counts. PRO (requires FluentCampaign Pro WhatsApp module).

Required capability: fcrm_read_emails

Enforced by SMSPolicy::verifyRequest(), the policy default for this route group.

Requires: FluentCampaign Pro with the SMS module enabled. While SMS is switched off the route is not registered at all and returns a 404.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Parameters​

Query Parameters

status

Optional provider review status filter, for example APPROVED or PENDING.

Type
string
approved_only

Return only approved templates when truthy.

Type
boolean

Responses​

WhatsApp templates and status counts.

application/json
JSON
{
"templates": [
{
"id": 0,
"channel": "string",
"provider": "string",
"name": "string",
"language": "string",
"category": "string",
"status": "string",
"header_text": "string",
"body_text": "string",
"footer_text": "string",
"buttons": [
{
}
],
"variables": {
},
"provider_template_id": "string",
"rejection_reason": "string",
"last_synced_at": "string",
"created_by": 0,
"created_at": "string",
"updated_at": "string"
}
],
"supports_sync": true,
"counts": {
"total": 0,
"approved": 0,
"pending": 0,
"rejected": 0
}
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI