Watch configuration secrets for changes
get
/v1/secrets/configs/config/secrets/watchA 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
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the 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 exampledev/local
Response
Server-Sent Events stream