Webhook Backends & Microservices

A webhook endpoint
without the server.

Paste your Python handler, get an HTTPS URL instantly. Receive Razorpay payments, GitHub webhooks, Telegram bot updates, and Slack interactions in an isolated sandbox.

HTTPS POST • Auto-JSON parsing

# Signature verification + KV Idempotency (prevent double charging)

import hmac, hashlib, os

def handler(event, context):
    payload = event.get("payload", {})
    payment_id = payload.get("payment", {}).get("entity", {}).get("id")

    # 1. Idempotency Check using built-in KV Store
    if context.kv.get(f"order_{payment_id}"):
        return {"status": "ignored", "reason": "duplicate_event"}

    # 2. Record processed event
    context.kv.set(f"order_{payment_id}", {"processed": True})
    return {"status": "ok", "payment_id": payment_id}
Mode 1 • Default

Asynchronous Queue & Worker

Responds immediately with 200 OK to the sender so third-party providers don't time out. The payload is enqueued into an isolated runner container in background.

curl -X POST https://litelambda.in/crons/webhook/<JOB_ID>/<SECRET>/
Mode 2 • Synchronous API

Function → Instant Hosted API

Pass ?sync=true. The container executes inline, capturing the script's dictionary return value and sending it directly back in the HTTP response body.

curl -X POST https://litelambda.in/crons/webhook/<JOB_ID>/<SECRET>/?sync=true

Ship your next webhook in 60 seconds

No reverse proxies, no Nginx configs, no SSL renewal. Handlers start free.

Start 15-Day Free Trial →