Can I launch a webhook triggered by an inbound cal...
# ask-ai
b
Can I launch a webhook triggered by an inbound call? I need every inbound call goes though our services in order to initiate the agent.
t
Thanks for reaching out, Tarek-Asis. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking if an inbound call can trigger a webhook so every inbound call is routed through your services to start an agent — yes, you can. What you can use • LiveKit emits SIP-specific events your backend can consume. Listen for
sip_call_initiated
(and
sip_call_ended
) for call lifecycle signals. • SIP callers also appear as participants in rooms with `kind: SIP`; the
participant_joined
webhook includes participant details you can use to identify SIP callers and kick off your agent logic. • Webhooks are sent to the endpoint configured on your LiveKit server and include a cryptographic signature you can verify. Next steps I can help with • Show the exact webhook payload fields for
sip_call_initiated
and
participant_joined
. • Provide a short example (server-side) to verify the signature and handle the webhook to start an agent. • Walk through configuring the webhook endpoint on your LiveKit server. Which of those would you like me to provide first, or share your preferred language/runtime and I’ll give a minimal implementation example? Sources: server-sdk-js | livekit/livekit_composite | DeepWiki | Live Conversations with AI using ChatGPT and WebRTC | Server-side | livekit/livekit_composite | DeepWiki
b
I see in the documentation that webook event participant_joined is emitted but I don't see the event sip_call_initiated. How can I check all the events I can get via webhook?
t
You're asking how to confirm all webhook events you can receive and whether
sip_call_initiated
exists — yes,
sip_call_initiated
is available. To check all webhook events you can get: • Read the Webhooks reference in the LiveKit docs — it lists every event (room/participant/track/egress/ingress and SIP events like
sip_call_initiated
and
sip_call_ended
) (Webhooks | LiveKit docs). • Inspect the WebhookEvent types in the server SDK for your language (Node/Go/Java) — the interface/enum shows every supported event type. • Configure your webhook endpoint and log incoming POST payloads. Each payload has an
event
field so you can observe which events your deployment emits in practice. Would you like the exact payload fields for
sip_call_initiated
and
participant_joined
, or a minimal webhook handler example (which language/runtime)? Sources: server-sdk-js | livekit/livekit_composite | DeepWiki | Webhooks | LiveKit docs