Create SIP Trunk
Create a SIP trunk. For provider=byoc supply sip_address plus
optional digest credentials and IP allowlist. For provider=twilio
use ImportPhoneNumber with a twilio spec instead - trunk
creation is handled automatically. Returns 422 when the workspace
has reached the 20-trunk cap.
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Headers
Request
Human-readable name for the trunk.
Which provider backs the trunk. 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.telnyx- Backed by a Telnyx FQDN connection 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 provider inbound and outbound trunk IDs.
SIP endpoint hostname. Required for provider=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 headers
Response
Prefixed wire identifier (trunk_<26 char Crockford base32>).
URL paths accept only this
prefixed form; legacy UUID path parameters are rejected with
404.
Human-readable name.
Which provider backs the trunk. 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.telnyx- Backed by a Telnyx FQDN connection 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 provider 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.
Whether an outbound trunk is provisioned for this trunk (i.e. it can place outbound calls).
SIP endpoint hostname (e.g. sip.telnyx.com). Required for provider=byoc.
ISO 3166-1 alpha-2 country code for the outbound dial plan
(e.g. US, DE). Required for international outbound on
some carriers.