POST Create WhatsApp Template​
POST
/whatsapp/templates
Submit a WhatsApp template to the configured provider for review. 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)
Request Body​
application/json
JSON
{
"name": "string",
"language": "en_US",
"category": "MARKETING",
"header_text": "string",
"body_text": "string",
"footer_text": "string",
"buttons": [
{
}
],
"variables": {
}
}
Responses​
Template submitted for provider review.
application/json
JSON
{
"message": "string",
"template": {
"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"
},
"warnings": [
"string"
]
}