> Markdown version of https://tuna.am/en/docs/api/team-tunnel-list/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# List team tunnels

get`/v1/team/tunnels`

List team tunnels (for team admins)

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Query Parameters

* **page_size** integer\<int64>

* **page** integer\<int64>

* **user_id** integer\<int64>

  Only tunnels of the user with this ID; 0 means tunnels of all members

* **search** string

  Case-insensitive search by address (domain, or domain:port for TCP; the https\:// or tcp\:// scheme can be left in), tunnel name, hostname, and owner name and email

* **order_by** string

  Sort order: created_at (default, newest first), address (by domain and port), owner (by owner name, or email if there is no name)

### Response

200application/json

* Array \[
* **active**boolean

  Whether it is currently active

  **Example:&#x20;**`true`

  **api_key_id**integer\<int64>

  API key ID

  **app** object

  **domain**string

  **id**integer\<int64>

  **logo_url**string

  **name**string

  **arch**string

  Architecture

  **Example:&#x20;**`amd64`

  **client_name**string

  Client name

  **Example:&#x20;**`my-laptop`

  **client_version**integer\<uint8>

  Client version

  **created_at**string\<date-time>

  Creation date

  **deleted_at**string\<date-time>

  Deletion date

  **desktop_icon**string

  Tunnel icon

  **domain_name**string

  Domain name

  **Example:&#x20;**`demo-app.tuna.am`

  **domain_type**string

  Domain type

  **Possible values:** \[`dynamic`, `static`, `external`, `free`]

  **endpoint_alias**string

  Port alias

  **Example:&#x20;**`postgres`

  **endpoint_port**integer\<uint32>

  Port

  **Possible values:** `<= 65535`

  **Example:&#x20;**`40000`

  **endpoint_type**string

  Port type

  **Possible values:** \[`dynamic`, `static`]

  **forwards_to**string

  Forwards to

  **Example:&#x20;**`127.0.0.1:3000`

  **hostname**string

  Hostname

  **id**integer\<int64>

  Tunnel ID

  **Example:&#x20;**`42`

  **location**string

  Location

  **Possible values:** \[`ru`, `nl`, `global`]

  **Example:&#x20;**`ru`

  **name**string

  Tunnel name

  **node** object

  **id**integer\<int64>

  Node ID

  **Example:&#x20;**`128`

  **location**string

  Location

  **Possible values:** \[`global`, `nl`, `ru`, `unknown`]

  **Example:&#x20;**`nl`

  **name**string

  Node name

  **Example:&#x20;**`edge-ams-1`

  **os**string

  Client OS

  **Example:&#x20;**`linux`

  **owner** object

  **active**boolean

  Active flag

  **avatar_url**string

  Avatar

  **Example:&#x20;**`https://www.gravatar.com/avatar/00000000000000000000000000000000`

  **email**string

  Email

  **Example:&#x20;**`jane@example.com`

  **id**integer\<int64>

  Identifier

  **Example:&#x20;**`42`

  **name**string

  Name

  **Example:&#x20;**`Jane Doe`

  **role**string

  Role

  **Possible values:** \[`primary_owner`, `owner`, `admin`, `member`]

  **Example:&#x20;**`member`

  **protocol**string

  Protocol

  **Possible values:** \[`http`, `tcp`]

  **Example:&#x20;**`http`

  **protocol_handler**string

  Protocol handler

  **Possible values:** \[\`\`, `sshd`, `postgres`, `redis`, `mysql`, `file-server`, `webdav`, `kubernetes`, `1c`]

  **public_url**string

  Public URL

  **Example:&#x20;**`https://demo-app.tuna.am`

  **ssh_sessions**integer\<int64>

  Number of recorded SSH sessions

  **started_at**string\<date-time>

  Start date

  **tunnel_session_id**string

  Tunnel session ID

  **uid**string

  Tunnel UID

  **Example:&#x20;**`2dBvKpR7Wm2vXtL8Hc6sFjY3bQe`

  **user_session_id**integer\<int64>

  User session ID

  ]
