---
# @generated by sylphx-gen. Do not edit.
title: "Watch a config flag"
description: "`config.config_flags.watch` (GET /v1/{parent}/config_flags:watch): Streams the current ruleset etag and each changed revision as SSE."
type: reference
product: flags
summary: "Streams the current ruleset etag and each changed revision as SSE."
updated: 2026-09-28
nav: false
---

Streams the current ruleset etag and each changed revision as SSE. Reconnect with if_none_match or Last-Event-ID to skip the held revision.

- **Path** `GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_flags:watch`
- **Scope** `config:read`
- **Effect** `read` — nothing is written.
- **Collection** [config_flags](/docs/api/config_flags)
- **Query** `if_none_match`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | The environment whose flag and segment revisions are streamed. Required. |
| `if_none_match` | `string` | The last received etag; only a different revision is sent. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `etag` | `string` | Changes whenever a flag or segment changes. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_flags:watch" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.config.configFlags.watch({ parent: 'orgs/acme/projects/shop/envs/production' })
```

**Rust**

```rust
let mut req = sylphx::config::WatchConfigFlagsRequest::default();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
let response = sx.config().config_flags().watch(req).await?;
```

**CLI**

```bash
sylphx config config-flags watch orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "config.config_flags.watch", "args": {"parent":"orgs/acme/projects/shop/envs/production"} }
```
