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

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

> [!WARNING]
>
> Only a workspace admin can create a workspace API key. The two required scopes also let the key invite and deactivate members, change their roles and change their plans, which can add billed seats.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Create the workspace API key

Langdock runs a workspace API key as its own service account, and that service account must keep an active Admin membership for billing calls to work.

**1. Name a new API key**

Open [Workspace Settings > Products > API](https://app.langdock.com/settings/workspace/products/api) in Langdock.

<ul>
  <li>Click **Create API key**.</li>
  <li>**Name**: `StackOne`</li>
</ul>

**2. Select the required scopes**

Enables actions: Bulk Set BYOK User Plans, Bulk Set Included User Plans, Deactivate User, Decline BYOK Usage Request, Decline Included Usage Request, Get BYOK Agent Budget, Get BYOK Billing Settings, Get BYOK Group, Get BYOK Plan Counts, Get BYOK Usage Request, Get BYOK User, Get Billing Mode, Get Included Agent Budget, Get Included Billing Settings, Get Included Group, Get Included Seats, Get Included Usage Request, Get Included User, Get Unified User, Invite Users, List BYOK Agent Budgets, List BYOK Groups, List BYOK Usage Requests, List BYOK Users, List Included Agent Budgets, List Included Groups, List Included Usage Requests, List Included Users, List Roles, List Unified Users, Set BYOK Group Monthly Budget, Set BYOK User Extra Usage Budget, Set BYOK User Plan, Set Included Group Extra Usage Limit, Set Included User Extra Usage Limit, Set Included User Plan, Update BYOK Agent Budget, Update BYOK Billing Settings, Update Included Agent Budget, Update Included Billing Settings, Update User Role

Select both scopes below.

<ul>
  <li>**User management**</li>
  <li>**Billing API**, in the **Billing** group after **User management**</li>
</ul>

<ul>
  <li>
    BILLING\_API
  </li>

  <li>
    USER\_MANAGEMENT\_API
  </li>
</ul>

**3. Select the scopes for other actions**

Enables actions: Create Agent, Create Agent Completion, Create Anthropic Message, Create Integration, Create Integration Action, Create Integration Trigger, Create Knowledge Base, Create Mistral FIM Completion, Create OpenAI Chat Completion, Create OpenAI Embeddings, Create OpenAI Image, Create OpenAI Response, Create Prompt, Create Prompt Folder, Create Scheduled Task, Create Skill, Create Workflow, Delete Attachment, Delete Integration Action, Delete Integration Trigger, Delete Knowledge Base File, Delete Prompt, Delete Prompt Folder, Delete Scheduled Task, Delete Skill, Delete Workflow, Disable Agent, Disable Governance Agent, Export API Key Usage, Export API Key Usage CSV, Export API Key Usage JSON, Export Agent Usage, Export Agent Usage CSV, Export Agent Usage JSON, Export Model Usage, Export Model Usage CSV, Export Model Usage JSON, Export Project Usage, Export Project Usage CSV, Export Project Usage JSON, Export User Usage, Export User Usage CSV, Export User Usage JSON, Export Workflow Runs, Export Workflow Usage, Export Workflow Usage CSV, Export Workflow Usage JSON, Generate Google Content, Get Agent, Get Compliance Conversation, Get Governance Agent, Get Integration, Get Integration Icon, Get Knowledge Base File, Get Prompt, Get Prompt Folder, Get Scheduled Task, Get Skill, Get Skill File, Get Workflow, Grant Knowledge Base Access, List Agent Models, List Agents, List Audit Logs, List Compliance Agent Conversations, List Compliance Conversations, List Google Models, List Governance Agents, List Integrations, List Knowledge Base Files, List Knowledge Bases, List Prompt Folders, List Prompts, List Scheduled Tasks, List Skills, List Workflow Runs, List Workflows, Pause Scheduled Task, Publish Agent, Publish Workflow, Resume Scheduled Task, Revoke Knowledge Base Access, Run Scheduled Task, Search Knowledge Bases, Update Agent, Update Integration, Update Integration Action, Update Integration Auth, Update Integration Trigger, Update Knowledge Base, Update Knowledge Base Access, Update Prompt, Update Prompt Folder, Update Scheduled Task, Update Skill, Update Workflow

Select the scopes of the actions you plan to use, and leave the rest out. Langdock labels these **Agent API (full access)**, **Audit log**, **Completion API**, **Compliance API**, **Embedding API**, **Governance API**, **Scheduled Tasks API**, **Workflow Read API**, **Workflow Write API** and **Workflow Deletion API**. The scopes for custom integrations, Knowledge bases and attachments, prompts, Skills and usage exports are shown below by what they allow.

<ul>
  <li>On Langdock Cloud, **Compliance API** shows only after Langdock turns the Compliance API on for the workspace.</li>
  <li>Confirm to create the key.</li>
</ul>

<ul>
  <li>
    ASSISTANT\_API
  </li>

  <li>
    AUDIT\_LOG\_API
  </li>

  <li>
    AUTOMATION\_API
  </li>

  <li>
    COMPLETION\_API
  </li>

  <li>
    COMPLIANCE\_API
  </li>

  <li>
    EMBEDDING\_API
  </li>

  <li>
    GOVERNANCE\_API
  </li>

  <li>
    INTEGRATION\_API
  </li>

  <li>
    KNOWLEDGE\_FOLDER\_API
  </li>

  <li>
    PROMPT\_API
  </li>

  <li>
    SKILL\_API
  </li>

  <li>
    USAGE\_EXPORT\_API
  </li>

  <li>
    WORKFLOW\_API
  </li>

  <li>
    WORKFLOW\_DELETE\_API
  </li>

  <li>
    WORKFLOW\_WRITE\_API
  </li>
</ul>

**4. Copy the key**

Copy the **API key** across. Langdock shows it only once.

**5. Enter the deployment address**

On a Dedicated deployment, the URL is the address you open Langdock at. Copy the **Dedicated Deployment URL** across. On Langdock Cloud, leave it empty.

<ul>
  <li>Format: `https://{your-domain}`</li>
  <li>Example: if Langdock's API settings open at `https://langdock.yourcompany.com/settings/workspace/products/api`, enter `https://langdock.yourcompany.com`</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.