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 action for an integration. Actions are capabilities that agents can execute, like sending messages, fetching data, or creating records in external systems.

Required Scopes

This endpoint requires the INTEGRATION_API scope.

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:
  • inputs - Object containing the values of input fields
  • secrets - Object containing configured secrets for the integration
  • fetch - Standard fetch API for HTTP requests
  • 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.