> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Introduction

> Integrate Langdock's powerful AI capabilities into your applications with our comprehensive API suite

## Overview

The Langdock API provides programmatic access to state-of-the-art AI models while maintaining enterprise-grade security and compliance. Whether you're building custom applications, automating workflows, or enhancing existing systems, our API offers the flexibility and power you need.

## Available APIs

### Completion API

Access models from OpenAI, Anthropic, Mistral, and Google for text generation, analysis, reasoning, and image generation.

* [OpenAI Chat Completions](/en/developer/completion-api/openai) - GPT and reasoning models
* [OpenAI Responses](/en/developer/completion-api/openai-responses) - Stateless Responses format for Codex and compatible clients
* [OpenAI Image Generations](/en/developer/completion-api/openai-images) - One standard image as base64
* [Anthropic API](/en/developer/completion-api/anthropic) - Claude models
* [Google API](/en/developer/completion-api/google) - Gemini models
* [Mistral API](/en/developer/completion-api/mistral) - Mistral models

### Embedding API

Generate high-quality embeddings for semantic search, similarity matching, and RAG applications.

* [OpenAI Embeddings](/en/developer/embedding-api/openai-embedding) - Text embeddings for various use cases

### Agent API

Create and manage custom AI agents programmatically with specialized knowledge and capabilities.

* [Agent API Guide](/en/developer/agents-api/agent-api-guide) - Complete guide to using agents
* [Managing Agents](/en/developer/agents-api/agent) - Create and configure agents
* [Agent Models](/en/developer/agents-api/agent-models) - Available models for agents
* [Upload Attachments](/en/developer/agents-api/upload-attachments) - Add documents to agents

### Knowledge Folder API

Manage Knowledge bases programmatically for RAG and document processing. These resources appear as Knowledge bases in the Library.

* [Sharing](/en/developer/knowledge-folder-api/sharing): Share Knowledge bases
* [List Knowledge bases](/en/developer/knowledge-folder-api/list-knowledge-folders): Discover Knowledge bases the key can use
* [Share access](/en/developer/knowledge-folder-api/share-access): Grant, change, or revoke access
* [Update Knowledge base](/en/developer/knowledge-folder-api/update-folder): Rename a Knowledge base
* [Upload Files](/en/developer/knowledge-folder-api/upload-file): Add documents
* [Search](/en/developer/knowledge-folder-api/search-knowledge-folder): Search within Knowledge bases

### Prompt Library API

Create, update, and manage prompts and prompt folders programmatically. Requests require an API key with the `PROMPT_API` scope.

* [Prompt Library Overview](/en/developer/prompts-api/prompts-overview) - Complete guide to the Prompt Library API

### Integrations API

Create and manage custom integrations with external services programmatically.

* [Integrations Overview](/en/developer/integrations-api/integrations-overview) - Complete guide to integrations API

### Skills API

Create, import, update, and manage reusable Skills programmatically. Requests require an API key with the `SKILL_API` scope.

* [Skills Overview](/api-endpoints/skills/skills-overview) - Complete guide to the Skills API

### Meetings API

When **General access** is on for Meetings, a workspace API key with the `MEETING_READ_API` scope can read notes and transcripts of meetings in folders shared with the whole workspace.

### Usage Export API

Export usage data for analytics, billing, and compliance reporting.

* [Usage Export API Overview](/en/developer/usage-export-api/intro-to-usage-export-api) - Export users, agents, models, projects, and workflows

### Workflow API

List, create, update, publish, and delete workflows, read paginated run history, or export flattened run rows.

* [Workflow API Overview](/en/developer/workflow-api/workflows-overview) - Manage workflows and read paginated runs
* [Workflow Run Export](/en/developer/workflow-api/intro-to-workflow-api) - Export flattened run and node execution rows

### Scheduled Tasks API

List, create, update, pause, and run tasks owned by a workspace API key.

* [Scheduled Tasks API Overview](/en/developer/scheduled-tasks-api/scheduled-tasks-overview) - Manage scheduled tasks for a workspace API key

### User Management API

Programmatically invite users, change an active member's system role, and deactivate members.

* [Invite Users](/en/developer/user-management-api/invite) - Invite users to your workspace via email
* [Update User Role](/en/developer/user-management-api/update-user-role) - Change a member's system role to member, editor, or admin
* [Deactivate User](/en/developer/user-management-api/deactivate-user) - Remove a user from your workspace

### Audit Logs API

Retrieve a record of workspace activity for security monitoring and compliance.

* [Audit Logs API Overview](/en/developer/audit-logs-api/intro-to-audit-logs-api) - Query and filter workspace audit log entries

## Getting Started

### Base URL

<Tabs>
  <Tab title="Langdock Cloud">
    For standard Langdock Cloud users, use the following base URL for all API requests:

    ```
    https://api.langdock.com
    ```
  </Tab>

  <Tab title="Dedicated Deployment">
    If your organization uses a dedicated Langdock deployment (custom domain), your base URL follows this pattern:

    ```
    https://<your-domain>/api/public
    ```

    For example, if your Langdock instance is at `https://langdock.yourcompany.com`, the API base URL would be:

    ```
    https://langdock.yourcompany.com/api/public
    ```

    <Warning>
      **Common mistake:** Don't forget the `/api/public` prefix when using a dedicated deployment. Using just your domain without this prefix will result in authentication errors or redirects.
    </Warning>
  </Tab>
</Tabs>

### Authentication

All API requests require authentication using a Bearer token:

```bash theme={null}
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.langdock.com/openai/eu/v1/chat/completions
```

Create a [personal API key](/en/using-langdock/account/personal-api-keys) for completion requests under your own identity, or ask a workspace admin for a workspace API key with the scopes your integration needs.

**Security Note:**

<Info>
  Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. Calling the API from the browser (e.g., from JavaScript running in a web page) exposes the Langdock API Key publicly and creates a security risk. Therefore, the Langdock API must be accessed from a secure backend environment. For more information, please see our guide on [API Key Best Practices](/en/admin/ai-adoption-and-rollout/best-practices/api-key-best-practices).
</Info>

### Rate Limits

API requests are subject to rate limiting to ensure fair usage and system stability. The default limits are **500 RPM** (requests per minute) and **150,000 TPM** (tokens per minute). RPM is enforced per workspace, model, and API key. TPM is shared by all API keys using the same model in a workspace. Workspace admins who are not on BYOK can request higher limits from **Model quotas** in **Settings > Workspace > Products > API**. On dedicated deployments, admins can also set custom limits per model in the same API settings. See [Workspace Settings](/en/admin/workspace/workspace#api).

## Key Features

<CardGroup cols={2}>
  <Card title="GDPR Compliant" icon="shield-check">
    All API operations maintain full GDPR compliance with data processing in EU regions
  </Card>

  <Card title="Multiple Models" icon="layer-group">
    Access models from OpenAI, Anthropic, Mistral, and more through a unified interface
  </Card>

  <Card title="Enterprise Security" icon="lock">
    SOC 2 certified infrastructure with end-to-end encryption and audit logging
  </Card>

  <Card title="BYOK Support" icon="key">
    Bring Your Own Key (BYOK) option for enhanced control over API access
  </Card>

  <Card title="Cookbook" icon="book-open" href="/en/developer/overview/cookbook">
    Self-contained, runnable recipes for building on Langdock
  </Card>
</CardGroup>

## Use Cases

* **Custom Applications**: Build AI-powered features into your applications
* **Workflow Automation**: Automate document processing and analysis
* **Data Analysis**: Extract insights from large volumes of text data
* **Content Generation**: Create high-quality content at scale
* **Semantic Search**: Implement intelligent search across your knowledge base

## Support

For API support and questions reach out to us at [support@langdock.com](mailto:support@langdock.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.