Skip to main content
Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
Creates a new custom integration in your workspace. After creation, you can add actions and triggers to the integration.

Required Scopes

This endpoint requires the INTEGRATION_API scope.

Request Parameters

ParameterTypeRequiredDescription
namestringYesIntegration name (max 40 characters)
descriptionstringNoIntegration description (max 90 characters)

Example

const axios = require("axios");

async function createIntegration() {
  const response = await axios.post(
    "https://api.langdock.com/integrations/v1/create",
    {
      name: "My Custom Integration",
      description: "Connects to my internal company API for data retrieval"
    },
    {
      headers: {
        Authorization: "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
      }
    }
  );

  console.log("Created integration:", response.data.integration);
  return response.data.integration.id;
}

createIntegration();

Response Format

Success Response (201 Created)

{
  integration: {
    id: string;          // UUID of the created integration
    name: string;        // Integration name
    description: string; // Integration description
    createdAt: string;   // ISO 8601 timestamp
  };
}

Example Response

{
  "integration": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "My Custom Integration",
    "description": "Connects to my internal company API for data retrieval",
    "createdAt": "2025-02-18T10:30:00.000Z"
  }
}

Error Handling

Status CodeDescription
400Invalid request body (name too long, invalid characters)
401Invalid or missing API key
429Rate limit exceeded
500Internal server error

Next Steps

After creating an integration, you’ll typically want to:
  1. Add actions that agents can execute
  2. Add triggers that start workflows or conversations
  3. Configure authentication if your integration requires it
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.