Title: Using REST API for Booking
Last modified: December 8, 2021

---

# Using REST API for Booking

 *  [keishawj](https://wordpress.org/support/users/keishawj/)
 * (@keishawj)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/using-rest-api-for-booking/)
 * I saw this link speaking about, RESTful API for this plugin [https://www.salonbookingsystem.com/salon-booking-system-restful-api/](https://www.salonbookingsystem.com/salon-booking-system-restful-api/)
 * I wanted to be able to use REST endpoints like identified here for my WordPress
   site: [https://app.swaggerhub.com/apis/andrei04/salon-booking_plugin_api_public/1](https://app.swaggerhub.com/apis/andrei04/salon-booking_plugin_api_public/1)
 * I assumed that I would be able to do this for my own WordPress site after I installed
   the plugin. For example, retrieve my list of services with a `https://{my-wordpress-
   site}/wp-json/salon/api/v1/services` request.
 * How do I get these REST endpoints, like those described in the links above, to
   work for my site, where I have the plugin installed?

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

 *  Plugin Author [Dimitri Grassi](https://wordpress.org/support/users/wordpresschef/)
 * (@wordpresschef)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/using-rest-api-for-booking/#post-15157500)
 * Hi,
 * you firstly need to generate the “Access token” using the same credentials of
   your wordpress account.
 * Then you can use the endpoints.
 *  Thread Starter [keishawj](https://wordpress.org/support/users/keishawj/)
 * (@keishawj)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/using-rest-api-for-booking/#post-15158761)
 * Hi,
 * How exactly do I get the access token?
 * I have tried to send a request to `https://{my-wordpress-site}/wp-json/salon/
   api/v1/login` with name and password in the query string using the same credentials
   of my WordPress account, but I get the response.
 *     ```
       {
           "code": "rest_no_route",
           "message": "No route was found matching the URL and request method.",
           "data": {
               "status": 404
           }
       }
       ```
   

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

The topic ‘Using REST API for Booking’ is closed to new replies.

 * ![](https://ps.w.org/salon-booking-system/assets/icon-256x256.gif?rev=3214950)
 * [Salon Booking System - Free Version](https://wordpress.org/plugins/salon-booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salon-booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salon-booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/salon-booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salon-booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salon-booking-system/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [keishawj](https://wordpress.org/support/users/keishawj/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/using-rest-api-for-booking/#post-15158761)
 * Status: not resolved