> 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>
