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
Getting Your API Key
API Endpoints
Send Message
Send a message to your Lemonade and receive a 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.Popular Zapier Use Cases
| Trigger | Action | Use Case |
|---|---|---|
| New email received | Send to Lemonade | Auto-draft responses |
| New form submission | Send to Lemonade | Process and categorize leads |
| Scheduled time | Query Lemonade | Generate daily reports |
| Slack message | Send to Lemonade | Answer team questions |
Error Handling
Common Error Codes
| Code | Meaning | Solution |
|---|---|---|
401 | Unauthorized | Check your API key |
404 | Not found | Verify the Lemonade ID |
429 | Rate limited | Wait and retry |
500 | Server error | Contact support |
Error Response Format
Code Examples
Python
JavaScript
cURL
Best Practices
- Store your API key securely – Use environment variables
- Handle errors gracefully – Implement proper error handling
- Monitor usage – Track your API calls to stay within limits
- 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