Absolutely! LiveKit offers APIs that let you easily configure SIP trunks programmatically. Whether you're managing inbound or outbound SIP trunks, you can do it smoothly using our server SDKs or direct HTTP requests.
Here are some of the main API endpoints you'll find helpful:
•
Create a SIP Inbound Trunk: This lets you set up a trunk for incoming SIP calls.
•
Create a SIP Outbound Trunk: Use this to establish a trunk for outbound calls.
•
List Trunks: Quickly retrieve all your existing trunks.
•
Update Trunks: Need to make changes? This endpoint helps you modify an existing trunk.
•
Delete a Trunk: Remove a trunk easily by its ID.
You can access these APIs through various server SDKs like Go, JavaScript/TypeScript, Python, Ruby, Java/Kotlin, and even the CLI. Just a heads-up, API requests will need a token with SIP admin permission to keep things secure.
If you want to dive deeper, feel free to check out the
LiveKit SIP APIs reference for detailed documentation. We're here to help you every step of the way!
Sources:
SIP APIs | LiveKit Docs |
lib/livekit/sip_service_client.rb |
src/main/kotlin/io/livekit/server/SipServiceClient.kt |
SIP inbound trunk | LiveKit Docs |
livekit-api/livekit/api/sip_service.py