> ## 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 MoEngage with API Key – StackOne Hub

> Link a MoEngage account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using MoEngage actions.

## Find your Workspace ID and data center

MoEngage uses HTTP Basic Auth with your Workspace ID as the username. The data center number tells StackOne which regional MoEngage API host to call.

**1. Sign in to MoEngage**

Sign in to your [MoEngage account](https://app.moengage.com). After sign-in you are redirected to the dashboard for your data center.

<ul>
  <li>Format: `https://dashboard-0X.moengage.com`, where `0X` is your data center number (01–06)</li>
  <li>Example: `https://dashboard-01.moengage.com` means data center `01`</li>
  <li>Select the matching option in the **Data Center** field in StackOne Hub (01 and 04 are US, 02 is EU, 03 is India, 05 is Singapore, 06 is Indonesia).</li>
</ul>

**2. Open the API keys page**

Click **Settings** at the bottom of the left navigation menu, then click **API Keys** under **Account**.

![MoEngage Settings page with the Settings menu item and the API Keys card highlighted](https://mintcdn.com/stackone-60/hNX14Q-u3E7n2nit/connectors/moengage/images/custom-config-open-api-keys.png?fit=max\&auto=format\&n=hNX14Q-u3E7n2nit\&q=85\&s=7646fe6a38bad6bb135ae3e85d0448cb)

**3. Copy your Workspace ID**

The **Workspace ID (earlier app id)** is shown at the top of the **API keys** page.

<ul>
  <li>Click the copy icon next to the **Workspace ID (earlier app id)** value.</li>
  <li>Paste it into the **Workspace ID** field in StackOne Hub.</li>
</ul>

![The API keys page with the copy icon next to the Workspace ID highlighted](https://mintcdn.com/stackone-60/hNX14Q-u3E7n2nit/connectors/moengage/images/custom-config-workspace-id.png?fit=max\&auto=format\&n=hNX14Q-u3E7n2nit\&q=85\&s=097da71a01b301611e8a753299198fee)

## Copying the API keys

The connector uses two of the keys listed with the auth type **Basic Auth (Legacy)** on the **API keys** page. Each key authenticates a different set of MoEngage APIs, so both fields need their own key. Keys made with **Create new key** (auth type **Basic Auth**) are rejected by the campaign, content block, template, business event, and catalog APIs, so use the legacy keys.

**1. Copy the Data and Campaign report keys**

In the **Active API keys** table, find the two keys below and click the copy icon in the **Key** column of each row.

<ul>
  <li>**Data**: paste it into the **Data API Key** field in StackOne Hub. It authenticates user, event, bulk import, segment, subscription preference, and email template actions.</li>
  <li>**Campaign report/Business events/Custom templates/Catalog API/Inform Report**: paste it into the **Campaign Report / Business Events / Templates / Catalog / Inform API Key** field in StackOne Hub. It authenticates campaign, content block, custom template, business event, and catalog actions.</li>
  <li>Store both keys securely for use later.</li>
</ul>

![The Active API keys table with the Data and Campaign report keys and their copy icons highlighted](https://mintcdn.com/stackone-60/hNX14Q-u3E7n2nit/connectors/moengage/images/custom-config-copy-legacy-keys.png?fit=max\&auto=format\&n=hNX14Q-u3E7n2nit\&q=85\&s=1c22dfbc104dd6607bce990e3c4c6fba)

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