Title: Rest Api 401
Last modified: June 23, 2019

---

# Rest Api 401

 *  Resolved [arashsoftco](https://wordpress.org/support/users/arashsoftco/)
 * (@arashsoftco)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-401/)
 * Hi i want to use api
    as the duc:
 * [https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API](https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API)
 * my site url is
    [ratakala.com](http://ratakala.com)
 * but when i enter this
 * [ratakala.com/wp-json/wc/v2/orders](http://ratakala.com/wp-json/wc/v2/orders)
 * i get this error :
    {“code”:”woocommerce_rest_cannot_view”,”message”:”Sorry, 
   you cannot list resources.”,”data”:{“status”:401}}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-401%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-401/#post-11699026)
 * Hi [@arashsoftco](https://wordpress.org/support/users/arashsoftco/)!
 * The response indicates that you are not authorized for that REST endpoint
 * Please review the documentation once more, from here: [https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication](https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication)
 * .. and ensure that if you are using `Basic auth` that https is used for connection,
   and that the user creating the REST API keys have both read/write permissions.
 * Cheers!
 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-401/#post-11714110)
 * Howdy!
 * We haven’t heard back from you in a while, so I’m going to go ahead and mark 
   this thread as resolved. If you have any other questions please start a new thread.
 * Cheers!

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

The topic ‘Rest Api 401’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [woocommers](https://wordpress.org/support/topic-tag/woocommers/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-401/#post-11714110)
 * Status: resolved