Skip to main content
Executes an action on an API integration using a connection and input values. You can run actions on private API integrations in your workspace and on public catalog API integrations enabled for your workspace.
Use this endpoint when developing and testing actions to verify that they behave as expected. It does not replace running actions normally through agents, workflows, or chat once your integration is shipped.

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.

Access Requirements

To execute an action, your API key must have access to the integration, the action, and the connection:
  • Integration: Only API integrations are supported. You can run actions on private API integrations in your workspace that your API key can access, or on public catalog API integrations enabled for your workspace. MCP and A2A integrations return 422.
  • 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 connectionId must 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 HTTP 200 even if the action code itself fails:
  • When the action code throws an error, success is false and error contains the error message.
  • When OAuth authentication or token refresh fails, authError is true and the connection must be reauthorized in Langdock.
  • Authentication tokens in result, logs, and httpCalls are 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.