> ## 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 Client Credentials – StackOne Hub

> Link a Udemy account in the StackOne Hub using Client 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.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate API Credentials</h2>

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

  <Steps>
    <Step title="Navigate to APIs and Integrations">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In your Udemy Business account, go to <strong>Manage</strong> > <strong>Settings</strong> > <strong>APIs and Integrations</strong>.</p>
      </div>
    </Step>

    <Step title="Generate REST API Credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Look for the REST API section and click on <strong>Generate</strong> or <strong>Create Credentials</strong>.</p>

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

    <Step title="Copy Client ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy the <strong>Client ID</strong> value. This is a long alphanumeric string that identifies your API client.</p>
      </div>
    </Step>

    <Step title="Copy Client Secret">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy the <strong>Client Secret</strong> value. This is a sensitive credential - store it securely.</p>

        <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>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find Your Company Subdomain</h2>

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

  <Steps>
    <Step title="Identify Your Subdomain">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Look at your Udemy Business URL when logged in. The subdomain is the first part of the URL.</p>

        <ul>
          <li>Example URL: <strong>[https://mycompany.udemy.com](https://mycompany.udemy.com)</strong></li>
          <li>Company Subdomain: <strong>mycompany</strong></li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find Your Organisation ID</h2>

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

  <Steps>
    <Step title="Navigate to API Documentation">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In your Udemy Business account, go to <strong>Manage</strong> > <strong>Settings</strong> > <strong>API</strong> > <strong>API Documentation</strong>.</p>
      </div>
    </Step>

    <Step title="Locate Your Account ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Scroll down to the section titled <strong>"Your API Client and Your Account Id"</strong> to find your Udemy Business Account ID.</p>

        <ul>
          <li>This is a numeric value (e.g., 100028)</li>
          <li>Copy this value for the Organisation ID field</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Client ID</strong></li>
        <li><strong>Client Secret</strong></li>
        <li><strong>Company Subdomain</strong></li>
        <li><strong>Organisation ID</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></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>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
