Create SIP Trunk
Create a SIP trunk. For kind=byoc supply sip_address plus
optional digest credentials and IP allowlist. For kind=twilio
use ImportPhoneNumber with a twilio spec instead - trunk
creation is handled automatically. Returns 402 when the workspace
has reached the 20-trunk cap.
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Request
Human-readable name for the trunk.
Where the trunk came from. Informs the provisioning path and portability story.
livekit- Provisioned by LiveKit’s native phone-number API.twilio- Backed by a Twilio Elastic SIP Trunk on the customer’s account.byoc- Any SIP provider with a customer-managed trunk.
Whether the trunk handles inbound calls, outbound calls, or both.
A both trunk has distinct LiveKit inbound and outbound trunk IDs.
SIP endpoint hostname. Required for kind=byoc.
SIP digest auth password. Write-only.
IP / CIDR allowlist for inbound connections. Empty means any source is accepted.
ISO 3166-1 alpha-2 country for the outbound dial plan.
SIP transport protocol. auto lets LiveKit negotiate. Use tls
for production where available - note that TLS is incompatible
with SIP REFER (cold transfer). Trunks that need transfer_to_number
should use udp or tcp.
SRTP media encryption policy.
disable- Unencrypted media only.allow- Negotiate SRTP; fall back to unencrypted. Recommended default.require- Reject calls that do not support SRTP.
Provider-specific credential blob (for future extensibility).
Response
Prefixed wire identifier (trunk_<26 char Crockford base32>).
ADR 0015 Cluster 3 hard-break: URL paths accept only this
prefixed form; legacy UUID path parameters are rejected with
404 as of Cluster 3.
Human-readable name.
Where the trunk came from. Informs the provisioning path and portability story.
livekit- Provisioned by LiveKit’s native phone-number API.twilio- Backed by a Twilio Elastic SIP Trunk on the customer’s account.byoc- Any SIP provider with a customer-managed trunk.
Whether the trunk handles inbound calls, outbound calls, or both.
A both trunk has distinct LiveKit inbound and outbound trunk IDs.
IP address / CIDR allowlist for inbound SIP connections.
SIP transport protocol. auto lets LiveKit negotiate. Use tls
for production where available - note that TLS is incompatible
with SIP REFER (cold transfer). Trunks that need transfer_to_number
should use udp or tcp.
SRTP media encryption policy.
disable- Unencrypted media only.allow- Negotiate SRTP; fall back to unencrypted. Recommended default.require- Reject calls that do not support SRTP.
LiveKit’s inbound trunk ID (present when direction is inbound or both).
LiveKit’s outbound trunk ID (present when direction is outbound or both).
SIP endpoint hostname (e.g. sip.telnyx.com). Required for kind=byoc.
ISO 3166-1 alpha-2 country code for the outbound dial plan
(e.g. US, DE). Required for international outbound on
some carriers.