Skip to main content

Overview

Want to connect your Lemonade to your own app or automate it with tools like Zapier? Developer Mode gives you API access to do exactly that. Here’s how to get started.

Who This Is For

This page is for developers who want to integrate Lemonades into applications, workflows, or automation systems. If you’re comfortable with API calls and code, you’re in the right place.
Not a developer? That’s OK! You can still use Zapier integration without writing code. Skip to the Zapier Integration section.

Enabling Developer Mode

1

Open Lemonade Editor

Navigate to Lemonades and click on your Lemonade
2

Go to Add On Tab

Click the Add On tab in the editor
3

Enable Developer Mode

Toggle Developer Mode to On

Getting Your API Key

1

Go to Profile & Billing

Click your avatar and select Profile & Billing
2

Navigate to API Keys

Click the API Keys tab
3

Generate Key

Click “Generate New Key” and copy your API key
Important: Your API key is like a password - keep it secret! Don’t share it publicly or save it in code repositories. If it’s ever exposed, generate a new one immediately.

API Endpoints

Send Message

Send a message to your Lemonade and receive a response.
Headers:
Request Body:
Response:

Get Lemonade Info

Retrieve information about a specific Lemonade.

List Lemonades

Get a list of all your Lemonades.

Zapier Integration

Connect your Lemonades to 5,000+ apps through Zapier.
1

Enable Developer Mode

Turn on Developer Mode in your Lemonade’s Add On tab
2

Find LaunchLemonade on Zapier

Search for “LaunchLemonade” in Zapier’s app directory
3

Connect Your Account

Use your API key to authenticate
4

Create Zaps

Build automated workflows with your Lemonades
TriggerActionUse Case
New email receivedSend to LemonadeAuto-draft responses
New form submissionSend to LemonadeProcess and categorize leads
Scheduled timeQuery LemonadeGenerate daily reports
Slack messageSend to LemonadeAnswer team questions

Error Handling

Common Error Codes

CodeMeaningSolution
401UnauthorizedCheck your API key
404Not foundVerify the Lemonade ID
429Rate limitedWait and retry
500Server errorContact support

Error Response Format

Code Examples

Python

JavaScript

cURL

Best Practices

Performance Tips:
  • Cache responses when appropriate
  • Use conversation IDs to maintain context
  • Implement exponential backoff for retries
  1. Store your API key securely – Use environment variables
  2. Handle errors gracefully – Implement proper error handling
  3. Monitor usage – Track your API calls to stay within limits
  4. Use conversation IDs – Maintain context across multiple messages

Notes

  • If a conversation ID is not provided in the run_assistant request, a new conversation is created.
  • Keep a delay of 10 seconds between each call to the get_run_assistant. If no response, retry after another 10 seconds for up to 1 minute.
  • Responses are returned in Markdown format for easy readability and formatting.
  • Make sure your API token is valid and included in the headers for authentication.

What’s Next

Lemonade Editor

Customise your Lemonade before integrating

Deploy Your Lemonade

Share your AI tool with the world