Base URL
Required Scopes
This endpoint requires theINTEGRATION_API scope.
Access Requirements
To execute an action, your API key must have access to the integration, the action, and the connection:- Integration: Only
APIintegrations are supported. You can run actions on privateAPIintegrations in your workspace that your API key can access, or on public catalogAPIintegrations enabled for your workspace.MCPandA2Aintegrations return422. - Action: The action must belong to the integration. If the action is restricted in your workspace, the API key identity must be allowed to use it. Personal API keys owned by workspace admins can run restricted actions automatically, while workspace API keys need explicit access to the restricted action.
- Connection: The
connectionIdmust belong to the same integration and workspace, and must be owned by the API key identity or shared with that user, one of their groups, or the workspace.
Parameters
Path Parameters
Request Body
Langdock validates
inputs against the action’s declared inputFields before running the action code. You can inspect an action’s inputFields and their slug identifiers with Get Integration. For VECTOR fields, pass a text string and Langdock embeds it automatically using the embedding model configured on the connection. For FILE fields, pass a file object or an array of file objects matching the action’s file schema.Example
Response Format
Success Response (200 OK)
Example Response
Action Failures and Authentication Errors
Once the request passes validation and access checks, the endpoint returns HTTP200 even if the action code itself fails:
- When the action code throws an error,
successisfalseanderrorcontains the error message. - When OAuth authentication or token refresh fails,
authErroristrueand the connection must be reauthorized in Langdock. - Authentication tokens in
result,logs, andhttpCallsare redacted automatically before the response is returned.
Error Handling
Langdock intentionally blocks requests from a browser to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.