how to check via api: Dispatch rule saved (check v...
# ask-ai
b
how to check via api: Dispatch rule saved (check via API to confirm
roomConfig.egress
is present).? any curl commands to verify it?
t
Thanks for reaching out, Samuel. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking how to verify via API that a SIP dispatch rule was saved and confirm
roomConfig.egress
is present — here’s how to do that with curl. 1) List dispatch rules (uses the ListSIPDispatchRule RPC)
Copy code
curl -X POST "https://<your-livekit-host>/twirp/livekit.SIP/ListSIPDispatchRule" \
  -H "Authorization: Bearer <your-access-token>" \
  -H "Content-Type: application/json" \
  -d '{}'
• Replace
<your-livekit-host>
(e.g.,
your-project.livekit.cloud
) and
<your-access-token>
(JWT with
SIPAdmin
privileges). 2) Check the response JSON for
room_config.egress
• The response contains an
items
array of dispatch rules. Inspect each item's
room_config
object: ◦ If
room_config.egress
exists, auto-egress is configured for that rule. ◦ Example fragment you should see:
Copy code
"room_config": {
  "egress": {
    "room": {
      "segments": {
        "s3": { "bucket": "my-bucket" },
        "filename_prefix": "recordings/"
      }
    }
  }
}
Notes: • There’s no separate GetSIPDispatchRule call — listing and filtering the returned items (by
name
or
sip_dispatch_rule_id
) is the way to locate a specific rule. • Ensure your JWT includes the
sip.admin: true
grant so the API returns the rules. Would you like a jq snippet to filter the response for rules that contain
room_config.egress
? Sources: server-sdk-kotlin | livekit/livekit_composite | DeepWiki | SIP APIs | LiveKit docs