> 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

Documentation for Magento 2 credentials. Use these credentials to authenticate Magento 2 in n8n, a workflow automation platform.

You can use these credentials to authenticate the following node:

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

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## 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.
