Hi i'm looking for some help to set up webhooks pr...
# ask-ai
i
Hi i'm looking for some help to set up webhooks properly. As far as I know, we should be telling the livekit server where to publish the events, but I don't see such options in the project dashboard. How can I set up webhook correctly with my livekit cloud server
t
Thanks for reaching out, James. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you set up webhooks with your LiveKit Cloud server! Here’s a simple step-by-step guide to get you started: 1. Configure Webhooks in the Dashboard: Head over to the Settings section of your project’s dashboard and enter the URL where you’d like to receive webhook events. 2. Set Up Your Server: Make sure your server can accept HTTP POST requests with the
Content-Type
header set to
application/webhook+json
. This helps ensure the data is received correctly. 3. Validate Webhook Requests: Each webhook request comes with an
Authorization
header containing a signed JWT token. You can use a WebhookReceiver from LiveKit’s server SDKs (like Node.js, Go, or Python) to easily validate and decode the payload. 4. Supported Events: The webhooks can notify you about important events such as room lifecycle changes, participant activities, and track updates. 5. Delivery and Retries: Webhook delivery tries its best to reach you and will retry if something goes wrong. Just a quick reminder: your server needs to be publicly accessible (for example, via HTTPS) and able to handle the raw POST body correctly. If you’re testing locally, tools like ngrok are fantastic for exposing your server to the internet. If you have any questions or want to share your specific setup or challenges, please feel free to reach out—I’m here to help! Sources: Webhooks | LiveKit docs | livekit-api/tests/test_webhook.py | README.md | docs/tutorials/webhook-provider.md
i
I'm in the project settings page but I don't see an option to enter the URL. Is this available to the free tier?
t
Hey there! You can set up webhooks in the project settings, but I just want to gently mention that it’s not entirely clear if this feature is available on the free tier of LiveKit Cloud. If you don’t see the option to enter the URL, it could be because of the plan you’re on. To get a clearer picture, it might help to check if your project is on a paid plan. Please feel free to reach out if you’d like a hand with upgrading or if you want to explore other options together—I’m here to help! Sources: Webhooks | LiveKit docs | Mini tutorial: setting up a LiveKit Cloud project | Deploying to production | LiveKit Docs
i
According to the doc, it seems like it's available under the Build plan
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!