> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nemu.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Wake

> How to connect your Wake Store to Nemu Dashboard

### 1. Creating and Authenticating the Token in Wake

Wake API authentication is done through a **Token**.
This token validates the merchant's identity and grants permission to access store information.

1. Go to **Settings** > **Integrations** > **Tokens**.
2. Click on **Add Token**.
   <img src="https://mintcdn.com/nemu/KidzCpESYpocg5v4/assets/pages/integracoes/wake/1.png?fit=max&auto=format&n=KidzCpESYpocg5v4&q=85&s=1022332c13299b43454a68a2bf845f8c" alt="" width="1894" height="812" data-path="assets/pages/integracoes/wake/1.png" />
3. Define the **Application Name** to make identification easier.
   <img src="https://mintcdn.com/nemu/KidzCpESYpocg5v4/assets/pages/integracoes/wake/4.png?fit=max&auto=format&n=KidzCpESYpocg5v4&q=85&s=54c446f99a2b58ce5d99b73af5db3d13" alt="" width="956" height="264" data-path="assets/pages/integracoes/wake/4.png" />
4. Configure the **permissions** that the token will have access to, ensuring it can only access authorized information.
5. In **Permissions**, select the minimum recommended access for Nemu integration:

* In the **GestorScript** category, select the **`POST`** method for `/gestorscripts/scripts`

<img src="https://mintcdn.com/nemu/Jt8SloPyT7xBtoLI/assets/pages/integracoes/wake/api-1.jpeg?fit=max&auto=format&n=Jt8SloPyT7xBtoLI&q=85&s=c53c70fdfb6bb925fb52be5eeac8d2e4" alt="" width="1274" height="119" data-path="assets/pages/integracoes/wake/api-1.jpeg" />

* In the **Webhook** category, select the **`POST`** method for `/webhook/inscricao`

<img src="https://mintcdn.com/nemu/Jt8SloPyT7xBtoLI/assets/pages/integracoes/wake/api-2.jpeg?fit=max&auto=format&n=Jt8SloPyT7xBtoLI&q=85&s=d1869054971af792f215c0856f816a4a" alt="" width="1280" height="114" data-path="assets/pages/integracoes/wake/api-2.jpeg" />

* In the **Orders** category, select the **`GET`** method for `/pedidos` and `/pedidos/{pedidoId}`

<img src="https://mintcdn.com/nemu/Jt8SloPyT7xBtoLI/assets/pages/integracoes/wake/api-3.jpeg?fit=max&auto=format&n=Jt8SloPyT7xBtoLI&q=85&s=83e2ef9601c77e7e82749405d8bdd1f6" alt="" width="1280" height="381" data-path="assets/pages/integracoes/wake/api-3.jpeg" />

6. Enter the **technical responsible email**.
7. Click on **Save**.

### 2. Adding Content Security Policies (CSP) in Wake

For Nemu scripts and network calls to work correctly on your Wake store, add the following trusted origins to the **Security Policies** (CSP) in the Wake panel.

1. In the Wake panel, go to **Settings** → **Security** → **Security Policies** (or search for *Security Policies*).

   <img src="https://mintcdn.com/nemu/KidzCpESYpocg5v4/assets/pages/integracoes/wake/5.png?fit=max&auto=format&n=KidzCpESYpocg5v4&q=85&s=9e2f624ead6a0c486e0d38a5edc5272c" alt="" width="998" height="581" data-path="assets/pages/integracoes/wake/5.png" />

2. Add **these URLs** to the allowed domains list:

   * `https://trackings.nemu.com.br`
   * `https://openfpcdn.io`
   * `https://ipinfo.io`
   * `https://api.ipify.org`
   * `https://api.bigdatacloud.net`

### 3. Connecting Wake to Nemu

1. In the Nemu Dashboard, go to the **Platforms** menu.

2. Click on **Wake** and then on the **Connect** button.

   <img src="https://mintcdn.com/nemu/KidzCpESYpocg5v4/assets/pages/integracoes/wake/2.png?fit=max&auto=format&n=KidzCpESYpocg5v4&q=85&s=390921e35085fc22a3df7c9898ebed0f" alt="" width="1970" height="1284" data-path="assets/pages/integracoes/wake/2.png" />

3. Fill in the requested fields:

   * **Store URL** (your Wake store address)
   * **Token** (copied earlier in the Wake panel)

4. Click on **Save**.

   <img src="https://mintcdn.com/nemu/KidzCpESYpocg5v4/assets/pages/integracoes/wake/3.png?fit=max&auto=format&n=KidzCpESYpocg5v4&q=85&s=232283fdde9ddf6b490ec2eac088bcf5" alt="" width="508" height="338" data-path="assets/pages/integracoes/wake/3.png" />
