Webhook Triggers API
API reference for triggering bots via webhooks
Webhook Triggers API
Webhook triggers allow you to invoke your lil’bots from any external platform through a simple API endpoint. This documentation provides a complete reference for the webhook triggers API, including authentication, request formats, and response structures.
Authentication
All endpoints in the Webhook Triggers API require authentication via an API key. This key is specific to each trigger and is provided when you create a trigger in the lil’bots platform.
The API key should be passed in the X-Key
header with each request:
Security Note
Protect your trigger keys carefully. Anyone with access to your trigger URL and key can invoke your bot, potentially accessing any data your bot has access to and using up your credits.
How Webhook Triggers Work
- Create a Trigger: Set up a webhook trigger in your bot’s settings
- Invoke the Bot: Make a POST request to the trigger endpoint with your inputs
- Processing: The bot runs asynchronously in the background
- Check Results: Optionally wait for completion and retrieve outputs using the sync endpoint
When using the webhook API, bot inputs are passed as a JSON body in your request. These values will be available to your bot’s main
function.
Rate Limits
To ensure platform stability, the webhook API has the following rate limits:
- Maximum of 10 requests per second per trigger
- Maximum of 100 requests per minute per account
Exceeding these limits will result in a 429 Too Many Requests
response.
Example Usage
Below is a complete example of triggering a bot and waiting for its results using curl: