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

# Watch configuration secrets for changes

get`/v1/secrets/configs/config/secrets/watch`

A Server-Sent Events stream; each event is `event: message` with JSON in `data`: `{"type":"connected"}` on connection, `{"type":"ping"}` every 10 seconds, `{"type":"secrets.update"}` when secrets change, after which you need to fetch the secrets again. The connection ID is returned in the `X-Tuna-Session-Id` header; the number of connections is limited by the team limit (429). Also accepts a configuration service token with any access: `Authorization: Bearer <token>`.

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

* **project** stringrequired

  Project alias

* **config** stringrequired

  Configuration alias: `<environment>` is the root configuration, `<environment>/<name>` is a branch or a personal configuration (`<environment>/personal`), for example `dev/local`

### Response

200

Server-Sent Events stream
