Title: Rest API
Last modified: February 15, 2021

---

# Rest API

 *  Resolved [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/rest-api-107/)
 * I have the following scenario.
 * The customer has two domains.
    One for his website and another one for his shop.
   Let’s assume the following domains: Website: example.com Shop: shop.example.com
 * When someone place an order on shop.example.com he can also subscribe to the 
   newsletter which is send from example.com.
    So the task is to add the subcriber
   programmatically.
 * I already found out that there is a REST api but I couldn’t figure out how to
   access it.
 * The first problem is that I don’t understand which URL I have to call.
    ON [https://www.thenewsletterplugin.com/documentation/api-reference/#/subscribers/put_subscribers__email_](https://www.thenewsletterplugin.com/documentation/api-reference/#/subscribers/put_subscribers__email_)
   I see a URL /subscribers/{email}. Does this mean if I want to add [john.doe@example.com](https://wordpress.org/support/topic/rest-api-107/john.doe@example.com?output_format=md)
   the url is /subcribers/john.doe@example.com?
 * Could you give me an example how to do this using PHP Curl.
 * Kind regards
 * Alexander Behling

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Roberto Fietta](https://wordpress.org/support/users/webagile/)
 * (@webagile)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/rest-api-107/#post-14154813)
 * Hi, please see all the API documentation at [https://www.thenewsletterplugin.com/documentation/developers/newsletter-api-2/](https://www.thenewsletterplugin.com/documentation/developers/newsletter-api-2/)
   and the reference at [https://www.thenewsletterplugin.com/documentation/api-reference/](https://www.thenewsletterplugin.com/documentation/api-reference/)
 *  Thread Starter [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/rest-api-107/#post-14155166)
 * That’s where I got the info from.
    But this documentation isn’t helpful at all.
 *  Plugin Author [Roberto Fietta](https://wordpress.org/support/users/webagile/)
 * (@webagile)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/rest-api-107/#post-14233221)
 * Hi, please refer to the WordPress JSON API documentation, specific endpoint for
   Newsletter one depends on the WP one, it might be <your-site>/wp-json/newsletter/
   v2/
 * Regards,
    Roberto The Newsletter Plugin

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Rest API’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Roberto Fietta](https://wordpress.org/support/users/webagile/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/rest-api-107/#post-14233221)
 * Status: resolved