> For the complete documentation index, see [llms.txt](https://docs.gearplug.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gearplug.io/english/set-up-your-integrations/magento/create-your-magento-connection.md).

# Create your Magento connection

{% hint style="info" %}
**Oauth connection**: The first step is to install GearPlug in your account so that GearPlug may access the data.
{% endhint %}

To create your Magento Plug, you’ll need your website’s URL and an API token. Below, we show you how to get it:

1. **Head over to “System” and “Integrations”** in the left-hand menu of your Magento dashboard.

<figure><img src="https://lh7-us.googleusercontent.com/xEP5BedTwVPWyiGw6LeyPTtrJ3_V5L8oHKDgZjzwZ3BNDYYZh8YJesCT6Y5Lo0hnCJ7aVfARYcp25KFfNOt5c3wdVrvnJPOdHh0zs3pfpAVrce1SI0BqoiRlyx3Y-QeN9ed7tMqOC0CTtYQSscEpTQ" alt=""><figcaption></figcaption></figure>

2. **Click “Add New Integration”** above the integrations list.

<figure><img src="https://lh7-us.googleusercontent.com/UjGG0Q3NSnbRDpY5N_HyPmr-zcgiYCPHS8NAlTYR5lmCpCQ_gQcFAyqUTDe0G_Dici99bWhjECfauyOkydMkgbriDJggeYpHlGA5pq9wx9owIkrwwntAj5ccPj2e_ZKcBurmZWMrNIdrGRI0UEBn9g" alt=""><figcaption></figcaption></figure>

3. **Fill in the required fields** in the form. You only need a name for the integration and your user password. Then, head over to “API”.

<figure><img src="https://lh7-us.googleusercontent.com/gO2GQ17_h6Wvurg39wbbmWieo_o9xaLEI4soXucOyNdeouNLiQMZLhOUTSk34m3kXhynZEofYOaQE9ZW7AkeQx3hUuZdyoPUhBCqkT81hv9bCXUrAsH9pA-2cFim1fV1sV1_5NQAdIkSP2Xkm4xdwQ" alt=""><figcaption></figcaption></figure>

4. **Grant the necessary permissions** for the integrations. You only need access to the sales, catalog, and customers folders. Click “Save and Activate” and then “Allow” when asked to confirm.

<figure><img src="https://lh7-us.googleusercontent.com/GuIfii44w3Wp0dlgL81lNSZItySPBmkTyOio5GdZ6zGrqnHkR1vpJWiKK4hlY4HkknNw--m1FKemZqlM4EphDuJeSYjDCpsmxwBRjhevWF9ej0rrTkLYC6pdXRg8d_WlsNeP_jXnGD2vrXtH3f7BTQ" alt=""><figcaption></figcaption></figure>

5. **Copy your Access Token** on the next screen. You’ll need it for your Plug. If you need the code in the future, you can find it in the Integrations list.

<figure><img src="https://lh7-us.googleusercontent.com/9Hz2_eDdV1mXm4mM1nwuXOhmY-gQiUHs2BePYQAZBYbyg15d-m1fEnkKd50J6MUTuNh6MLfpfbv01Z8-BY86Fn4E8lGtN8ZjXVjHoRe_QXlC8tofirELTZ8jArtyOCdMzQhl0bqBgMR1nxL4STH0lw" alt=""><figcaption></figcaption></figure>

### Set up access

1. **Head over to “My Apps”** at the top of your GearPlug interface.

<figure><img src="https://lh7-us.googleusercontent.com/a2-N8FZ6jcWJjxqlAlz4nTQaKvjT8BqZ9x52TNOXG2_0YtI6xPZQsz1tjRSNGWCNevJTXxO3RBjBHn-wTZ0tzW946MhG6FK64k11dSrYvjrkrNRnpqJq70MmP_U0xo9wykXJoZeg9-aFC3iawQ9lVQ" alt=""><figcaption></figcaption></figure>

2. **Select “Magento”** in the drop-down menu under “New connection” and click “Create.”

<figure><img src="https://lh7-us.googleusercontent.com/yYb_zjFR02GXM2dhhoI_B08epBPy2oAk3Mi6UPWUsiUxEeQog_3s6xBmAi77aoR5jt35yoFiCgKWKPl0GQrZsswibmlvNDXU7sDCHRm4oJK7M399BsfY6jAROFdvK2tTxHIq2hu-Ic0D2xIOuyQm_A" alt=""><figcaption></figcaption></figure>

3. **Fill in the required fields**. Make sure to paste your website’s URL up to the “/” that comes after “admin.” You can find your Access Token following the previous steps. Click “Continue” to finish the setup.

<figure><img src="https://lh7-us.googleusercontent.com/oW6B5CfegSshvHM1zOdscf2UE8zAF9ZtG4DDsLJ0SWmUiAAVksKC9mm85aJhAJcn24itZVlT7yqXWPpg8zEhFzPFPfwPTgJ7QCiAjD7QQ27n7pRLcn2QmhJu0TwO5wUpvjQExq-caOG3BVOr4G0vuw" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.gearplug.io/english/set-up-your-integrations/magento/create-your-magento-connection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
