Skip to main content

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

Model Gateway

Call every model enabled in your workspace through one endpoint, https://gateway.langdock.com, in the OpenAI or Anthropic format, with a personal Model Gateway key. The Model Gateway is rolling out.
  • Quickstart - Your first request with curl, the OpenAI SDK or the Anthropic SDK
  • Connect coding tools - Claude Code, Codex, Cursor, GitHub Copilot, OpenCode and Claude Desktop
  • Limits and usage - Spend limits, rate limits, cached tokens and cost per request
  • Errors - What each error means and how to fix it

Completion API

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

Embedding API

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

Agent API

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

Knowledge Folder API

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

Prompt Library API

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

Integrations API

Create and manage custom integrations with external services programmatically.

Skills API

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

Meetings API

A personal API key with the MEETING_READ_API scope reads notes and transcripts of meetings its owner recorded, including meetings that are not in a library folder. A workspace admin allows Meetings Read API under Personal API key scopes, and the owner selects it on a new key. That owner needs access to Meetings. A workspace API key with the same scope reads notes and transcripts of meetings in folders shared with the whole workspace. General access has to be on for Meetings before an admin can grant the scope.

Usage Export API

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

Workflow API

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

Scheduled Tasks API

List, create, update, pause, and run tasks owned by a personal API key’s member or a workspace API key’s service account.

User Management API

Programmatically invite users, list assignable roles, change an active member’s system role and custom roles, manage groups and their members, and deactivate members.
  • Invite Users - Invite users to your workspace via email
  • Update User Role - Change a member’s system role, or replace their custom roles
  • List Roles - List the system roles and custom roles you can assign
  • Groups - List, create, update, and delete groups, and add or remove members
  • Deactivate User - Remove a user from your workspace

Billing API

Change member plans, workspace and group limits, and agent budgets on Cloud and on Dedicated deployments. Dedicated deployments use bring-your-own-keys. A Cloud workspace uses ai-models-included when Langdock provides the models, and bring-your-own-keys when it brings its own keys.
  • Billing API Overview - Authentication, billing mode, and shared rules
  • Workspace settings - Read and update workspace limits and plan budgets
  • Plans - Count active members on each plan
  • Users - Read members, change plans, and set extra usage budgets
  • Usage requests - List, read, and decline requests for more usage
  • Groups - Read groups and set a monthly budget for each member
  • Agents - Read and update agent budgets

Audit Logs API

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

Governance API

Read review and compliance status for workspace agents, and disable or re-enable an agent with a stored reason.

Compliance API

Export the parameters and return values of tools used in conversations. The host is https://app.langdock.com.

Getting Started

Base URL

For standard Langdock Cloud users, use the following base URL for all API requests:
The Compliance API uses https://app.langdock.com.

Model Gateway

Model calls with a personal Model Gateway key go to https://gateway.langdock.com instead. Agent runs, embeddings, workspace keys and every Platform API stay on https://api.langdock.com. See Hosts.

Authentication

All API requests require authentication using a Bearer token:
Which key you need depends on what you call and who the integration acts as: Create personal keys in your account settings, or ask a workspace admin for a workspace key. See API keys for a full comparison and a decision guide. Before the Model Gateway reaches your workspace, a personal key can hold model access and platform scopes at the same time. Security Note:
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.

Rate Limits

API requests are subject to rate limiting to ensure fair usage and system stability. See Limits and usage for spend limits, cached tokens, agent runs and the Model Gateway. The default limits are 500 RPM (requests per minute) and 500,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. Models published by OpenAI have a default of 1,000,000 TPM. Cache reads count toward TPM the way the serving provider counts them: not on Anthropic, Amazon Bedrock and Claude on Vertex AI, in full on all other providers. Agent runs through the API count toward the same limits. Workspace admins who are not on BYOK can request higher limits from Model quotas in Settings > Workspace > Products > API, or from Model Gateway > Limits once the Model Gateway is enabled. A higher requests-per-minute or tokens-per-minute quota does not change the price per token. On Langdock Cloud, admins can set TPM for custom models in the same API settings; it caps the estimated size of a single request. On dedicated deployments, admins can also set custom limits per model in the same API settings. See Workspace Settings.

Key Features

GDPR Compliant

All API operations maintain full GDPR compliance with data processing in EU regions

Multiple Models

Access models from OpenAI, Anthropic, Mistral, and more through a unified interface

Enterprise Security

SOC 2 certified infrastructure with end-to-end encryption and audit logging

BYOK Support

Bring Your Own Key (BYOK) option for enhanced control over API access

Cookbook

Self-contained, runnable recipes for building on Langdock

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.