<#C088ZNU7QQ5|ask-ai> which sdk support `listIngre...
# ask-ai
q
#ask-ai which sdk support
listIngresses or create
ingress? livekit-server-sdk
t
Thanks for reaching out, Mayank. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm glad you're exploring the
listIngresses
and
createIngress
operations! These are supported by several LiveKit server-side SDKs to make your experience smoother: • Go SDK: Here, you can use the
CreateIngress
and
ListIngress
methods via the
IngressClient
. • Ruby SDK: This offers
create_ingress
and
list_ingress
methods through the
IngressServiceClient
. • Node.js (TypeScript) SDK: You'll find
createIngress
and
listIngress
methods within the
IngressClient
class. • Python SDK: This provides asynchronous methods
create_ingress
and
list_ingress
in the
IngressService
class. Just a quick note: to use these operations, your SDK needs to be authenticated with
ingressAdmin
permissions. If you have any questions or need help setting this up, feel free to ask—I’m here to help! Sources: Stream import | LiveKit Docs | ingressclient.go | lib/livekit/proto/livekit_ingress_pb.rb | packages/livekit-server-sdk/src/IngressClient.ts | livekit-api/livekit/api/ingress_service.py
q
i need to create ingrees things from my nodejs server (not from browser client)?
t
To help you create ingress from your Node.js server, you can use the
IngressClient
class from the
livekit-server-sdk
. Let me walk you through the steps: 1. Install the SDK: Simply run
npm install livekit-server-sdk
to get started. 2. Initialize the IngressClient: Use your LiveKit server URL, API key, and secret like this:
Copy code
import { IngressClient, IngressInput } from 'livekit-server-sdk';

const ingressService = new IngressClient(
  <LIVEKIT_SERVER_URL>, // Replace with your LiveKit server URL
  'your-api-key',
  'your-api-secret'
);
1. Create Ingress: Use the
createIngress
method with the input type and options you need. For example, to create an RTMP ingress:
Copy code
const ingressInfo = await ingressService.createIngress(IngressInput.RTMP_INPUT, {
  name: 'My RTMP Ingress',
  roomName: 'my-room',
  participantIdentity: 'host-user',
  participantName: 'Host (via OBS)',
  video: {
    source: TrackSource.CAMERA,
    preset: IngressVideoEncodingPreset.H264_1080P_30FPS_3_LAYERS,
  },
  audio: {
    source: TrackSource.MICROPHONE,
    preset: IngressAudioEncodingPreset.OPUS_STEREO_96KBPS,
  },
});

console.log('RTMP URL:', ingressInfo.url);
console.log('Stream Key:', ingressInfo.streamKey);
There are also options to create WHIP or URL-based ingress depending on what fits your needs best. Feel free to ask if you'd like me to share more details or examples for those — I’m here to help! Sources: Webhooks | LiveKit Docs | README.md | Stream import | LiveKit Docs | Self-hosting the Ingress Service | LiveKit Docs
q
what about listingress?
what about listI ngress?
t
To use
listIngress
in the Node.js LiveKit SDK, you can simply call the
listIngress()
method on an instance of the
IngressClient
. Here’s a friendly example to guide you through:
Copy code
import { IngressClient } from 'livekit-server-sdk';

const ingressClient = new IngressClient(
  <LIVEKIT_SERVER_URL>, // Just replace this with your LiveKit server URL
  'your-api-key',
  'your-api-secret'
);

// To list all ingress entries
const allIngresses = await ingressClient.listIngress();
console.log(allIngresses);

// To list ingress entries for a specific room
const ingressByRoom = await ingressClient.listIngress({ roomName: 'my-room' });
console.log(ingressByRoom);

// To list a specific ingress by ID
const ingressById = await ingressClient.listIngress({ ingressId: 'ingress_12345' });
console.log(ingressById);
You have the flexibility to filter results by
roomName
or
ingressId
, or simply list all ingress entries if you don’t apply any filters. If there’s anything else you’d like to explore or if you have questions, feel free to ask—I’m here to help! Sources: packages/livekit-server-sdk/src/IngressClient.ts | Stream import | LiveKit Docs
I'd be happy to help you use
listIngress
in the Node.js LiveKit SDK! You can simply call the
listIngress()
method on an instance of the
IngressClient
. This method will fetch a list of ingress entries, and you have the option to filter them by room name or ingress ID if you'd like. Here’s a friendly example to get you started:
Copy code
import { IngressClient } from 'livekit-server-sdk';

const ingressClient = new IngressClient(
  <LIVEKIT_SERVER_URL>, // Just replace this with your LiveKit server URL
  'your-api-key',
  'your-api-secret'
);

// To list all ingress entries
const allIngresses = await ingressClient.listIngress();
console.log(allIngresses);

// To list ingress entries for a specific room
const ingressByRoom = await ingressClient.listIngress({ roomName: 'my-room' });
console.log(ingressByRoom);

// To list a specific ingress by ID
const ingressById = await ingressClient.listIngress({ ingressId: 'ingress_12345' });
console.log(ingressById);
Feel free to filter your results by passing in
roomName
or
ingressId
as parameters. If you have any questions or need a hand with anything else, just let me know—I’m here to help!
q
how to deleteIngress?
t
I'd be happy to help! Could you please let me know if you're looking for an example of how to delete an ingress using the Node.js SDK, or if you need more information about the necessary parameters and setup for this operation? I'm here to guide you through it.
q
about paramters which i can pass ? ike diff ways to delete it
t
I'd be happy to help you delete an ingress using the Node.js LiveKit SDK! You can do this easily with the
deleteIngress
method, which just needs one thing from you: • `ingressId`: This is the unique identifier for the ingress you want to delete. Here’s a simple example to guide you:
Copy code
import { IngressClient } from 'livekit-server-sdk';

const ingressClient = new IngressClient(
  <LIVEKIT_SERVER_URL>, // Just replace this with your LiveKit server URL
  'your-api-key',
  'your-api-secret'
);

// Delete an ingress by ID
await ingressClient.deleteIngress('INGRESS_ID');
Just a few important things to keep in mind: • Deleting an ingress is permanent, so please double-check before you proceed. • You’ll need to delete each ingress one at a time, as batch deletion isn’t supported. • If you prefer, you can also use the LiveKit CLI or send direct HTTP requests to the Twirp API, but they also require the
ingressId
. If you have any questions or want me to walk you through more examples, just let me know—I’m here to help! Sources: Stream import | LiveKit Docs | livekit-api/src/services/ingress.rs | cmd/lk/ingress.go | ingressclient.go | lib/livekit/proto/livekit_ingress_twirp.rb
q
rtmpUrl how do i get this? whats is port
t
When you create an ingress using the
CreateIngress
API or SDK, the RTMP URL for LiveKit ingress is generated for you. The
IngressInfo
object you receive will include the full RTMP URL along with the stream key. For example, it might look something like
rtmp://my.domain.com/live/ingress-test
. Here are some important details to keep in mind: • Default RTMP Port: This is set to
1935
by default, but you can customize it in your ingress service configuration if needed. • Base RTMP URL: If you’re running a self-hosted deployment, you can set the base RTMP URL in your
config.yaml
file under the
ingress
section like this:
Copy code
ingress:
  rtmp_base_url: "rtmp://my.domain.com/live"
For those using LiveKit Cloud, the ingress service comes pre-configured, and you can easily get the RTMP URL and stream key right from the
CreateIngress
response or by using the
ListIngress
API. If you have any questions or need a hand with anything else, just let me know—I’m here to help! Sources: Stream import | LiveKit Docs | pkg/rtmp/server.go | config-sample.yaml
I'm happy to help you with the RTMP URL for LiveKit ingress! When you create an ingress using the
createIngress
method, the system generates this URL for you. You'll find it included in the returned
IngressInfo
object, which contains the full RTMP URL and stream key. For example, it might look like
rtmp://your-livekit-host/live/stream-key
. Here are some important details to keep in mind: • Default Port: The default RTMP port is
1935
. • Custom Port: If you're self-hosting, you have the flexibility to set a custom port in the LiveKit server's
config.yaml
file under the
ingress
section. • LiveKit Cloud: If you're using LiveKit Cloud, the RTMP URL is good to go right away—no extra setup needed. Please feel free to reach out if you'd like a hand with creating an ingress or tweaking your server configuration. I'm here to support you every step of the way!
q
then why im getting url as "" Existing ingress: [ IngressInfo { ingressId: 'IN_DNLLzHFxHC7H', name: 'audio-test', streamKey: '2JatPwQLLMyL', url: '', inputType: 0, bypassTranscoding: false, roomName: 'test-audio-room', participantIdentity: 'ingress-1759871904765', participantName: 'Audio Test Stream', participantMetadata: '', reusable: true, enableTranscoding: true, state: IngressState { status: 0, error: '', roomId: '', startedAt: 0n, endedAt: 0n, updatedAt: 0n, resourceId: '', tracks: [] } } ] my config.yml file looks like port: 7880 log_level: trace redis: address: "127.0.0.1:6379" db: 0 rtc: udp_port: 7882-7890 stun_servers: - "stun:stun.l.google.com:19302" # bind_addresses: # - 0.0.0.0 keys: key: "sexretid"
t
It looks like the RTMP URL in the
IngressInfo
object might be empty for a few common reasons. Let’s walk through them together: 1. Incorrect `inputType`: Make sure that when you’re creating the ingress, the
inputType
is set to
RTMP_INPUT
(which has the value 0). Other types like
URL_INPUT
or
WHIP_INPUT
won’t generate an RTMP URL. 2. Missing `rtmp_base_url`: Check your
config.yml
file and add this under the
ingress
section if it’s not there:
Copy code
ingress:
  rtmp_base_url: "rtmp://your-domain.com/live"
1. Self-hosting configuration: Please ensure that the
rtmp_base_url
points to an external endpoint that’s accessible, and that your ingress service is running smoothly and connected properly to Redis. 2. Validation issues: Double-check that the ingress has a valid
participantIdentity
, a room name, and a non-empty
streamKey
. 3. Check the ingress state: You can use the
ListIngress
API to confirm the ingress was created successfully and to get the latest info. From what you’ve shared, it seems the
rtmp_base_url
might be missing in your configuration file. Adding it and restarting your server should do the trick! If you run into any more questions or need a hand with this, just let me know—I’m here to help! Sources: pkg/service/ingress.go | livekit/livekit_ingress.pb.go | Encoder configuration | LiveKit Docs | pkg/params/params.go | Stream import | LiveKit Docs
q
so cam u tell me how should i configure my config.yml and also does url in the ingress info obj is always same for its for specific ing ? port: 7880 log_level: trace redis: address: "127.0.0.1:6379" db: 0 rtc: udp_port: 7882-7890 stun_servers: - "stun:stun.l.google.com:19302" # bind_addresses: # - 0.0.0.0 keys: APIDKaNxqYK8fUD: "FTfQXuaTzdbSUCbOiramDCKtLuSer4Vb5W5rI5wyeSDA"
t
To help you set up your
config.yml
for LiveKit Ingress, here’s what you’ll need to include:
Copy code
port: 7880
log_level: trace

redis:
  address: "127.0.0.1:6379"
  db: 0

rtc:
  udp_port: 7882-7890
  stun_servers:
    - "stun:stun.l.google.com:19302"

keys:
  APIDKaNxqYK8fUD: "FTfQXuaTzdbSUCbOiramDCKtLuSer4Vb5W5rI5wyeSDA"

ingress:
  rtmp_base_url: "rtmp://your-domain.com/live"
Just a quick reminder to replace
your-domain.com
with your actual domain or IP address where your LiveKit server is hosted. The
rtmp_base_url
is really important because it’s what generates the RTMP URL for each ingress. About the RTMP URL in the
IngressInfo
object: • The
url
field is unique to each ingress and is created by adding a specific stream key to the
rtmp_base_url
. For example, if your base URL is
rtmp://your-domain.com/live
and your stream key is
abc123
, the full RTMP URL becomes
rtmp://your-domain.com/live/abc123
. • This setup makes sure every ingress has its own distinct endpoint for media ingestion. If you have any questions or need a hand with anything else, please don’t hesitate to reach out—I’m here to help! Sources: test/rtmp.go | Encoder configuration | LiveKit Docs
q
port: 7880 log_level: trace redis: address: "127.0.0.1:6379" db: 0 rtc: udp_port: 7882-7890 stun_servers: - "stun:stun.l.google.com:19302" # bind_addresses: # - 0.0.0.0 keys: APIDKaNxqYK8fUD: "FTfQXuaTzdbSUCbOiramDCKtLuSer4Vb5W5rI5wyeSDA" ingress: rtmp_base_url: "rtmp://localhost/live" but still getting ingress obj as IngressInfo { ingressId: 'IN_DNLLzHFxHC7H', name: 'audio-test', streamKey: '2JatPwQLLMyL', url: '', inputType: 0, bypassTranscoding: false, roomName: 'test-audio-room', participantIdentity: 'ingress-1759871904765', participantName: 'Audio Test Stream', participantMetadata: '', reusable: true, enableTranscoding: true, state: IngressState { status: 0, error: '', roomId: '', startedAt: 0n, endedAt: 0n, updatedAt: 0n, resourceId: '', tracks: [] } }
t
Hi there! Could you please check if the LiveKit Ingress service is up and running and properly connected to the Redis instance? Also, it would be really helpful if you could take a look at the server logs to see if there are any errors when creating the ingress. I'm here to help you through this!
q
25-10-09T012710.081+0530 INFO livekit service/server.go:264 starting LiveKit server {"portHttp": 7880, "nodeID": "ND_uBKD5gmR7aiV", "nodeIP": "169.254.15.211", "version": "1.9.0", "rtc.portTCP": 7881, "rtc.portUDP": {"Start":7882,"End":7890}} 2025-10-09T012710.082+0530 INFO livekit service/server.go:266 Windows detected, capacity management is unavailable 2025-10-09T012742.239+0530 INFO livekit.api service/twirp.go:128 API Ingress.ListIngress {"service": "Ingress", "method": "ListIngress", "room": "test-audio-room", "duration": "5.0414ms", "status": "200"} I am able to create list delete update ingress?
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
q
but can u tell me in which i will get url.. what kind of ingress i have to create? const ingressInfo = await mgr.createIngress({ mode: 'rtmp', name: 'audio-test', participantName: 'Audio Test Stream', roomName: 'test-audio-room', // Ensure inputType is set for RTMP inputType: 0 // 0 = RTMP_INPUT });
ingress: enabled: true rtmp_port: 1935 rtmp_base_url: "rtmp://localhost:1935/live" can we have this in my config file? port: 7880 log_level: trace redis: address: "127.0.0.1:6379" db: 0 rtc: udp_port: 7882-7890 stun_servers: - "stun:stun.l.google.com:19302" # bind_addresses: # - 0.0.0.0 keys: APIDKaNxqYK8fUD: "FTfQXuaTzdbSUCbOiramDCKtLuSer4Vb5W5rI5wyeSDA" ingress: rtmp_base_url: "rtmp://localhost:1935/live"
LiveKit ingress expects video by default is it true? do i need to create special ingress if i want to ingress audio only?