Fetch Inbound SIP Gateway by ID - API
Retrieves details of a specific inbound SIP gateway using its
gatewayId
.HTTP method and endpoint
GET
|
https://api.videosdk.live/v2/sip/inbound-gateways/:gatewayIdHeaders Parameters
REQUIRED
values : YOUR_TOKEN_WITHOUT_ANY_PREFIX
This will be a JWT token generate using VideoSDK ApiKey and Secret.
Note that the token will not include any prefix such as "Basic " or "Bearer ". Just pass a token as value.
You can generate a new token by refering this Guide: Generate Auth token
Parameters
REQUIRED
Unique identifier of the inbound SIP gateway.
Response Parameters
Unique identifier for the inbound SIP gateway (maps to
gatewayId
). Human-readable name of the gateway.
Array of phone numbers associated with this gateway.
Array of SIP addresses allowed to connect.
Array of phone numbers allowed to connect.
Media encryption setting for the SIP gateway.
Transport protocol used (e.g.,
UDP
, TCP
, TLS
). Indicates if calls should be recorded (
true
/false
). Custom tags associated with the gateway.
Authentication configuration for the SIP gateway.
Geographical region associated with the gateway.
Custom metadata for the gateway.
Noise cancellation setting (
true
/false
). GET
|
https://api.videosdk.live/v2/sip/inbound-gateways/:gatewayId
NodeJS
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/sip/inbound-gateways/:gatewayId`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "gateway_123456789",
"name": "Twilio Inbound Gateway",
"address": "sip:twilio.sipdomain.com",
"numbers": [
"+11234567890",
"+19876543210"
],
"allowedAddresses": [
"sip:trusted.example.com"
],
"allowedNumbers": [
"+14150001111"
],
"mediaEncryption": "disable",
"transport": "udp",
"record": false,
"tags": [
"production",
"twilio"
],
"auth": {
"username": "sip_user",
"password": "••••••••"
},
"geoRegion": "in001",
"metadata": {
"env": "production",
"owner": "team-voice"
},
"noiseCancellation": true
}
Got a Question? Ask us on discord