echoing-florist-15157
11/05/2025, 4:48 AMtall-airline-16756
11/05/2025, 4:48 AMtall-airline-16756
11/05/2025, 4:49 AMwebhook section (with api_key, api_secret, urls) in your server config.
• Ensure your receiver accepts Content-Type: application/webhook+json and validates the Authorization JWT.
• Test by joining/leaving a room and confirm you see participant_joined / participant_left.
If you’re only setting WebhookConfig on egress requests, that will only deliver egress_* events to that URL. Participant events require the project/server webhook setup.
Would you like steps for your specific environment (Cloud vs self-hosted) or a sample handler to validate the webhook JWT?
For reference:
• Webhooks overview and event types: Webhooks | LiveKit docs
• Egress per-request webhooks: Egress API | LiveKit Docs Sources: Webhooks | LiveKit docs | Egress API | LiveKit Docs | Webhook & Event System | livekit/livekit_composite | DeepWikiechoing-florist-15157
11/05/2025, 4:50 AMtall-airline-16756
11/05/2025, 4:50 AMwebhook section with your API key/secret and endpoint URL(s). Example:
webhook:
api_key: YOUR_API_KEY
api_secret: YOUR_API_SECRET
urls:
- https://your-domain.com/livekit/webhook
1. Restart the server to apply changes.
2. Ensure your endpoint:
◦ Accepts Content-Type: application/webhook+json
◦ Verifies the Authorization JWT (HS256 with your api_secret) before parsing
1. Join/leave a test room and confirm you receive participant_joined / participant_left.
If you’d like, share your redacted webhook config and I can verify it. I can also provide a minimal Express/Node, Go, or Python handler that validates the webhook JWT. For details: Webhooks | LiveKit docs.echoing-florist-15157
11/05/2025, 4:53 AMtall-airline-16756
11/05/2025, 4:54 AMwebhook block doesn’t accept api_secret. Use only api_key and urls there, and ensure the API key you use is one that your server knows (with its secret configured in your API keys).
Correct server config snippet:
webhook:
api_key: 'YOUR_API_KEY'
urls:
- https://your-domain.com/livekit/webhook
Then, in your webhook receiver, validate the Authorization JWT using the matching API key and its secret (the server signs with HS256 using that secret). Also accept Content-Type: application/webhook+json.
Docs for reference: Webhooks | LiveKit docs
If you want, share your redacted API keys section and your webhook: block, and I’ll double‑check the pairing.
Sources: Webhooks | LiveKit docs | Webhook & Event System | livekit/livekit_composite | DeepWiki | Egress API | LiveKit Docs