Skip to main content
Creates a new custom integration in your workspace. After creation, you can add actions and triggers to the integration.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required Scopes

This endpoint requires the INTEGRATION_API scope. Sending access also requires INTEGRATION_SHARING_API. The share is checked before the integration is created, so a refused share does not create one. The owner of a personal API key needs the Create integrations permission. A workspace API key can create an integration with the scope alone.

Parameters

Access

Share the new integration in the same request. Leave out users, groups, or workspace when you do not want to set that audience. Each list holds at most 100 entries. Duplicate ids in one list are refused. "user" lets someone use the integration. "editor" lets them edit it. null removes that direct grant. A new user grant needs an active person in the workspace. A new group grant needs an active group in the workspace. You can revoke a grant for someone who has left. Service accounts are refused. You cannot change the key owner’s grant through access. Setting workspace, including null, needs a workspace admin. For a personal key that is its owner. A workspace key’s service account has the admin role.
New user and group grants notify the recipients in Langdock.

Example

Response Format

Success Response (201 Created)

access is present only when the request sent it. users leaves out the creator and the key owner.

Example Response

Error Handling

Next Steps

After creating an integration, you’ll typically want to:
  1. Add actions that agents can execute
  2. Add triggers that start workflows
  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.