Delivering through Joinotify Cloud
Every WhatsApp send from the plugin goes through the Joinotify Cloud API — the same one any external integration uses — and behind it sits Meta's official Cloud API. The number is official, the send is signed by Meta and it does not depend on a live WhatsApp Web session on the server.
The legacy relay (Evolution) was removed in 2.3.2
Up to 2.3.1 there was a second transport, over QR Code, and a transport selector in the
settings. Both were removed, along with the Proxy API. Sites still sending
through the relay stop sending until the Joinotify account is connected. The
Joinotify/Transport/Active filter is gone too.
Setting it up
Connect the site as described in Connecting the site to Joinotify. On connecting, the account's numbers are imported and the two identifiers below are filled in on their own — they live on the WhatsApp card, under Joinotify → Settings → Integrations → Configure:
| Field | What it does |
|---|---|
| Joinotify account | The API key (sk_live_…). Once saved, only the public prefix shows |
| Phone number ID | The default origin of messages. Change it only to send from another number by default |
| WhatsApp Business Account ID | The business account that owns the templates |
Where to find each identifier in the Joinotify dashboard is described in Quickstart.
How the plugin picks the origin number
Each WhatsApp action has a sender, chosen among the account's imported numbers. The
phone_number_id is resolved from it; when the number has no phone_number_id of its own
mapped, the default Phone number ID applies.
The 24-hour window changes what you can send
On the official Cloud API, outside the 24-hour window since the customer's last message, only an approved template is delivered — free-form text, media and interactive messages are rejected by Meta.
In practice:
- Workflows replying to an ongoing conversation work with any kind of message.
- Workflows that start the conversation — "your order is out for delivery", "review your purchase 7 days later" — fall outside the window and need the WhatsApp: Template message action.
- When you cannot know in advance, the WhatsApp 24-hour window condition splits the workflow: free-form text if the window is open, a template if it is not.
The builder warns on the steps that only reach the contact inside the window. The template action, the condition and everything a template can carry — media or location header, buttons, offers, carousel — are in Builder actions. The full concept, with template categories and what each one costs, is in The 24-hour window and Templates.
Sending a template from code
Since 2.6.0, joinotify_send_whatsapp_template() sends an approved template and tells you what
happened: it returns the WhatsApp message id, or a WP_Error with the reason it was refused.
$result = joinotify_send_whatsapp_template(
'5541987111527',
'order_shipped',
'en_US',
array(
array(
'type' => 'body',
'parameters' => array(
array( 'type' => 'text', 'text' => '1042' ),
),
),
)
);
if ( is_wp_error( $result ) ) {
error_log( 'Template refused: ' . $result->get_error_message() );
}It goes through the same path as the builder actions — sender check, one-line parameters,
message history, log — but makes a single attempt, unless you ask for the retry queue. The
options, the error codes and the functions that list the account's templates and read a
contact's window are in
Developer resources. The
shape of components is the same as the API's — see Sending messages.
Errors and retries
A transient failure — a timeout, a send limit, an outage — is not thrown away: the message waits and is tried again, at the pace set under Settings → General → Delivery retries. Configuration errors — invalid key, missing template, closed window — are not retried, because insisting would not change the outcome; they stay in the history with the reason and WhatsApp's own explanation, and can be sent again by hand once fixed. See History, queue and resending.
The most common production error is the closed window, recorded as
window_closed_requires_template. The full code table is in Errors.
Pointing at another environment
To test against something other than production, define the constant in wp-config.php:
define( 'JOINOTIFY_CLOUD_API_BASE_URL', 'https://api.example.com' );Without the constant, the plugin talks to https://api.joinotify.com.