Proxy API (removed)
Removed in version 2.3.2
The Proxy API was deprecated in 2.3.0 and removed in 2.3.2, along with the legacy relay
(Evolution). The send-message/text and send-message/media routes no longer exist: a call to
them gets a 404 from WordPress, and the joinotify_proxy_api_text_message_text_endpoint(),
joinotify_proxy_api_media_message_text_endpoint() and joinotify_get_proxy_api_key() helpers
are gone from the plugin. If a system still calls those routes, it has stopped sending — see
below how to migrate.
The Proxy API exposed two REST endpoints on your own site that forwarded the send to Joinotify. It existed back when there was no public API to call directly. There is now: the Joinotify API does the same without depending on your site being up, with more message types, scheduling and real delivery confirmation.
How to migrate
From a system outside the site
The destination is the Joinotify API, called directly by the system that sends. Issue a key for that system in the Joinotify dashboard — one key per integration lets you revoke one without taking the others down.
| Before | Now |
|---|---|
POST https://yoursite.com/wp-json/joinotify/v1/send-message/text | POST https://api.joinotify.com/messages with {"type":"text"} |
POST .../send-message/media | POST https://api.joinotify.com/v1/{phone_number_id}/messages |
X-API-Key header | Authorization: Bearer sk_live_… header |
receiver / message | to / body |
curl -X POST https://api.joinotify.com/messages \
-H 'Authorization: Bearer sk_live_xxx' \
-H 'Content-Type: application/json' \
-d '{ "type": "text", "to": "5511910203040", "body": "Hello!" }'What you gain: the message types the Proxy API never exposed (template, buttons, list,
carousel, media by id), scheduling with cancellation
and real delivery status — the Proxy API only
ever said the message was accepted.
From inside the site itself
Code that runs on WordPress does not need HTTP: call the plugin's helpers directly.
add_action( 'publish_post', function ( $post_id ) {
if ( get_post_type( $post_id ) !== 'post' ) {
return;
}
$post = get_post( $post_id );
$sender = joinotify_get_first_sender();
if ( ! $sender ) {
return;
}
joinotify_send_whatsapp_message_text(
$sender,
'5511910203040',
sprintf( "New post published: %s\n%s", $post->post_title, get_permalink( $post_id ) )
);
} );Free-form text only arrives inside the 24-hour window. To notify someone who has not written to
the number recently, use joinotify_send_whatsapp_template() — see
Delivering through Joinotify Cloud.
What about the old settings?
The Proxy API card is gone from Settings → General. The text route, the media route and the key left stored by an earlier version are not used by anything.