> ## 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 Scaleway with API Key (Multiple Companies) – StackOne Hub

> Link a Scaleway account in the StackOne Hub using API Key (Multiple Companies). End-user guide to authorize the integration and start using Scaleway actions.

> [!WARNING]
>
> Creating the application, policy and API key needs an account that can manage IAM in the Scaleway Organization. The API key inherits the permissions of its bearer, so the policy you attach decides what this connection can read and change.

## Generating an API key

StackOne connects as an IAM application in your Scaleway Organization. Create the application,\
grant it permissions with a policy, then generate the API key whose Secret Key StackOne uses.

**1. Create the application**

Sign in to the [Scaleway console](https://console.scaleway.com), then open **Management & Governance** > **IAM** in the sidebar.

<ul>
  <li>Open the **Applications** tab.</li>
  <li>Click **Create application**.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Description**: What the application is used for</li>
  <li>Click **Create application**.</li>
</ul>

![The IAM Applications tab with the Create application button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-create-application.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=6f955d8d2d53e7091ed2406e5a3f3c39)

**2. Create the policy**

A new application holds no permissions until a policy grants them. In **IAM**, open the **Policies** tab and click **Create policy**.

<ul>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Principal type**: **Applications**</li>
  <li>**Application name**: the application you created</li>
</ul>

![The Assign policy to principal section with the application selected in the Application name list](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-policy-principal.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=ebc6212d7f3e9eb453baae40e51e276d)

**3. Add the permission sets**

Under **Add rules**, open **Select permission sets** and choose what the connection may do.

<ul>
  <li>In **Category**, select **Organization management**.</li>
  <li>In **Products**, select **IAM**, then select **IAMManager**.</li>
  <li>In **Products**, select **Organization**, then select **OrganizationManager**.</li>
  <li>For a read-only connection, select **IAMReadOnly** and **OrganizationReadOnly** instead.</li>
  <li>Click **Next**.</li>
</ul>

![The Select permission sets panel with the IAM product open and IAMManager selected](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-permission-sets.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=917a752a52bdad57c7d94e0bdb083f5f)

**4. Set the scope and create the policy**

The scope decides which Projects the permission sets apply to.

<ul>
  <li>Select **Organization-level**.</li>
  <li>Click **Next**.</li>
  <li>Click **Confirm rule**.</li>
  <li>Click **Create Policy**.</li>
</ul>

![The Confirm rule and Create Policy buttons at the end of the rule](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-confirm-rule.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=ac11d4c2a0631071e5c12ac400c2af70)

**5. Generate the API key**

In **IAM**, open the **API keys** tab and click **Generate API key**.

<ul>
  <li>**Select API key bearer**: **An application**</li>
  <li>**Select application**: the application you created</li>
  <li>**API key description**: Where the key is used</li>
  <li>**API key expiration**: the expiry your key rotation policy allows</li>
  <li>**Will this API key be used for Object Storage?**: **No, skip for now**</li>
  <li>Click **Generate API key**.</li>
</ul>

![The Generate an API key dialog with the bearer set to an application](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-generate-api-key.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=90ca4eb543651ba84a114b894a77ae8d)

**6. Copy the Secret Key**

Copy the **Secret Key** into StackOne Hub.

<ul>
  <li>The Secret Key is shown only once, so copy it before you close the dialog.</li>
  <li>Click **Close**.</li>
</ul>

![The generated key showing the Access Key ID and the copy button beside the Secret Key](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-secret-key.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=2566f11d8107cd9bf47588301bd2cbc2)

**7. Copy the Organization ID**

Your Organization ID identifies the Scaleway Organization this connection reads. In **IAM**, copy the **Organization ID** shown above the tabs into StackOne Hub.

<ul>
  <li>Format: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`</li>
  <li>An API key belongs to one Organization, so this must be the Organization the key was created in.</li>
</ul>

![The IAM page with the Organization ID and its copy button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/scaleway/images/custom-config-organization-id.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=46cd36c9cde480746c8c1e6457c50c7c)

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