> ## 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 leading language models from OpenAI, Anthropic, Mistral, and Google for text generation, analysis, and reasoning tasks.

* [OpenAI API](/en/developer/completion-api/openai) - GPT and reasoning models
* [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 your organization's knowledge base programmatically for RAG and document processing.

* [Sharing](/en/developer/knowledge-folder-api/sharing) - Share knowledge folders
* [Upload Files](/en/developer/knowledge-folder-api/upload-file) - Add documents
* [Search](/en/developer/knowledge-folder-api/search-knowledge-folder) - Search within folders

### Integrations API

Create and manage custom integrations with external services programmatically.

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

### Usage Export API

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

* [Usage Export Guide](/en/developer/usage-export-api/intro-to-usage-export-api) - Export users, agents, models, and project data

### User Management API

Programmatically manage workspace users, including automated invitation flows.

* [Invite Users](/en/developer/user-management-api/invite) - Invite users to your workspace via email

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

**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. Rate limits are applied **per model**. The default limits are **500 RPM** (requests per minute) and **60,000 TPM** (tokens per minute). If you consistently hit these limits, reach out to our support team to discuss an increase in rate limits.

For **BYOK workspaces**, admins can configure custom limits per model in **Settings > Models**.

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