This endpoint allows you to deregister and unsubscribe from a webhook in WP SMS. This endpoint can be useful if you no longer want to receive updates or notifications through the webhook, or if you need to deregister the webhook for any other reason.
WP SMS supports Application Password authentication, which is available in WordPress version 5.6 and higher.
To create an Application Password, go to your profile page in the WordPress admin and enter a name in the ‘New Application Password Name‘ input. Click the ‘Add New Application Password‘ button to generate and display the password, which you can use to authenticate requests to the REST API.
When using Basic Authentication with this Application Password, use your account username or email address as the username.
- webhook_url – The webook URL
- type – Accepts new_subscriber and new_sms
curl --location --request DELETE 'https://site.com/wp-json/wpsms/v1/webhook?type=new_sms&webhook_url=https://webhookurl.com' \ --header 'Authorization: Basic ***'