> Markdown version of https://tuna.am/en/docs/api/endpoint-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 endpoints

get`/v1/endpoints`

## 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>

* **search** string

  Case-insensitive search by alias and address (hostname:port)

* **order_by** string

  Sort order: created_at (default, newest first), alias (by alias), address (by address)

### Response

200application/json

* Array \[
* **alias**string

  Alias

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

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

  Creation date

  **hostname**string

  Hostname

  **Example:&#x20;**`ru.tuna.am`

  **id**integer\<int64>

  Identifier

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

  **last_tunnels** object\[]

  Recent tunnels. Kept for compatibility; use GET /v1/endpoints/{id}/tunnels

  Array \[
* **address**string

  Address

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

  **command_name**string

  Command

  **Possible values:** \[`tcp`, `sshd`, `postgres`, `redis`, `mysql`]

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

  ]
* **location**string

  Location: ru, nl, or global for a port in a cell zone, which doesn't need one

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

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

  **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`

  **port**integer\<uint32>

  Port

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

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

  **provisioned_by**string

  What created or modified the object: terraform means the Terraform provider, empty means another client

  **type**string

  Endpoint type

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

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

  ]
