# Add account

{% hint style="info" %}
**Good to know:** You can add multiple accounts if you happen to have a partnership with several Mirakl vendors
{% endhint %}

## Step 1 — Choose Your Authentication Method

You can now connect to Mirakl using **either an API Key** or **OAuth 2.0**.\
OAuth 2.0 is the recommended method for improved security and easier credential management.

### Option 1 — API Key Authentication

To generate the Mirakl API Key (See screenshot below):

1. Log into your desired Mirakl account: https\://\[ACCOUNT].mirakl.net/mmp/shop/user/api
2. Click on your email address on the top right corner
3. Select the tab 'API Key'
4. Copy your API Key

<figure><img src="https://2805882550-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwYKotMA1P52JalJtS5yp%2Fuploads%2FLMcBJfhqpBmy22Kl06SZ%2Fimage.png?alt=media&#x26;token=84800c89-3cf1-4465-9407-25f38d321255" alt=""><figcaption></figcaption></figure>

### **Option 2 — OAuth 2.0 Authentication (New)**

If your Mirakl instance supports OAuth 2.0, you can authenticate using your **Client ID** and **Client Secret** instead of an API key.

You’ll need to provide:

| Field                  | Description                                                                                    |
| ---------------------- | ---------------------------------------------------------------------------------------------- |
| **Client ID**          | The client identifier generated in your Mirakl developer portal.                               |
| **Client Secret**      | The secret associated with your Client ID.                                                     |
| **Target Environment** | The Mirakl environment you wish to connect to (e.g., development, pre-production, production). |

📘 **How to generate your Client ID and Secret:**\
Follow Mirakl’s official guide here:\
👉 [Generate Access Tokens and Client Credentials](https://help.mirakl.com/bundle/customers/page/topics/Mirakl/get_started/generate_access_tokens.html#clientid)

<figure><img src="https://2805882550-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwYKotMA1P52JalJtS5yp%2Fuploads%2F7PTwLUDWc6tW0G1PrFgB%2Fimage.png?alt=media&#x26;token=fe601569-da17-4265-97ec-6436971ede71" alt=""><figcaption></figcaption></figure>

## Step 2 — Create a New Mirakl Account

To create a new Mirakl account, follow the steps below:

1. Sign in to your Juble.io account using your credentials.
2. In the main menu, go to the "Channels" section.

<figure><img src="https://2805882550-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwYKotMA1P52JalJtS5yp%2Fuploads%2FRjBIkWueKVLmOXrRMsl6%2Fimage.png?alt=media&#x26;token=070b8c80-019d-4040-865e-034a23a55733" alt=""><figcaption></figcaption></figure>

3\. Enter the desired information regarding, the name of the account, the Mirakl URL and the API Key

<figure><img src="https://2805882550-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwYKotMA1P52JalJtS5yp%2Fuploads%2FVQy932xOwwBVaMh5258k%2Fimage.png?alt=media&#x26;token=0bba6516-b160-4228-9b95-8a435ac35426" alt=""><figcaption></figcaption></figure>

4\. Verify the connection and Save the information

{% hint style="success" %}
**Congratulations!** Your account is now setup and will receive new tickets soon!
{% endhint %}

{% hint style="info" %}
**Good to know:** New messages are pulled every 2 mins.
{% endhint %}
