can I fetch all the outbound sip trunks I have fro...
# ask-ai
c
can I fetch all the outbound sip trunks I have from lk cloud using sdk?
t
Thanks for reaching out, Subham. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes — you can fetch all outbound SIP trunks from LiveKit Cloud using the server SDKs. Use the SIP service client's ListSIPOutboundTrunk (or
listSipOutboundTrunk
) method; it returns an array of
SIPOutboundTrunkInfo
objects. Example options: • Node.js:
sipClient.listSipOutboundTrunk()
• Python:
lkapi.sip.list_sip_outbound_trunk(ListSIPOutboundTrunkRequest())
• Go:
sipClient.ListSIPOutboundTrunk(ctx, &livekit.ListSIPOutboundTrunkRequest{})
• Ruby / Kotlin: equivalent
list_sip_outbound_trunk
/
listSipOutboundTrunk
calls • CLI:
lk sip outbound list
Requests must include an access token with the
sip.admin
grant to authenticate. Would you like a full code snippet for one of these languages or help creating the required token? Sources: SIP APIs | LiveKit docs | SIP outbound trunk | LiveKit docs