> ## 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 MX with OAuth 2.0 (Processor Token) – StackOne Hub

> Link a MX account in the StackOne Hub using OAuth 2.0 (Processor Token). End-user guide to authorize the integration and start using MX actions.

> [!WARNING]
>
> The access token expires after 60 days and cannot be refreshed. When it expires, get a new authorization code from the MX client and update the connection.

## Get your processor credentials

MX issues processor credentials to payment processors that work with an MX client. The access token they unlock is scoped to the user, member and account the client chose.

**1. Copy your processor ID and API key**

Use the processor credentials MX issued for the environment you are connecting. Copy the **processor\_id** across to **Processor ID** and the **api\_key** across to **API Key**. Choose **Integration (Sandbox)** for INT credentials or **Production** for production credentials.

**2. Get an authorization code from the MX client**

Ask the MX client to request an authorization code for the account it wants to share. Copy the **Authorization Code** across. The code can be exchanged only once.

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