Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Watch a config flag

Streams the current ruleset etag and each changed revision as SSE.

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
  • Query if_none_match

#Request

FieldTypeWhat it is
parentstringThe environment whose flag and segment revisions are streamed. Required.
if_none_matchstringThe last received etag; only a different revision is sent.

#Response

FieldTypeWhat it is
etagstringChanges whenever a flag or segment changes.

#Errors

Every error arrives in the body Errors describes.

#Examples

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