Lleverage Documentation
WebsiteLegalPlatform
  • Get Started
    • Introduction
    • Co-Pilot
    • FAQ
  • Key Terms
  • Action Guide
    • Triggers
    • Output
    • Prompt
    • Agents
  • Extracting Information
  • Using Information
  • Custom Code
  • Subworkflows
  • Knowledge Bases
  • Intergrations
  • Canvas Guide
    • Canvas Controls
    • Action Cards
    • Action Connections
    • Variables and Data Flow
  • The Run Panel and Testing
  • Error Handling
  • Publishing Guide
    • How to Publish
    • API Endpoint
    • Chat App
    • Form App
    • Integration Configuration
    • Scheduling Workflows
  • Sharing
  • Settings
    • Account Setup
  • Projects
  • Subscription Management
  • Sharing & User Permissions
  • Technical
    • Models
    • Security & Performance
  • Analytics & Monitoring
  • Support
    • Release Notes
      • April 2025
      • March 2025
      • February 2025
      • January 2025
      • December 2024
      • November 2024
      • October 2024
      • September 2024
      • August 2024
      • July 2024
    • Getting Help and Troubleshooting
Powered by GitBook
On this page
  • Key Features
  • How to Create an API Endpoint
  • How to Generate an API Token
  • How to View Code Examples
  • How to Structure API Requests
  • How to Test API Endpoints
  1. Publishing Guide

API Endpoint

Last updated 21 hours ago

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.

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

API Publish Panel