> For the complete documentation index, see [llms.txt](https://docs.appmysite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmysite.com/app/connectivity/wordpress-connectivity/grant-access/woocommerce-rest-api.md).

# WooCommerce REST API

### How to generate WooCommerce REST API keys?

You can generate WooCommerce REST API keys and submit them on AppMySite to connect your online store and app.&#x20;

{% embed url="<https://scribehow.com/shared/WooCommerce_REST_API__g6ZapSW2RJKBXPCeq958Pw>" %}

{% hint style="warning" %}
Establishing connectivity on using the WordPress Application Password is recommeded to ensure smooth connectivity between your app and website.
{% endhint %}

Watch this video to learn how to generate and use WooCommerce REST API keys to connect your online store with your mobile app:

Follow the steps below to establish connectivity using WooCommerce REST API keys:&#x20;

* Login to the admin panel of your WordPress website.
* Click on WooCommerce and open Settings.
* Select the Advanced tab in the WooCommerce settings.
* Click on REST API. You will have to select the Add key button and fill out the following details:
  * Description: Enter a friendly name for easy identification.
  * User: Select the administrator of the website.
  * Permission: Select **Read/Write** from the drop-down menu.
  * Copy: Copy and paste the consumer key and secret from your website
  * &#x20;Submit: Enter the consumer key and secret in the relevant fields of your AppMySite's Connectivity section.
* Click on **Verify** once you have submitted the keys.&#x20;

{% hint style="danger" %}
Turn on the Force authentication toggle to send your Consumer Key and Secret in the URL. This is less secure and should only be used if HTTP Authorisation is turned off on your server.
{% endhint %}

{% hint style="warning" %}
The WooCommerce plugin on your WordPress website must be updated to the latest version while generating REST API keys. You may not be able to achieve connectivity if an older version of the WooCommerce plugin is installed on your website.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.appmysite.com/app/connectivity/wordpress-connectivity/grant-access/woocommerce-rest-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
