API Endpoint

API Endpoints in Lleverage allow you to trigger workflows programmatically from your own applications. When you create a workflow with an API Call trigger, you can publish it to generate an endpoint that can be called from external systems.

API Publish Panel

Key Features

  • Programmable access to your Lleverage workflows

  • Secure authentication with Lleverage API tokens

  • Code examples in multiple programming languages

  • Field specification for data transfer

  • Custom integration into your existing applications

How to Create an API Endpoint

  1. Start by creating a workflow with an "API Call" trigger

  2. Configure the required fields and authentication in the trigger settings

  3. Build your workflow with the desired actions

  4. Click the "Publish" button in the top right corner

  5. The Publish Panel will display your API endpoint URL

💡 Read more about different trigger types in the Triggers documentation page.

How to Generate an API Token

  1. Go to your Organization Settings

  2. Find the section for API tokens

  3. Generate a new Lleverage API token

  4. Copy and store the token securely for future use

⚠️ API tokens provide access to your workflows, so keep them secure and never share them publicly.

How to View Code Examples

  1. Publish your workflow with an API Call trigger

  2. In the Publish Panel, locate the "Get Code" button

  3. Click the button to view code examples

  4. Select from available programming languages:

    • Node.js

    • Python

    • PHP

    • Go

💡 These code examples provide ready-to-use templates that you can adapt for your specific integration needs.

How to Structure API Requests

  1. Use the endpoint URL provided in the Publish Panel

  2. Include your Lleverage API token in the authorization header

  3. Structure your request body to include all fields defined in the trigger

  4. Send the request using your preferred programming language or API client

⚠️ Always include all fields specified in the trigger configuration, even if you're not using them in your workflow. Missing fields will cause the API call to fail.

How to Test API Endpoints

  1. Use the provided code examples as a starting point

  2. Modify the example with your actual API endpoint and token

  3. Run the code from your development environment

  4. Monitor the response to ensure successful workflow triggering

  5. Check your workflow execution in the Lleverage platform

💡 We recommend implementing proper error handling in your API integration to manage any

Last updated