WhatsApp Templates API
4. Validate a template
Public Developer API for Meta template lifecycle on Cloud WhatsApp accounts. Same Meta engine as the Washeej dashboard. Access requires explicit template scopes; Device/QR management is rejected. Provider Meta delete stays deferred.
POST /v1/templates/validate
Local only — no Meta call, no DB row, no webhook. Same schema as create. Use this instead of probe templates.
cURL
curl -X POST "https://app.washeej.com/v1/templates/validate" \
-H "client-id: YOUR_CLIENT_ID" \
-H "client-secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{
"whatsapp_account_id": YOUR_CLOUD_ACCOUNT_ID,
"name": "payment_due_reminder_ar",
"language": "ar",
"category": "UTILITY",
"header_format": "NONE",
"body": "مرحبا <?php echo e(1); ?>، مبلغك <?php echo e(2); ?> مستحق.",
"body_examples": ["أحمد", "120"],
"footer": "وشيج",
"buttons": []
}'