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

# API Tuna

A programmatic interface to all resources available to the user: tunnels, monitors, secrets, team and more.

Requests are sent to `https://api.tuna.am`, and the key is passed in the `Authorization: Bearer {API-key}` header. You can create a key on the [API keys](https://my.tuna.am/api_keys?lang=en) page; for details, see [API](https://tuna.am/en/docs/guides/api.md).

## First request

Get your account details:

```bash
curl -H "Authorization: Bearer {API-key}" https://api.tuna.am/v1/user

```

Methods are grouped by section in the menu on the left. Each one lists its parameters and response fields, with examples in cURL, Python, JavaScript, Go and PHP.

Rules shared by all methods: [error format](https://tuna.am/en/docs/api/errors.md), [pagination and sorting](https://tuna.am/en/docs/api/pagination.md), [rate limits](https://tuna.am/en/docs/api/rate-limits.md).
