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

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

The question should be specific, self-contained, and written in natural language.
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.
