import Runloop from '@runloop/api-client';const client = new Runloop({ bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted});const devboxTunnelView = await client.devboxes.createTunnel('id', { port: 0 });console.log(devboxTunnelView.devbox_id);
Create a tunnel to an available port on the Devbox.
Create a live tunnel to an available port on the Devbox.
POST
/
v1
/
devboxes
/
{id}
/
create_tunnel
JavaScript
Copy
Ask AI
import Runloop from '@runloop/api-client';const client = new Runloop({ bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted});const devboxTunnelView = await client.devboxes.createTunnel('id', { port: 0 });console.log(devboxTunnelView.devbox_id);