# 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="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&#x26;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&#x26;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&#x26;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&#x26;token=fae8b564-6ded-4484-8f91-ecf48acef3db" alt=""><figcaption><p>Consumer Key and Consumer Secret</p></figcaption></figure>
