> 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

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="/files/A4kwQvSN7FIuNSTGGopG" 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="/files/DHhjflIoMfowffgfFHUO" 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="/files/7umVDOfOMHPmcdv1VmnM" 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="/files/bF6WKfC64EcOPkp1zfTb" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/faqs/api-keys/woocommerce-api-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
