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

# Connect Magento with Username & Password – StackOne Hub

> Link a Magento account in the StackOne Hub using Username & Password. End-user guide to authorize the integration and start using Magento actions.

> [!WARNING]
>
> Admin access required. Tokens are automatically refreshed every 50 minutes using your admin credentials.

## Find Your Store URL

Identify your Magento store's base URL for API access.

**1. Locate Store URL**

Find your store's base URL from your browser or Magento configuration.

<ul>
  <li>Check your browser's address bar when logged into Magento Admin</li>
  <li>Remove any paths after the domain (e.g., `/admin`, `/index.php`)</li>
  <li>Examples of valid store URLs:</li>
  <li>• `https://mystore.com` (standard installation)</li>
  <li>• `https://shop.example.com` (subdomain)</li>
  <li>• `https://example.com/store` (subdirectory)</li>
  <li>Must use HTTPS for production environments</li>
</ul>

## Prepare Admin Credentials

Ensure you have admin access to your Magento store before connecting.

**1. Create Dedicated API User**

Set up a dedicated admin user for API access (recommended for security).

<ul>
  <li>Log in to Magento Admin Panel</li>
  <li>Navigate to **System** → **Permissions** → **All Users**</li>
  <li>Click **Add New User**</li>
  <li>Create user with username like `api_admin`</li>
  <li>Assign **Administrator** role or custom API role</li>
  <li>Note the username and password for connection</li>
</ul>

**2. Configure API Permissions (Optional)**

For enhanced security, create a custom role with specific permissions.

<ul>
  <li>Go to **System** → **User Roles** → **Add New Role**</li>
  <li>Name it "API User"</li>
  <li>In **Role Resources**, select required permissions</li>
  <li>Assign this role to your API user</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.