{ "data": [ { "id": 45, "name": "appointment_reminder", "language": "en", "category": "utility", "status": "approved", "body_text": "Hi {{1}}, this is a reminder for your appointment on {{2}} at {{3}}. Reply YES to confirm or NO to reschedule.", "variables": ["customer_name", "date", "time"], "has_variables": true }, { "id": 46, "name": "welcome_message", "language": "en", "category": "marketing", "status": "approved", "body_text": "Welcome to Acme Corp! We're excited to have you. How can we help you today?", "variables": [], "has_variables": false } ]}
{ "success": false, "error": "Sender not found", "error_code": "SENDER_NOT_FOUND"}
WhatsApp
Get Templates
List WhatsApp message templates for a specific sender
GET
/
user
/
whatsapp
/
senders
/
{senderId}
/
templates
curl -X GET "https://app.heyfred.nl/api/user/whatsapp/senders/12/templates" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://app.heyfred.nl/api/user/whatsapp/senders/12/templates?status=all" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "data": [ { "id": 45, "name": "appointment_reminder", "language": "en", "category": "utility", "status": "approved", "body_text": "Hi {{1}}, this is a reminder for your appointment on {{2}} at {{3}}. Reply YES to confirm or NO to reschedule.", "variables": ["customer_name", "date", "time"], "has_variables": true }, { "id": 46, "name": "welcome_message", "language": "en", "category": "marketing", "status": "approved", "body_text": "Welcome to Acme Corp! We're excited to have you. How can we help you today?", "variables": [], "has_variables": false } ]}
{ "success": false, "error": "Sender not found", "error_code": "SENDER_NOT_FOUND"}
This endpoint returns all message templates associated with a specific WhatsApp sender. Templates are required for initiating conversations or messaging users outside the 24-hour messaging window.
{ "data": [ { "id": 45, "name": "appointment_reminder", "language": "en", "category": "utility", "status": "approved", "body_text": "Hi {{1}}, this is a reminder for your appointment on {{2}} at {{3}}. Reply YES to confirm or NO to reschedule.", "variables": ["customer_name", "date", "time"], "has_variables": true }, { "id": 46, "name": "welcome_message", "language": "en", "category": "marketing", "status": "approved", "body_text": "Welcome to Acme Corp! We're excited to have you. How can we help you today?", "variables": [], "has_variables": false } ]}
{ "success": false, "error": "Sender not found", "error_code": "SENDER_NOT_FOUND"}