SIP-Trunk abrufen
curl --request GET \
--url https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": 42,
"phone_number": "1000",
"nickname": "Provider X — Haupt",
"sip_username": "myuser",
"sip_address": "sip.provider.com",
"sip_calling_format": "+e164",
"inbound_authorization_type": "auth",
"allowed_inbound_ips": null,
"outbound_proxy": false,
"country_code": "US",
"inbound_trunk_id": "ST_xxxxxxxxxxxx",
"outbound_trunk_id": "ST_yyyyyyyyyyyy",
"created_at": "2026-03-31T10:00:00.000000Z",
"updated_at": "2026-03-31T10:00:00.000000Z"
}
}
{
"error": "SIP trunk not found."
}
SIP-Trunk abrufen
Rufe die komplette Konfiguration eines SIP-Trunks per ID in Famulor ab. Credentials, Routing und zugewiesene Rufnummern für deine KI-Voice-Telefonie.
GET
/
api
/
user
/
phone-numbers
/
sip-trunks
/
{id}
SIP-Trunk abrufen
curl --request GET \
--url https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": 42,
"phone_number": "1000",
"nickname": "Provider X — Haupt",
"sip_username": "myuser",
"sip_address": "sip.provider.com",
"sip_calling_format": "+e164",
"inbound_authorization_type": "auth",
"allowed_inbound_ips": null,
"outbound_proxy": false,
"country_code": "US",
"inbound_trunk_id": "ST_xxxxxxxxxxxx",
"outbound_trunk_id": "ST_yyyyyyyyyyyy",
"created_at": "2026-03-31T10:00:00.000000Z",
"updated_at": "2026-03-31T10:00:00.000000Z"
}
}
{
"error": "SIP trunk not found."
}
Dieser Endpunkt liefert detaillierte Informationen zu einem bestimmten SIP-Trunk, inklusive interner Trunk-IDs für Debugging.
Pfad-Parameter
integer
erforderlich
Die eindeutige Kennung des SIP-Trunks
Antwort
object
Das SIP-Trunk-Objekt
Anzeigen SIP-Trunk-Eigenschaften
Anzeigen SIP-Trunk-Eigenschaften
integer
Die eindeutige Kennung des SIP-Trunks
string
Die SIP-Erweiterung oder Telefonnummer (DID) im E.164-Format
string
Ein kurzes, menschenlesbares Label für den Trunk (oder
null, wenn nicht gesetzt)string
Der Benutzername für die SIP-Authentifizierung
string
Die SIP-Serveradresse
string
Das ausgehende Rufnummernformat:
+e164, e164 oder nationalstring
Die Methode für eingehende Authentifizierung:
auth oder iparray
Array mit freigegebenen IP-Adressen (nur wenn
inbound_authorization_type auf ip steht)boolean
Ob ausgehende Anrufe über eine feste Proxy-IP laufen
string
Der ISO-3166-2-Ländercode
string
Interne Kennung des Inbound-Voice-Trunks (hilfreich für Debugging)
string
Interne Kennung des Outbound-Voice-Trunks (hilfreich für Debugging)
string
ISO-8601-Zeitstempel
string
ISO-8601-Zeitstempel
{
"data": {
"id": 42,
"phone_number": "1000",
"nickname": "Provider X — Haupt",
"sip_username": "myuser",
"sip_address": "sip.provider.com",
"sip_calling_format": "+e164",
"inbound_authorization_type": "auth",
"allowed_inbound_ips": null,
"outbound_proxy": false,
"country_code": "US",
"inbound_trunk_id": "ST_xxxxxxxxxxxx",
"outbound_trunk_id": "ST_yyyyyyyyyyyy",
"created_at": "2026-03-31T10:00:00.000000Z",
"updated_at": "2026-03-31T10:00:00.000000Z"
}
}
{
"error": "SIP trunk not found."
}
War diese Seite hilfreich?
⌘I

