> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/credentials/magento2.md).

# Magento 2 credentials

You can use these credentials to authenticate the following node:

* [Magento 2](/integrations/builtin/app-nodes/n8n-nodes-base.magento2.md)

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* Create a [Magento (Adobe Commerce)](https://business.adobe.com/products/commerce.html) account.
* Set your store to **Allow OAuth Access Tokens to be used as standalone Bearer tokens**.
  * Go to **Admin > Stores > Configuration > Services > OAuth > Consumer Settings**.
  * Set the **Allow OAuth Access Tokens to be used as standalone Bearer tokens** option to **Yes**.
  * You can also enable this setting from the CLI by running the following command:

    ```
    bin/magento config:set oauth/consumer/enable_integration_as_bearer 1
    ```

This step is necessary until n8n updates the Magento 2 credentials to use OAuth. Refer to [Integration Tokens](https://developer.adobe.com/commerce/webapi/get-started/authentication/gs-authentication-token/#integration-tokens) for more information.

## Supported authentication methods <a href="#supported-authentication-methods" id="supported-authentication-methods"></a>

* API access token

## Related resources <a href="#related-resources" id="related-resources"></a>

Refer to [Magento's API documentation](https://developer.adobe.com/commerce/docs/) for more information about the service.

## Using API access token <a href="#using-api-access-token" id="using-api-access-token"></a>

To configure this credential, you'll need:

* A **Host**: Enter the address of your Magento store.
* An **Access Token**: Get an access token from the [**Admin Panel**](https://docs.magento.com/user-guide/stores/admin.html):
  1. Go to **System > Extensions > Integrations**.
  2. Add a new Integration.
  3. Go to the **API** tab and select the Magento resources you'd like the n8n integration to access.
  4. From the **Integrations** page, **Activate** the new integration.
  5. Select **Allow** to display your access token so you can copy it and enter it in n8n.


---

# 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.n8n.io/integrations/builtin/credentials/magento2.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.
