Skip to main content
Version: /v2

Fetch All Inbound SIP Gateways - API

Retrieves a paginated list of all inbound SIP gateways for the authenticated user. Supports filtering by id and searching by gateway name.

HTTP method and endpoint

GET

|

https://api.videosdk.live/v2/sip/inbound-gateways
Headers Parameters

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

Query Parameters
OPTIONAL
Optional. Filter by a specific gateway ID.
OPTIONAL
Page number for pagination. Defaults to 1.
OPTIONAL
Number of records per page. Defaults to 10.
Response Parameters
Pagination info (current page, per page, last page, total count).
Array of inbound SIP gateways matching the query.
GET
|
https://api.videosdk.live/v2/sip/inbound-gateways
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/sip/inbound-gateways?id=gateway_123456789&search=twilio&page=1&perPage=10`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"pageInfo": {
"currentPage": 1,
"perPage": 10,
"lastPage": 1,
"total": 2
},
"data": [
{
"id": "gateway_123456789",
"name": "Twilio Inbound Gateway",
"address": "sip:twilio.sipdomain.com",
"numbers": [
"+11234567890"
],
"allowedAddresses": [
"sip:trusted.example.com"
],
"allowedNumbers": [
"+14150001111"
],
"mediaEncryption": "disable",
"transport": "udp",
"record": false,
"tags": [
"production"
],
"auth": {
"username": "sip_user",
"password": "••••••••"
},
"geoRegion": "in001",
"metadata": {
"env": "production"
},
"noiseCancellation": true
},
{
"id": "gateway_987654321",
"name": "Backup Inbound Gateway",
"address": "sip:backup.sipdomain.com",
"numbers": [
"+19876543210"
],
"allowedAddresses": [],
"allowedNumbers": [],
"mediaEncryption": "disable",
"transport": "udp",
"record": true,
"tags": [
"staging"
],
"auth": {
"username": "backup_user",
"password": "••••••••"
},
"geoRegion": "in001",
"metadata": {},
"noiseCancellation": false
}
]
}

Got a Question? Ask us on discord