Opens a Server-Sent Events stream for real-time client flag updates.
GET
/v1/client/stream
const url = 'https://eval.featureflip.io/v1/client/stream';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://eval.featureflip.io/v1/client/stream \ --header 'Authorization: <Authorization>'Auth is passed as an ?authorization=csk_... query parameter because a browser
EventSource cannot set headers. User context is passed as ?context=base64json.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”context
string
Base64-encoded JSON user context for flag evaluation.
Responses
Section titled “Responses”SSE stream opened successfully.
Client SDK key is missing or invalid.
Media typeapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Flag configuration is temporarily unavailable; retry after the interval in Retry-After.