@@ -169,8 +169,8 @@ export class Devboxes extends APIResource {
169169 /**
170170 * Create an ephemeral authenticated tunnel for terminal access to a running
171171 * Devbox. This tunnel is not persisted on the Devbox and is generated fresh on
172- * each request. The returned auth_token must be passed as a Bearer token in the
173- * Authorization header.
172+ * each request. The returned auth_token should be passed as a Bearer token in the
173+ * X-Runloop-Tunnel- Authorization header.
174174 */
175175 createPtyTunnel ( id : string , options ?: Core . RequestOptions ) : Core . APIPromise < PtyTunnelView > {
176176 return this . _client . post ( `/v1/devboxes/${ id } /create_pty_tunnel` , options ) ;
@@ -929,7 +929,8 @@ export interface DevboxView {
929929 * running inside a Devbox without requiring direct network access. Each tunnel is
930930 * uniquely identified by an encrypted tunnel_key and can be configured for either
931931 * open (public) or authenticated access. Usage:
932- * https://{port}-{tunnel_key}.tunnel.runloop.ai
932+ * https://{port}-{tunnel_key}.tunnel.runloop.ai. Authenticated tunnels should pass
933+ * auth_token as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
933934 */
934935 tunnel ?: TunnelView | null ;
935936}
@@ -994,11 +995,12 @@ export namespace DevboxView {
994995 * An ephemeral PTY tunnel providing authenticated terminal access to a Devbox.
995996 * These tunnels are not stored on the Devbox and are generated fresh on each
996997 * request. Usage: https://{port}-{tunnel_key}.tunnel.runloop.ai with
997- * Authorization: Bearer {auth_token}
998+ * X-Runloop-Tunnel- Authorization: Bearer {auth_token}.
998999 */
9991000export interface PtyTunnelView {
10001001 /**
1001- * Bearer token for tunnel authentication. Always required for PTY tunnels.
1002+ * Bearer token for tunnel authentication. Always required for PTY tunnels. Pass as
1003+ * X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
10021004 */
10031005 auth_token : string ;
10041006
@@ -1015,7 +1017,8 @@ export interface PtyTunnelView {
10151017 * running inside a Devbox without requiring direct network access. Each tunnel is
10161018 * uniquely identified by an encrypted tunnel_key and can be configured for either
10171019 * open (public) or authenticated access. Usage:
1018- * https://{port}-{tunnel_key}.tunnel.runloop.ai
1020+ * https://{port}-{tunnel_key}.tunnel.runloop.ai. Authenticated tunnels should pass
1021+ * auth_token as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
10191022 */
10201023export interface TunnelView {
10211024 /**
@@ -1048,7 +1051,7 @@ export interface TunnelView {
10481051
10491052 /**
10501053 * Bearer token for tunnel authentication. Only present when auth_mode is
1051- * 'authenticated'.
1054+ * 'authenticated'. Pass as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
10521055 */
10531056 auth_token ?: string | null ;
10541057}
0 commit comments