Send a free-text WhatsApp message within an active 24-hour session.
Sends a freeform (free-text) WhatsApp message to a recipient. Unlike template messages, freeform messages can contain any text but require an active 24-hour messaging window — meaning the recipient must have sent a message to your WhatsApp number within the last 24 hours.
Freeform messages can only be sent during an active 24-hour messaging window. If the session has expired, send a template message first to re-initiate the conversation.
This endpoint is rate-limited to 5 requests per second per user.
curl -X POST "https://portal.intellixent.ai/api/user/whatsapp/send-freeform" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "sender_id": 12, "recipient_phone": "+1234567890", "message": "Thank you for your inquiry! Our team will get back to you within 2 hours." }'
{ "success": false, "error": "The 24-hour messaging window is closed. Customer must reply first, or use a template message.", "error_code": "SESSION_EXPIRED", "session_status": { "is_open": false, "can_send_freeform": false, "requires_template": true, "message": "Session expired. Send a template or wait for customer to reply." }}
503 Sender offline
{ "success": false, "error": "Sender is not online. Current status: Offline", "error_code": "SENDER_OFFLINE"}