> For the complete documentation index, see [llms.txt](https://daton-sarasanalytics.gitbook.io/daton/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daton-sarasanalytics.gitbook.io/daton/faqs/api-keys/woocommerce-api-keys.md).

# How to find site-id/domain and create WooCommerce Consumer Key and Secret

Documentation on finding the site-id/domain and creating consumer key and consumer secret for successful integration of WooCommerce

Follow the below instructions to get required information&#x20;

* Sign in to your WordPress account
* To get the site id for your website,

**For WordPress hosted sites:**

* Click the arrow mark under **My Sites** in left corner. Note the **WordPress site id** under the **WordPress site name**

<div align="center"><figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2Fiy025Wi6N69aNbp83Mtk%2FWordPress%20site-id.png?alt=media&amp;token=4d44889c-e603-457e-a498-99795d9e858a" alt=""><figcaption><p>WordPress site id</p></figcaption></figure></div>

**For self hosted websites:**

* Go to **Store Management** section after logging to WooCommerce plugin and note down the **Domain** name
* On the navigation menu, select **WooCommerce** and then click **Settings**
* In **Advanced** tab, select **REST API** section and click **Add key** button

<figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FKOeqgwuhYvONIjKGQOHq%2FAPI%20key%201.png?alt=media&amp;token=3afcce76-35b2-4ac5-a8c8-47a71fd2f582" alt=""><figcaption><p>Generate API key</p></figcaption></figure>

* Provide **Description** and select a **User** with **Read** permission&#x20;
* Click on **Generate API key**

<figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2Fr7Ptw9VIffTcRJwWQivi%2FAPI%20key%202.png?alt=media&amp;token=fb6df3f0-2644-4842-beec-be856a96bd89" alt=""><figcaption><p>Generate API key</p></figcaption></figure>

* Note down the **Consumer key** and **Consumer secret** which will be asked during integration

<figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FXs3WVpSwb1p2U2BWKDhM%2Fclientkey.png?alt=media&amp;token=fae8b564-6ded-4484-8f91-ecf48acef3db" alt=""><figcaption><p>Consumer Key and Consumer Secret</p></figcaption></figure>


---

# 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://daton-sarasanalytics.gitbook.io/daton/faqs/api-keys/woocommerce-api-keys.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.
