Skip to main content
Creates a new action for an integration. Actions are capabilities that agents can execute, like sending messages, fetching data, or creating records in external systems.

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.

Parameters

Path Parameters

Request Body

Input Field Schema

Each input field has the following properties:

Field Types

Example

Response Format

Success Response (201 Created)

Error Handling

Code Execution Environment

Action code runs in a sandboxed JavaScript environment with access to:
  • data.input - Object containing the values of input fields
  • data.auth - Object containing configured connection credentials for the integration
  • ld.request - HTTP requests to external APIs
  • ld.log - Execution logs
  • Standard JavaScript built-ins
Action code should handle errors gracefully. Unhandled errors will cause the action to fail and return an error message to the agent.
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.