Returns where your carrier, PBX or Twilio Elastic SIP trunk should send inbound calls (Twilio calls this the Origination URI), and the IP ranges Tried's SIP traffic comes from so you can allow them on your trunk. Use it before Import phone number.
Request#
This endpoint takes no path, query or body parameters.
Example request#
curl https://api.tried.com.au/sip-origination \
-H "Authorization: Bearer $TRIED_API_KEY"const res = await fetch("https://api.tried.com.au/sip-origination", {
headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const origination = await res.json();import os, requests
res = requests.get(
"https://api.tried.com.au/sip-origination",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
origination = res.json()Response#
200 OK
{
"sip_host": "tried.sip.livekit.cloud",
"origination_uri": "sip:tried.sip.livekit.cloud;transport=tcp",
"ip_ranges": ["143.223.88.0/21", "161.115.160.0/19", "153.57.128.0/18"]
}| Field | Type | Description |
|---|---|---|
sip_host |
string | The SIP host inbound INVITEs go to. It comes from the deployment's LIVEKIT_SIP_URI, and is sip.tried.local when that is not set. |
origination_uri |
string | sip_host as a SIP URI over TCP, ready to paste into your trunk. |
ip_ranges |
string[] | CIDRs Tried's outbound SIP traffic comes from. Defaults to LiveKit Cloud's static SIP ranges unless the deployment overrides them with SIP_OUTBOUND_IP_RANGES. |
Errors#
| Status | When |
|---|---|
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request. This route needs the admin scope. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.