Allow replying to inbound WhatsApp tickets via the public API (free-form reply within the 24-hour window)

Problem
There is currently no way to send a free-form reply to an inbound WhatsApp ticket through the Freshdesk API v2. Replies typed by an agent in the ticket UI are delivered to the customer’s WhatsApp, but the same reply sent via API is not.

Current behavior
For a WhatsApp ticket (source = 13) with the customer’s last message inside the 24-hour customer service window:

  • POST /api/v2/tickets/:id/reply with body returns 201, but the conversation is stored as email (source: 0, with from_email and email delivery details). The message never reaches WhatsApp.
  • POST /api/v2/tickets/:id/notes with "private": false returns 201, but is not delivered to WhatsApp either.
  • Sending structured_body or "source": 17 on either endpoint returns 400 invalid_field.

By contrast, a reply made by an agent in the UI is stored with source: 17 and a structured_body, and is delivered normally.

The Outbound Messages API does not cover this case, since it only supports template-based, business-initiated messages. Here the customer started the conversation and the window is open, so a template should not be needed.

Proposed solution
Allow POST /api/v2/tickets/:id/reply (or a dedicated endpoint) to send free-form replies on WhatsApp tickets, delivered through the ticket’s WhatsApp channel, while the 24-hour window is open. This could be supported by accepting source: 17 and/or structured_body on WhatsApp tickets, matching how UI replies are stored. Supporting media attachments would be a plus.