Title: Rest API does not work
Last modified: March 7, 2025

---

# Rest API does not work

 *  Resolved [mingewang](https://wordpress.org/support/users/mingewang/)
 * (@mingewang)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/)
 * Hi
 * I followed this:
 * [https://docs.masteriyo.com/for-developers/rest-api#making-api-requests](https://docs.masteriyo.com/for-developers/rest-api#making-api-requests)
 *     ```wp-block-code
       curl -X 'GET' \
         'https://your-site.com/wp-json/masteriyo/v1/courses/categories' \
         -H 'accept: application/json' \
         -H 'authorization: Basic <your_auth_key>'
       ```
   
 * but got this error:
   {‘code’: ‘masteriyo_rest_cannot_read’, ‘message’: ‘Sorry,
   you cannot list resources.’, ‘data’: {‘status’: 401}}how to fix that?thanks

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

 *  Plugin Support [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * (@lihsaa)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18350142)
 * Hi [@mingewang](https://wordpress.org/support/users/mingewang/) ,
 * Have you add user with the role of read on the REST API authentication in our
   setting?
 * Thanks
 *  Thread Starter [mingewang](https://wordpress.org/support/users/mingewang/)
 * (@mingewang)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18350187)
 * yes. I did.
 *  Plugin Support [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * (@lihsaa)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18351605)
 * We have tested this on our end and there is no issue. Can you please share screenrecord
   of the issue?
 * Thanks
 *  Thread Starter [mingewang](https://wordpress.org/support/users/mingewang/)
 * (@mingewang)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18351637)
 * ![](https://i0.wp.com/private-user-images.githubusercontent.com/1861871/420764498-
   b8efdd20-587c-4bfe-abbf-b40048e8afa1.png?ssl=1)
 * Please check
   thanks
 *  Plugin Support [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * (@lihsaa)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18353957)
 * [@mingewang](https://wordpress.org/support/users/mingewang/) Have you upload 
   the screenrecord? There is no any link on your last reply.
 *  Plugin Support [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * (@lihsaa)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18353960)
 * [@mingewang](https://wordpress.org/support/users/mingewang/) have you uploaded
   the screenrecord? There is no link in your last reply.
 *  Thread Starter [mingewang](https://wordpress.org/support/users/mingewang/)
 * (@mingewang)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18353965)
 * hi
 * i pasted the img, somehow it did not show.
 * here is the link: let me know if it works.
 * [https://gist.github.com/mingewang/2e428af27ce60b31f89f391517c4eb9e](https://gist.github.com/mingewang/2e428af27ce60b31f89f391517c4eb9e)
 *  Plugin Support [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * (@lihsaa)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18356878)
 * We will look through the issue from our side. Also is there any other roles assigned
   to the user whom you have grant the access?
 *  Thread Starter [mingewang](https://wordpress.org/support/users/mingewang/)
 * (@mingewang)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18357235)
 * **It is an admin account.**
 * Can not see what roles assigned to admin on the settings.
 * also I tried other accounts which has instructor, has the same problem.
 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18378688)
 * Hi [@mingewang](https://wordpress.org/support/users/mingewang/),
   Thank you for
   the helpful information.
 * We have replicated some issues you mentioned and have fixed them in our development.
   These fixes will be included in the upcoming update, which will be released soon.
 * Best regards!
 *  Plugin Support [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * (@lihsaa)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18383998)
 * We are continually improving REST API in our upcoming updates.
 * _Marking this topic as resolved for now._
 * Thank You

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

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

 * ![](https://ps.w.org/learning-management-system/assets/icon-256x256.gif?rev=3520181)
 * [Masteriyo LMS – LMS Course Builder, Quizzes & Certificates](https://wordpress.org/plugins/learning-management-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learning-management-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learning-management-system/)
 * [Active Topics](https://wordpress.org/support/plugin/learning-management-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learning-management-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learning-management-system/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [Aashil Bijukshe](https://wordpress.org/support/users/lihsaa/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/rest-api-does-not-work/#post-18383998)
 * Status: resolved