> ## 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 Udemy with API Credentials – StackOne Hub

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

> [!WARNING]
>
> You must have Admin access to your Udemy Business account to generate API credentials.

## Generate API Credentials

Create API credentials (Client ID and Client Secret) to authenticate with the Udemy Business API.

**1. Navigate to APIs and Integrations**

In your Udemy Business account, go to **Manage** > **Settings** > **APIs and Integrations**.

**2. Generate REST API Credentials**

Look for the REST API section and click on **Generate** or **Create Credentials**.

<ul>
  <li>If credentials already exist, you can view or regenerate them</li>
  <li>Only authorized administrators can generate REST API keys</li>
</ul>

**3. Copy Client ID**

Copy the **Client ID** value. This is a long alphanumeric string that identifies your API client.

**4. Copy Client Secret**

Copy the **Client Secret** value. This is a sensitive credential - store it securely.

<ul>
  <li>The Client Secret may only be shown once after generation</li>
  <li>If you lose it, you may need to regenerate new credentials</li>
</ul>

## Find Your Company Subdomain

Your Company Subdomain is part of your Udemy Business URL and is required for API authentication.

**1. Find your subdomain**

Your subdomain is the first part of the URL you see when signed in to Udemy Business.

<ul>
  <li>Format: `https://{subdomain}.udemy.com`</li>
  <li>Example: if your URL is `https://mycompany.udemy.com`, your **Company Subdomain** is `mycompany`</li>
</ul>

## Find Your Organisation ID

Your Organisation ID (Account ID) is required for API calls and can be found in the API documentation section.

**1. Navigate to API Documentation**

In your Udemy Business account, go to **Manage** > **Settings** > **API** > **API Documentation**.

**2. Locate Your Account ID**

Scroll down to the section titled **"Your API Client and Your Account Id"** to find your Udemy Business Account ID.

<ul>
  <li>This is a numeric value (e.g., 100028)</li>
  <li>Copy this value for the Organisation ID field</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.